-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sql: Add SQL command to view existing interleaved and cross database reference usage #58867
Comments
@jordanlewis @lucy-zhang Can we get this for 21.1? With the repeat questions on interleaved deprecation, having some introspection capability seems more necessary. It also allows users to do a precondition check before upgrading to 21.2 |
Thinking more, I think a crdb_internal table makes more sense than a |
How do you see this table being used? Any thoughts on what its schema should be and how structured the data should be? I know we've talked about this being displayed in the DB console, but is the output primarily meant to be read by human operators or processed in some automated way? If it's meant to be read by human operators, on one end of the spectrum I could imagine having a |
We won't have DB console integration for 21.1, so the output should be human-readable.
This could make sense since we have multiple deprecations. On the other hand, these feature removals have a deadline, so a specific table schema that we eventually remove is where I'm leaning. Also might allow us to display richer info specific to each feature being deprecated (Ex. for cross-database refs the referenced db not just the descriptor ID) |
For interleaved tables,
For interleave indexes,
For cross-database references,
|
Fixes: cockroachdb#58867 Previously, users had no way of determining which objects in their database utilized either deprecated features like interleaved indexes/tables or cross DB references. This was inadequate since users need to know which object utilize this functionality. To address this, this patch introduces the crdb_internal tables: cross_db_references, interleaved_indexes, interleaved_tables. Release justification: Low risk internal tables for detecting deprecated features. Release note (sql change): Added crdb_internal tables cross_db_references, interleaved_indexes, and interleaved_tables for detecting the deprecated features cross db references and interleaved tables / indexes within a given database.
Fixes: cockroachdb#58867 Previously, users had no way of determining which objects in their database utilized either deprecated features like interleaved indexes/tables or cross DB references. This was inadequate since users need to know which object utilize this functionality. To address this, this patch introduces the crdb_internal tables: cross_db_references, interleaved_indexes, interleaved_tables. Release justification: Low risk internal tables for detecting deprecated features. Release note (sql change): Added crdb_internal tables cross_db_references, interleaved_indexes, and interleaved_tables for detecting the deprecated features cross db references and interleaved tables / indexes within a given database.
Fixes: cockroachdb#58867 Previously, users had no way of determining which objects in their database utilized either deprecated features like interleaved indexes/tables or cross DB references. This was inadequate since users need to know which object utilize this functionality. To address this, this patch introduces the crdb_internal tables: cross_db_references, interleaved_indexes, interleaved_tables. Release justification: Low risk internal tables for detecting deprecated features. Release note (sql change): Added crdb_internal tables cross_db_references, interleaved_indexes, and interleaved_tables for detecting the deprecated features cross db references and interleaved tables / indexes within a given database.
Fixes: cockroachdb#58867 Previously, users had no way of determining which objects in their database utilized either deprecated features like interleaved indexes/tables or cross DB references. This was inadequate since users need to know which object utilize this functionality. To address this, this patch introduces the crdb_internal tables: cross_db_references, interleaved, Release justification: Low risk internal tables for detecting deprecated features. Release note (sql change): Added crdb_internal tables cross_db_references and interleaved for detecting the deprecated features cross db references and interleaved tables / indexes.
Fixes: cockroachdb#58867 Previously, users had no way of determining which objects in their database utilized either deprecated features like interleaved indexes/tables or cross DB references. This was inadequate since users need to know which object utilize this functionality. To address this, this patch introduces the crdb_internal tables: cross_db_references, interleaved, Release justification: Low risk internal tables for detecting deprecated features. Release note (sql change): Added crdb_internal tables cross_db_references and interleaved for detecting the deprecated features cross db references and interleaved tables / indexes.
61629: sql: add internal tables cross db refs and interleaved indexes/tables r=fqazi a=fqazi Fixes: #58867 Previously, users had no way of determining which objects in their database utilized either deprecated features like interleaved indexes/tables or cross DB references. This was inadequate since users need to know which object utilize this functionality. To address this, this patch introduces the crdb_internal tables: cross_db_references, interleaved_indexes, interleaved_tables. Release justification: Low risk internal tables for detecting deprecated features. Release note (sql change): Added crdb_internal tables cross_db_references, interleaved_indexes, and interleaved_tables for detecting the deprecated features cross db references and interleaved tables / indexes within a given database. Co-authored-by: Faizan Qazi <[email protected]>
Fixes: cockroachdb#58867 Previously, users had no way of determining which objects in their database utilized either deprecated features like interleaved indexes/tables or cross DB references. This was inadequate since users need to know which object utilize this functionality. To address this, this patch introduces the crdb_internal tables: cross_db_references, interleaved, Release justification: Low risk internal tables for detecting deprecated features. Release note (sql change): Added crdb_internal tables cross_db_references and interleaved for detecting the deprecated features cross db references and interleaved tables / indexes.
Fixes: cockroachdb#58867 Previously, users had no way of determining which objects in their database utilized either deprecated features like interleaved indexes/tables or cross DB references. This was inadequate since users need to know which object utilize this functionality. To address this, this patch introduces the crdb_internal tables: cross_db_references, interleaved, Release justification: Low risk internal tables for detecting deprecated features. Release note (sql change): Added crdb_internal tables cross_db_references and interleaved for detecting the deprecated features cross db references and interleaved tables / indexes.
Before interleaved tables/indexes and cross-database references are no longer supported, users should be able to query for existing usage from SQL in 21.1. This can be a new
SHOW
commandThe text was updated successfully, but these errors were encountered: