sql: homogeneize / abstract access to db / table descriptors #17188
Labels
A-schema-descriptors
Relating to SQL table/db descriptor handling.
C-bug
Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.
S-3-productivity
Severe issues that impede the productivity of CockroachDB developers.
Milestone
So while polishing #15388 I realize I do not really have an answer to "how do I get a db descriptor by ID" (other than, I know already, constructing the descriptor key and talking to KV manually)
Actually this pulled up some more questions:
In general I am missing an internal descriptor access API. Currently all the code to access descriptors is ad-hoc, not documented in a central place and the schema lease API is not optimized for fast access to descriptors by ID.
What is needed here is:
schemaResolver
or something, with a stable API documented in a single place*planner
(or whatever) implement that APIThe text was updated successfully, but these errors were encountered: