What problem does it solve?
This skill removes the friction of interacting with a local PostgreSQL development build, providing a structured way to perform backend introspection, query debugging, and performance analysis without the risk of affecting production environments.
Core Features & Use Cases
- Interactive Introspection: Execute meta-commands like \d+, \df+, and \errverbose to inspect catalog structures, function sources, and backend error details.
- Performance & Debugging: Use session-scoped GUCs and EXPLAIN (ANALYZE, BUFFERS) to force plan shapes and analyze memory context growth or lock contention.
- Use Case: When investigating a suspected memory leak in a backend process, use this skill to monitor pg_backend_memory_contexts across iterations and capture PIDs for attachment to a debugger.
Quick Start
Use the psql skill to connect to the local development cluster and run an EXPLAIN ANALYZE query on the target table to inspect buffer usage.