postgres

Optimize PostgreSQL queries, indexing, and operational performance.

Updated Feb 27, 2026
One-click install
npx skills add https://github.com/mangorocketofficial/thohago_marketing_aiagent --skill postgres-mangorocketofficial
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: postgres
Source: https://github.com/mangorocketofficial/thohago_marketing_aiagent/tree/main/.agent/skills/postgres
Command: npx skills add https://github.com/mangorocketofficial/thohago_marketing_aiagent --skill postgres-mangorocketofficial

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill provides comprehensive guidance on optimizing PostgreSQL databases, troubleshooting performance issues, and understanding its operational architecture.

Core Features & Use Cases

  • Performance Tuning: Offers best practices for indexing, query optimization, and memory management.
  • Operational Insights: Explains process architecture, replication, WAL, and checkpoint operations.
  • Troubleshooting: Guides on connection issues, bloat, and XID wraparound prevention.
  • Use Case: A developer is experiencing slow query performance on their PostgreSQL database and needs to identify and fix the bottleneck. They can use this Skill to analyze query plans, check for missing indexes, and tune relevant parameters.

Quick Start

Use the postgres skill to identify unused indexes in the current database.

Frequently Asked Questions about postgres

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

FAQPage Schema
How do I fix slow PostgreSQL query performance and identify bottlenecks?

To fix slow PostgreSQL query performance, you can analyze query plans, check for missing indexes, and tune relevant memory parameters. This skill provides indexing strategies and best practices to identify and resolve query bottlenecks.

How does MVCC and VACUUM work in PostgreSQL to manage bloat?

MVCC and VACUUM in PostgreSQL manage bloat by reclaiming space from obsolete tuples. This skill explains how MVCC architecture works and provides operational guidance on VACUUM processes to prevent database bloat.

What is the best way to monitor PostgreSQL replication and WAL operations?

Monitoring PostgreSQL replication and WAL operations involves using built-in monitoring views to track checkpoint operations and process architecture. This skill provides operational insights to help you observe and manage replication effectively.

How do I prevent XID wraparound and troubleshoot connection issues in PostgreSQL?

Preventing XID wraparound and troubleshooting PostgreSQL connection issues requires understanding transaction ID limits and network configurations. This skill offers specific guidance to address connection failures and wraparound prevention.

When do I need partitioning for PostgreSQL schema design?

You need partitioning in PostgreSQL schema design when managing large tables to improve query performance and maintenance. This skill covers schema design and partitioning strategies to optimize database structure for your specific scale.

Can I find unused indexes in my PostgreSQL database to improve optimization?

You can find unused indexes in your PostgreSQL database to improve optimization by analyzing monitoring views. This skill enables you to identify and remove unused indexes, reducing write overhead and storage requirements.