postgres_pro

Analyze PostgreSQL slow queries and design appropriate indexes.

43|11|Updated Dec 27, 2025
One-click install
npx skills add https://github.com/vuralserhat86/antigravity-agentic-skills --skill postgres-pro-vuralserhat86
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: postgres_pro
Source: https://github.com/vuralserhat86/antigravity-agentic-skills/tree/main/skills/postgres_pro
Command: npx skills add https://github.com/vuralserhat86/antigravity-agentic-skills --skill postgres-pro-vuralserhat86

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) and scripts (resource) components.

What problem does it solve?

This Skill addresses complex PostgreSQL database challenges, including slow query performance, replication issues, and inefficient data management, ensuring your database is optimized and highly available.

Core Features & Use Cases

  • Query Optimization: Analyze and tune slow queries using EXPLAIN ANALYZE.
  • Indexing Strategies: Design and implement appropriate indexes (B-tree, GIN, GiST, BRIN) for various data types and workloads.
  • Replication Setup: Configure streaming or logical replication for high availability and disaster recovery.
  • JSONB & Extensions: Efficiently manage JSONB data and leverage powerful extensions like PostGIS and pgvector.
  • Database Maintenance: Tune autovacuum, monitor bloat, and ensure overall database health.

Quick Start

Use the postgres_pro skill to analyze the performance of the query 'SELECT * FROM users WHERE email LIKE '%@example.com%';' and suggest appropriate indexes.

Frequently Asked Questions about postgres_pro

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

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

To tune slow PostgreSQL queries, you analyze the query execution plans generated by EXPLAIN ANALYZE to identify bottlenecks like sequential scans and then apply appropriate indexing strategies to optimize performance.

What's the best way to configure PostgreSQL replication for high availability?

The best way to configure PostgreSQL replication for high availability is to set up streaming or logical replication, which provides disaster recovery and ensures database reliability during failover scenarios.

When should I use GIN or GiST indexes for JSONB data in PostgreSQL?

You should use GIN or GiST indexes for JSONB data in PostgreSQL when you need to efficiently query and extract values from complex JSON documents, allowing advanced feature utilization for unstructured data workloads.

Why does autovacuum cause performance issues and how do I tune it?

Autovacuum causes performance issues when it cannot keep up with database bloat, but you can tune it by adjusting system monitoring parameters and maintenance configurations to ensure overall database health.

Can I use PostgreSQL extensions like PostGIS and pgvector alongside standard tables?

You can use PostgreSQL extensions like PostGIS and pgvector alongside standard tables to efficiently manage specialized data types such as geospatial information and high-dimensional vector embeddings within your database.