Open
Conversation
✅ Deploy Preview for cockroachdb-api-docs canceled.
|
✅ Deploy Preview for cockroachdb-interactivetutorials-docs canceled.
|
Contributor
Author
|
@rafiss adding you as the author of cockroachdb/cockroach#163543 @bghal adding you as the author of cockroachdb/cockroach#164449 please let me know if i got something wrong here, or if there's missing context that we need to add, etc. |
❌ Deploy Preview for cockroachdb-docs failed. Why did it fail? →
|
bghal
reviewed
Apr 22, 2026
| - `IMPORT INTO` works with existing tables. To import data into a new table, see [Import into a new table from a CSV file](#import-into-a-new-table-from-a-csv-file). | ||
| - `IMPORT INTO` cannot be used during a [rolling upgrade]({% link {{ page.version.version }}/upgrade-cockroach-version.md %}). | ||
| - `IMPORT INTO` is a blocking statement. To run an `IMPORT INTO` job asynchronously, use the [`DETACHED`](#options-detached) option. | ||
| - {% include_cached new-in.html version="v26.2" %} By default, after a successful `IMPORT INTO`, CockroachDB starts a background [`INSPECT`]({% link {{ page.version.version }}/inspect.md %}) job to validate the imported row count. The [`bulkio.import.row_count_validation.mode` cluster setting]({% link {{ page.version.version }}/cluster-settings.md %}#setting-bulkio-import-row-count-validation-mode) controls this behavior: `off`, `async` (default), or `sync`. |
There was a problem hiding this comment.
We ended up not moving forward with this default (#168403) due to some unresolved issues.
Comment on lines
+90
to
+98
| ### Run a uniqueness check on a `REGIONAL BY ROW` primary index | ||
|
|
||
| On supported [`REGIONAL BY ROW`]({% link {{ page.version.version }}/alter-table.md %}#regional-by-row) tables, naming the primary index lets `INSPECT` run the uniqueness check for that index: | ||
|
|
||
| {% include_cached copy-clipboard.html %} | ||
| ~~~ sql | ||
| INSPECT TABLE mr_db.public.users WITH OPTIONS INDEX (users_pkey); | ||
| ~~~ | ||
|
|
There was a problem hiding this comment.
Just to be clear, the primary doesn't need to be named to run explicitly (i.e. INSPECT TABLE t would run the uniqueness check on the primary index if it's a supported type in addition to any other supported checks).
spilchen
reviewed
Apr 23, 2026
Contributor
spilchen
left a comment
There was a problem hiding this comment.
looks good. I didn't have any other comments other than the ones Brendan had
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes DOC-16220, DOC-16357, DOC-16143