PostgreSQL pg_dump Reference
Consults the canonical PostgreSQL pg_dump implementation to provide accurate guidance on system catalog queries and schema extraction patterns.
The pg-dump-reference skill acts as a specialized knowledge layer for developers working with PostgreSQL internals. It leverages pg_dump as the authoritative source for querying system catalogs, understanding internal object representations, and handling complex dependency relationships. Whether you are building database migration tools, ORMs, or schema inspectors, this skill helps you implement robust logic by following the same patterns used by the official PostgreSQL dump utility, ensuring compatibility across versions 14 through 17.
Key Features
01Version-specific implementation logic for PostgreSQL 14-17
0281 GitHub stars
03Optimized SQL query patterns for PostgreSQL system catalogs
04Mapping of database objects to specific pg_dump source code functions
05Guidance on using internal functions like pg_get_expr and pg_get_constraintdef
06Best practices for DDL formatting and object dependency sorting
Use Cases
01Implementing custom database schema introspection and discovery tools
02Developing declarative schema management systems with accurate DDL generation
03Debugging complex system catalog queries in Go, Python, or Node.js database drivers