Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Guides pgschema development with PostgreSQL pg_dump's source for system catalog queries and schema extraction.
Use this skill ↓45% 77%+32 ptsof test cases passed
Passed 17 of 22 test cases with the skill, and 10 of 22 without it.
3 of 3 safety checks passed
Not used yet
Use this skill when implementing or debugging pgschema features that involve extracting schema information from PostgreSQL databases. pg_dump is the canonical PostgreSQL schema dumping tool and serves as a reference implementation for how to query system catalogs correctly.
Invoke this skill when:
ir/inspector.goMain pg_dump repository: https://github.com/postgres/postgres/blob/master/src/bin/pg_dump/
Key files to reference:
pg_dump.c - Main implementation with system catalog queriespg_dump.h - Data structures and function declarationspg_dump_sort.c - Dependency sorting logicpg_backup_archiver.c - Output formattingcommon.c - Shared utility functions for querying system catalogsDetermine which PostgreSQL object type you're working with:
Next to this one in the catalogue, plus more from the same author.