Skip to content

sql/vtable: add package documentation for pg_catalog compatibility#167436

Open
rafiss wants to merge 1 commit intocockroachdb:masterfrom
rafiss:pg-catalog-docs
Open

sql/vtable: add package documentation for pg_catalog compatibility#167436
rafiss wants to merge 1 commit intocockroachdb:masterfrom
rafiss:pg-catalog-docs

Conversation

@rafiss
Copy link
Copy Markdown
Collaborator

@rafiss rafiss commented Apr 2, 2026

Add a doc.go to the vtable package documenting:

  • The split between schema definitions (vtable/) and populate logic (pkg/sql/)
  • Why pg_catalog compatibility matters (ORM/tooling ecosystem)
  • The postgres matching strategy (PgServerVersion, undefinedTables, stub_catalog_tables, implementation tiers)
  • How virtual tables work (virtualSchema, virtualSchemaTable, populate vs generator)
  • Virtual indexes (complete vs incomplete, OID hashing)
  • The pg_catalog diff tool workflow (generate-metadata-tables, TestDiffTool, step-by-step for PG version bumps)
  • Key files reference

Epic: CRDB-61382
Fixes: CRDB-61385

Release note: None

Add a doc.go to the vtable package documenting:
- The split between schema definitions (vtable/) and populate logic (pkg/sql/)
- Why pg_catalog compatibility matters (ORM/tooling ecosystem)
- The postgres matching strategy (PgServerVersion, undefinedTables,
  stub_catalog_tables, implementation tiers)
- How virtual tables work (virtualSchema, virtualSchemaTable, populate
  vs generator)
- Virtual indexes (complete vs incomplete, OID hashing)
- The pg_catalog diff tool workflow (generate-metadata-tables,
  TestDiffTool, step-by-step for PG version bumps)
- Key files reference

Epic: CRDB-61382
Fixes: CRDB-61385

Release note: None

Co-Authored-By: roachdev-claude <roachdev-claude-bot@cockroachlabs.com>
@rafiss rafiss requested review from fqazi and spilchen April 2, 2026 20:39
@rafiss rafiss requested a review from a team as a code owner April 2, 2026 20:39
@trunk-io
Copy link
Copy Markdown
Contributor

trunk-io bot commented Apr 2, 2026

Merging to master in this repository is managed by Trunk.

  • To merge this pull request, check the box to the left or comment /trunk merge below.

After your PR is submitted to the merge queue, this comment will be automatically updated with its status. If the PR fails, failure details will also be posted here

@blathers-crl
Copy link
Copy Markdown

blathers-crl bot commented Apr 2, 2026

It looks like your PR touches production code but doesn't add or edit any test code. Did you consider adding tests to your PR?

🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf.

@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants