sql: ensure queries using system.namespace do not degrade with migration #44230
Labels
C-investigation
Further steps needed to qualify. C-label will change.
C-performance
Perf of queries or internals. Solution not expected to change functional behavior.
The index on the
system.namespace
table changes in 20.1. This involves a change in primary keys.For example, https://sourcegraph.com/github.com/cockroachdb/cockroach@a309cac09c674728a785f0dcf1702e048719a9bf/-/blob/pkg/sql/privileged_accessor.go#L26:2 is no longer indexed.
We should probably make sure we have a plan for queries no longer have these indexes
Edit: also I think there is a correctness problem here, where temporary tables with the same name as other tables in that particular query will break because they can have the same
parentID, name
but a differentparentSchemaID
, hence breakingQueryRow
The text was updated successfully, but these errors were encountered: