postgres

Apply PostgreSQL best practices for schema design, indexing, and replication.

286|38|Updated Jan 26, 2026
One-click install
npx skills add https://github.com/PageAI-Pro/ralph-loop --skill postgres-pageai-pro
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: postgres
Source: https://github.com/PageAI-Pro/ralph-loop/tree/main/.agent/skills/postgres
Command: npx skills add https://github.com/PageAI-Pro/ralph-loop --skill postgres-pageai-pro

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

PostgreSQL systems often struggle with performance bottlenecks, misconfiguration, and unreliable operations in production, leading to slow queries and downtime.

Core Features & Use Cases

  • Comprehensive guidance on schema design, indexing, vacuuming, replication, monitoring, and maintenance that improves latency, throughput, and reliability.
  • Practical checklists and reference material for backup, recovery, and monitoring to keep PostgreSQL deployments healthy across environments.
  • Real-world scenarios include optimizing slow queries, reducing dead tuples, configuring connection pooling, and validating high-availability setups.

Quick Start

Identify current bottlenecks in your PostgreSQL deployment and apply the recommended settings from the guide to improve query performance and reliability.

Frequently Asked Questions about postgres

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

FAQPage Schema
How do I optimize slow PostgreSQL queries in a production database?

PostgreSQL vacuuming removes dead tuples to reclaim storage and prevent transaction ID wraparound. Regular vacuuming maintains database health by reducing bloat, improving query performance, and ensuring reliable operations across your production clusters.

What is the best way to configure connection pooling for PostgreSQL?

PostgreSQL replication creates copies of your database to ensure high availability and distribute read traffic. Configuring replication correctly validates your high-availability setups, minimizing downtime and maintaining reliable operations during failures.

How does PostgreSQL WAL and checkpoint tuning improve database reliability?

PostgreSQL backup and recovery involves creating restorable copies of your database to prevent data loss. Using practical checklists and reference material ensures your deployment maintains robust restore readiness and survives incident response scenarios.

Do I need specific data types and primary keys for proper PostgreSQL schema design?

Proper PostgreSQL schema design requires satisfying rules for effective primary keys and appropriate data types. Applying these schema design best practices ensures data integrity, optimizes storage, and establishes a foundation for reliable database performance.