-
Notifications
You must be signed in to change notification settings - Fork 4.1k
sql/catalog: use in-memory immutable descriptors instead of ResolvedSchema for descriptorless schemas? #57538
Copy link
Copy link
Closed
Labels
A-schema-descriptorsRelating to SQL table/db descriptor handling.Relating to SQL table/db descriptor handling.A-sql-vtablesVirtual tables - pg_catalog, information_schema etcVirtual tables - pg_catalog, information_schema etcC-cleanupTech debt, refactors, loose ends, etc. Solution not expected to significantly change behavior.Tech debt, refactors, loose ends, etc. Solution not expected to significantly change behavior.T-sql-foundationsSQL Foundations Team (formerly SQL Schema + SQL Sessions)SQL Foundations Team (formerly SQL Schema + SQL Sessions)
Description
Temporary, virtual, and (for now) public schemas don't have on-disk schema descriptors. We currently return them from the descriptor access and name resolution APIs as catalog.ResolvedSchema. Perhaps we should just put them behind an immutable schema descriptor interface instead. It may be ideal to not support mutable access.
This would have the advantage of making all the descriptor APIs consistent.
Epic: CRDB-2454
Jira issue: CRDB-3522
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
A-schema-descriptorsRelating to SQL table/db descriptor handling.Relating to SQL table/db descriptor handling.A-sql-vtablesVirtual tables - pg_catalog, information_schema etcVirtual tables - pg_catalog, information_schema etcC-cleanupTech debt, refactors, loose ends, etc. Solution not expected to significantly change behavior.Tech debt, refactors, loose ends, etc. Solution not expected to significantly change behavior.T-sql-foundationsSQL Foundations Team (formerly SQL Schema + SQL Sessions)SQL Foundations Team (formerly SQL Schema + SQL Sessions)