postgres

Tune PostgreSQL configuration, indexing, and monitoring for production deployments.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

PostgreSQL performance and reliability challenges can hinder application responsiveness and cost. This Skill consolidates best practices, optimization techniques, and troubleshooting guidance to improve throughput, consistency, and maintainability of Postgres deployments.

Core Features & Use Cases

  • Postgres performance tuning: memory, WAL, autovacuum, and checkpoint tuning to reduce latency and waste.
  • Query optimization and indexing strategies: design patterns, efficient patterns, and maintenance.
  • Administration and monitoring: replication, backup strategies, monitoring queries, and observability.

Quick Start

Inspect your current Postgres setup and implement the recommended baseline improvements described here.

Frequently Asked Questions about postgres

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

FAQPage Schema
How do I tune PostgreSQL memory, WAL, and autovacuum settings for production?

PostgreSQL tuning applies best practices to memory, WAL, checkpoints, and autovacuum to reduce latency and waste. Adjust these configuration parameters to improve throughput and consistency in production Postgres deployments.

What is the best way to optimize PostgreSQL query performance and indexing strategies?

PostgreSQL query optimization uses design patterns and indexing strategies to improve responsiveness. Apply efficient indexing patterns and perform regular maintenance to enhance overall query execution speed.

How does PostgreSQL VACUUM and MVCC impact database reliability?

PostgreSQL VACUUM manages MVCC bloat by reclaiming storage from dead tuples. Proper VACUUM tuning maintains transaction consistency, prevents table bloat, and ensures long-term database reliability.

Can I use this for PostgreSQL replication and monitoring in production?

PostgreSQL replication and monitoring are supported through backup strategies and observability queries. Administer production deployments by configuring replication and implementing monitoring for consistent uptime.

When do I need partitioning and schema design for PostgreSQL deployments?

PostgreSQL partitioning and schema design are needed when managing large datasets for maintainability. Apply design patterns and partitioning strategies to improve query performance across extensive database tables.