Open sheaffej opened 3 years ago
We have marked this issue as stale because it has been inactive for 18 months. If this issue is still relevant, removing the stale label or adding a comment will keep it active. Otherwise, we'll close it in 10 days to keep the issue queue tidy. Thank you for your contribution to CockroachDB docs!
John Sheaffer (sheaffej) commented:
We should add a clarifying note to the docs to explain that when you alter a table with
SET LOCALITY REGIONAL BY ROW
the value ofcrdb_region
will be the database's primary region. As opposed to defaulting to the region value of the node performing theSET LOCALITY
statement (which isn't stated in the docs, but considering that's how inserts would set the value, it's reasonable misinterpretation).Most likely place would be in this section: https://www.cockroachlabs.com/docs/v21.1/set-locality.html#set-the-table-locality-to-regional-by-row
... probably just before the section starts talking about how to UPDATE that column value:
Here's an example showing that the primary region is used as the default.
Jira Issue: DOC-1544