postgres-pro

Optimize PostgreSQL queries, indexing, replication, extensions, and health monitoring.

Updated May 14, 2026
One-click install
npx skills add https://github.com/nkseth/copilot-dev-skills --skill postgres-pro-nkseth
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: postgres-pro
Source: https://github.com/nkseth/copilot-dev-skills/tree/main/skills/postgres-pro
Command: npx skills add https://github.com/nkseth/copilot-dev-skills --skill postgres-pro-nkseth

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

PostgreSQL performance and reliability often require deep DBA knowledge to optimize queries, configure replication, manage extensions, and monitor health. This skill provides guided, repeatable steps to tackle these tasks with best practices.

Core Features & Use Cases

  • Analyze slow queries with EXPLAIN ANALYZE to identify bottlenecks and optimize plans.
  • Design and implement replication (streaming or logical) with proper monitoring and failover readiness.
  • Manage extensions (PostGIS, pgvector, etc.) and perform routine maintenance (VACUUM, ANALYZE) to keep databases healthy.
  • Monitor health and performance using pg_stat views and instrumentation, with guidance for tuning autovacuum and statistics.

Quick Start

Begin by running an EXPLAIN ANALYZE plan on a slow query to identify bottlenecks, implement a targeted index strategy, and set up basic replication monitoring.

Frequently Asked Questions about postgres-pro

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

FAQPage Schema
How do I use EXPLAIN ANALYZE to optimize slow PostgreSQL queries?

Run EXPLAIN ANALYZE on slow PostgreSQL queries to reveal actual execution timing, row estimates, and bottleneck operations like sequential scans. This identifies where targeted indexing strategies can improve query performance.

What is the best way to set up PostgreSQL streaming or logical replication?

Setting up PostgreSQL replication involves configuring streaming or logical replication with proper monitoring and failover readiness. This ensures data redundancy and high availability across development, staging, and production deployments.

How does VACUUM and ANALYZE tuning improve PostgreSQL database health?

VACUUM and ANALYZE tuning improves PostgreSQL health by reclaiming storage from dead tuples and updating table statistics for the query planner. Adjusting autovacuum parameters ensures routine maintenance runs efficiently without manual intervention.

Can I manage PostgreSQL extensions like PostGIS and pgvector within my existing database?

You can manage PostgreSQL extensions like PostGIS and pgvector by installing and configuring them to add specialized functionality. Proper extension management ensures compatibility and health across development, staging, and production deployments.

How do I monitor PostgreSQL performance using pg_stat views?

Monitor PostgreSQL performance using pg_stat views to track query activity, table access patterns, and index usage statistics. This instrumentation provides ongoing health monitoring and guides tuning for statistics and autovacuum workflows.

When should I use targeted indexing strategies for PostgreSQL query optimization?

Use targeted indexing strategies for PostgreSQL query optimization when EXPLAIN ANALYZE reveals sequential scans, slow joins, or high filter costs. Proper indexing reduces query latency and improves database reliability across staging and production environments.