postgres

PostgreSQL best practices, query optimization, connection troubleshooting, and performance improvement. Load when working with Postgres databases.

rifandani/be-monorepo1 installsMITSynced Aug 26

Works with

Claude CodeCursorCodex CLIGitHub CopilotGemini CLI
---
name: postgres
description: PostgreSQL best practices, query optimization, connection troubleshooting, and performance improvement. Load when working with Postgres databases.
license: MIT
---

# Postgres

## Schema and Query Optimization

| Topic                  | Reference                                                                    | Use for                                                   |
| ---------------------- | ---------------------------------------------------------------------------- | --------------------------------------------------------- |
| Schema Design          | [references/schema-design.md](references/schema-design.md)                   | Tables, primary keys, data types, foreign keys            |
| Indexing               | [references/indexing.md](references/indexing.md)                             | Index types, composite indexes, performance               |
| Index Optimization     | [references/index-optimization.md](references/index-optimization.md)         | Unused/duplicate index queries, index audit               |
| Partitioning           | [references/partitioning.md](references/partitioning.md)                     | Large tables, time-series, data retention                 |
| Query Patterns         | [references/query-patterns.md](references/query-patterns.md)                 | SQL anti-patterns, JOINs, pagination, batch queries       |
| Optimization Checklist | [references/optimization-checklist.md](references/optimization-checklist.md) | Pre-optimization audit, cleanup, readiness checks         |
| MVCC and VACUUM        | [references/mvcc-vacuum.md](references/mvcc-vacuum.md)                       | Dead tuples, long transactions, xid wraparound prevention |

## Operations and Architecture

| Topic                | Reference                                                                  | Use for                                                      |
| -------------------- | -------------------------------------------------------------------------- | ------------------------------------------------------------ |
| Process Architecture | [references/process-architecture.md](references/process-architecture.md)   | Multi-process model, connection pooling, auxiliary processes |
| Memory Architecture  | [references/memory-management-ops.md](references/memory-management-ops.md) | Shared/private memory layout, OS page cache, OOM prevention  |
| MVCC Transactions    | [references/mvcc-transactions.md](references/mvcc-transactions.md)         | Isolation levels, XID wraparound, serialization errors       |
| WAL and Checkpoints  | [references/wal-operations.md](references/wal-operations.md)               | WAL internals, checkpoint tuning, durability, crash recovery |
| Replication          | [references/replication.md](references/replication.md)                     | Streaming replication, slots, sync commit, failover          |
| Storage Layout       | [references/storage-layout.md](references/storage-layout.md)               | PGDATA structure, TOAST, fillfactor, tablespaces, disk mgmt  |
| Monitoring           | [references/monitoring.md](references/monitoring.md)                       | pg_stat views, logging, pg_stat_statements, host metrics     |
| Backup and Recovery  | [references/backup-recovery.md](references/backup-recovery.md)             | pg_dump, pg_basebackup, PITR, WAL archiving, backup tools    |

More Database skills

← All Database skills

Check your AI visibility

One URL in, a 0–100 score and the exact fixes out.

RUN THE CHECK

Browse all the tools

15 tools across six categories
13 of them never send your data anywhere

Free · No signup · No trial clock

SEE THE DIRECTORY