postgres-expert

Identify and optimize PostgreSQL performance bottlenecks across queries, JSONB, indexing, and partitioning.

Updated Jan 2, 2026
One-click install
npx skills add https://github.com/hung14vnn/MedManagerFE --skill postgres-expert-hung14vnn
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: postgres-expert
Source: https://github.com/hung14vnn/MedManagerFE/tree/main/.agent/skills/postgres-expert
Command: npx skills add https://github.com/hung14vnn/MedManagerFE --skill postgres-expert-hung14vnn

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

PostgreSQL performance, JSONB operations, partitioning, and connection management can be challenging at scale. This skill provides expert guidance to optimize queries, indexes, replication, and maintenance to ensure low latency and reliability.

Core Features & Use Cases

  • Query optimization and plan analysis for complex workloads
  • JSONB optimization with appropriate indexing and path queries
  • Advanced indexing & partitioning strategies to manage large datasets
  • Connection management with PgBouncer and replication tuning
  • Maintenance & health checks including autovacuum tuning and vacuum management

Quick Start

Provide targeted PostgreSQL optimization recommendations for a high-traffic production database.

Frequently Asked Questions about postgres-expert

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

FAQPage Schema
How do I optimize PostgreSQL query performance for a high-traffic production database?

To optimize PostgreSQL query performance, analyze execution plans and apply advanced indexing or partitioning strategies to manage large datasets and reduce latency. Recommendations include concrete steps with measurable success criteria and validation methods.

What is the best way to index JSONB columns in PostgreSQL for faster path queries?

Indexing JSONB columns in PostgreSQL requires specialized strategies like appropriate path query indexing to optimize complex operations. The skill provides targeted JSONB optimization steps to ensure low latency and reliable data retrieval.

Does PgBouncer help with PostgreSQL connection management and replication tuning?

PgBouncer aids PostgreSQL connection management by pooling connections, reducing overhead in high-traffic production databases. This skill provides connection management and replication tuning steps to ensure scalable and reliable database performance.

When do I need partitioning strategies for large PostgreSQL datasets?

You need PostgreSQL partitioning strategies when managing large datasets that degrade query performance. This skill identifies bottlenecks and provides advanced partitioning plans with actionable steps to maintain low latency at scale.

How to tune autovacuum and perform health checks for PostgreSQL maintenance?

Tune PostgreSQL autovacuum and perform health checks by following targeted maintenance plans to manage vacuum operations effectively. This skill outlines concrete maintenance steps to ensure ongoing database reliability and performance.

Why does PostgreSQL replication lag occur and how can I resolve it?

PostgreSQL replication lag occurs due to misconfigured replication setups or unoptimized queries. This skill identifies performance bottlenecks across replication and provides a scalable plan with actionable tuning steps to resolve latency.