Skip to content

sql/catalog: use in-memory immutable descriptors instead of ResolvedSchema for descriptorless schemas? #57538

@thoszhang

Description

@thoszhang

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-schema-descriptorsRelating to SQL table/db descriptor handling.A-sql-vtablesVirtual tables - pg_catalog, information_schema etcC-cleanupTech debt, refactors, loose ends, etc. Solution not expected to significantly change behavior.T-sql-foundationsSQL Foundations Team (formerly SQL Schema + SQL Sessions)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions