Skip to content

pg_catalog.pg_relation_size() #86017

@karitham

Description

@karitham

Is your feature request related to a problem? Please describe.
Not having pg_catalog.pg_relation_size() breaks usql's introspection queries.

Describe the solution you'd like
Adding pg_relation_size

Describe alternatives you've considered
Trying to replace usql's usage of pg_relation_size with a cockroach specific implementation for metadata and instrumentation.

Additional context
https://github.com/xo/usql/blob/master/drivers/metadata/postgres/metadata.go The ideal output would be supporting the queries built here, to support all these features.

related: #20712

Jira issue: CRDB-18527

Epic CRDB-60810

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-sql-pgcompatSemantic compatibility with PostgreSQLC-enhancementSolution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)E-starterMight be suitable for a starter project for new employees or team members.O-communityOriginated from the communityT-sql-foundationsSQL Foundations Team (formerly SQL Schema + SQL Sessions)X-blathers-triagedblathers was able to find an owner

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions