upgrades: use GetSystemDatabaseSchemaVersion
instead of querying pg_attribute
#111894
Labels
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)
addRootUser
queriespg_attribute
to determine whether therole_id
andmember_id
columns are present because it can't rely on version gates against active cluster version (#106764).After #111404, we can get the actual schema version of the system database. We should depend on this version in checking whether the columns above are present or not.
Since some tests bootstrap with versions less than current master (or 23.2 in the future), we have to wait until minimum supported binary version aka minimum version at which tests can bootstrap is 23.2 before making this change.
Jira issue: CRDB-32120
The text was updated successfully, but these errors were encountered: