sql/catalog: Add a cluster version for system / internal database descriptors #109039
Labels
A-schema-descriptors
Relating to SQL table/db descriptor handling.
C-enhancement
Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)
T-sql-foundations
SQL Foundations Team (formerly SQL Schema + SQL Sessions)
We have no way of tracking system table versions, making schema changes to them extremely difficult to reason about what a transaction would see. To help make things easier, we should introduce a cluster version field into the database descriptor, as system tables are modified within any system database, and these versions will be bumped up. This allows the database code to correctly confirm in a transaction-aware manner if changes are fully visible at a given time for the transaction, which is crucial.
Jira issue: CRDB-30748
Epic CRDB-31701
The text was updated successfully, but these errors were encountered: