postgres-expert

Analyze PostgreSQL query plans and recommend indexing strategies.

30|7|Updated Mar 1, 2026
One-click install
npx skills add https://github.com/rfdiosuao/openfang-cn --skill postgres-expert-rfdiosuao
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: postgres-expert
Source: https://github.com/rfdiosuao/openfang-cn/tree/main/crates/openfang-skills/bundled/postgres-expert
Command: npx skills add https://github.com/rfdiosuao/openfang-cn --skill postgres-expert-rfdiosuao

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps users optimize PostgreSQL database performance by providing expert advice on query tuning, indexing strategies, and database administration best practices.

Core Features & Use Cases

  • Query Optimization: Analyzes query plans and suggests improvements for faster execution.
  • Indexing Strategies: Recommends appropriate index types and creation for specific access patterns.
  • Schema Design: Guides on normalization and denormalization tradeoffs for performance.
  • Database Administration: Offers insights on vacuuming, partitioning, and connection pooling.
  • Use Case: A developer struggling with slow report generation can use this Skill to identify bottlenecks and apply specific index recommendations to speed up their queries.

Quick Start

Analyze the query plan for the following SQL statement: EXPLAIN (ANALYZE, BUFFERS) SELECT * FROM users WHERE created_at BETWEEN '2023-01-01' AND '2023-12-31'.

Frequently Asked Questions about postgres-expert

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

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

To optimize slow PostgreSQL queries, analyze the execution plan using EXPLAIN (ANALYZE, BUFFERS) to identify performance bottlenecks. This Skill evaluates query plans, MVCC behavior, and SQL access patterns to recommend specific execution improvements and faster data retrieval strategies.

What is the best indexing strategy for PostgreSQL performance tuning?

The best indexing strategy for PostgreSQL performance tuning matches index types to your specific access patterns. This Skill recommends appropriate index creation by evaluating query planners and schema design, ensuring efficient data retrieval without unnecessary overhead.

How does schema design affect PostgreSQL performance and scalability?

Schema design affects PostgreSQL performance by dictating normalization and denormalization tradeoffs for data retrieval speed. This Skill guides schema structuring to eliminate performance bottlenecks, ensuring scalable database configurations that handle high-volume query loads efficiently.

When do I need database administration tasks like vacuuming and partitioning in PostgreSQL?

You need database administration tasks like vacuuming and partitioning in PostgreSQL when managing MVCC bloat and large datasets for scalable configurations. This Skill offers insights on connection pooling and administration best practices to maintain efficient database performance.

Can I use this Skill to fix performance bottlenecks in scalable PostgreSQL environments?

Yes, you can use this Skill to fix performance bottlenecks in scalable PostgreSQL environments. It provides expert guidance on query optimization, indexing, and database administration tailored for environments requiring deep understanding of query planners and SQL best practices.