postgres

Optimize PostgreSQL performance with schema, indexing, and tuning best practices.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/tomrford/dotfiles --skill postgres-tomrford
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: postgres
Source: https://github.com/tomrford/dotfiles/tree/main/.agents/skills/postgres
Command: npx skills add https://github.com/tomrford/dotfiles --skill postgres-tomrford

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

PostgreSQL health and performance optimization through best practices and guided tuning.

Core Features & Use Cases

  • Schema design guidance and indexing strategies to accelerate queries
  • MVCC, VACUUM tuning, replication planning, and monitoring setup
  • Connection management and pooling recommendations for scalable deployments
  • Practical maintenance checklists and disaster-recovery guidance for reliability

Quick Start

Review the PostgreSQL best-practices references to implement improvements in your existing database and begin optimization today.

Frequently Asked Questions about postgres

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

FAQPage Schema
How do I optimize PostgreSQL performance using best practices?

PostgreSQL performance optimization is achieved by applying best practices for schema design, indexing strategies, and query optimization. The Skill provides implementable configurations covering MVCC tuning, WAL and vacuum settings, and baseline performance checks.

What's the best way to tune VACUUM and WAL settings in PostgreSQL?

Tuning VACUUM and WAL settings in PostgreSQL involves adjusting MVCC parameters to manage bloat and transaction logging efficiently. The Skill supplies established maintenance checklists and validation steps to configure these autovacuum and write-ahead log behaviors correctly.

How does PostgreSQL connection pooling work for scalable deployments?

PostgreSQL connection pooling manages client connections to prevent server resource exhaustion during high concurrency. The Skill delivers connection management recommendations and pooling configurations designed to scale from single-instance to multi-node architectures.

Can I use these PostgreSQL optimization practices for multi-node replication?

Yes, these PostgreSQL optimization practices support multi-node replication architectures. The Skill scales from single-instance deployments to multi-node setups, providing replication planning and monitoring setup to maintain database reliability across distributed environments.

Why does PostgreSQL query performance degrade and how do indexing strategies help?

PostgreSQL query performance degrades often due to poor schema design or missing indexes, causing full table scans. The Skill's indexing strategies and schema design guidance accelerate queries by ensuring the database uses optimal data access paths.

Do I need baseline performance checks for PostgreSQL maintenance?

Baseline performance checks are essential for PostgreSQL maintenance to identify deviations from expected database health. The Skill demands implementable validation steps and monitoring setups to track these metrics, ensuring ongoing reliability and disaster recovery readiness.