pg_dump Reference

Query PostgreSQL system catalogs and extract schema information using pg_dump patterns.

994|57|Updated Jun 8, 2025
One-click install
npx skills add https://github.com/pgplex/pgschema --skill pg-dump-reference-pgplex
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pg_dump Reference
Source: https://github.com/pgplex/pgschema/tree/main/.claude/skills/pg_dump
Command: npx skills add https://github.com/pgplex/pgschema --skill pg-dump-reference-pgplex

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill provides a concise, reference-oriented guide to PostgreSQL's pg_dump implementation patterns for system catalog queries and schema extraction, helping developers align pgschema features with canonical behavior.

Core Features & Use Cases

  • Reference Patterns: Highlights canonical SQL patterns used by pg_dump for querying system catalogs.
  • Version Awareness: Covers PostgreSQL 14-18 nuances to ensure compatibility.
  • Guidance for pgschema: Maps pg_dump approaches to inspector logic, DDL generation, and dependency handling.

Quick Start

Consult PostgreSQL's pg_dump repository to apply canonical patterns for system catalogs and schema extraction when implementing pgschema features.

Frequently Asked Questions about pg_dump Reference

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I extract PostgreSQL schema information using pg_dump patterns?

To extract PostgreSQL schema information, query system catalogs using canonical pg_dump SQL patterns for deparsing expressions and dependency tracking. This reference maps canonical approaches to inspector logic and DDL generation for schema extraction.

What is the best way to query PostgreSQL system catalogs for dependency tracking?

Query PostgreSQL system catalogs for dependency tracking by applying canonical pg_dump reference patterns. This skill identifies specific SQL approaches used by pg_dump to map and resolve object dependencies during schema extraction and DDL generation.

Do pg_dump system catalog queries work across PostgreSQL versions 14 through 18?

pg_dump system catalog queries are compatible across PostgreSQL versions 14 through 18. This reference highlights version-specific nuances to ensure schema extraction and inspector logic remain compatible with each version's system catalogs.

How do I deparse PostgreSQL expressions when extracting schema definitions?

Deparse PostgreSQL expressions during schema extraction by following pg_dump-inspired reference patterns. This skill demonstrates how pg_dump handles expression deparsing from system catalogs to ensure accurate DDL generation and inspector logic.

Can I use pg_dump patterns to debug pgschema features in real-world workflows?

You can use pg_dump patterns to debug pgschema features by applying canonical system catalog queries and dependency tracking logic. This reference guides mapping pg_dump approaches to inspector logic across PostgreSQL versions 14-18 in real-world workflows.