postgres

Provide architectural guidance and performance optimization for PostgreSQL 16+ databases.

Updated Jul 6, 2026
One-click install
npx skills add https://github.com/brenordv/claude-skill-set --skill postgres-brenordv
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: postgres
Source: https://github.com/brenordv/claude-skill-set/tree/main/skills/postgres
Command: npx skills add https://github.com/brenordv/claude-skill-set --skill postgres-brenordv

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill addresses the complexity of managing production-grade PostgreSQL databases, helping you avoid common performance pitfalls, security vulnerabilities, and data integrity issues.

Core Features & Use Cases

  • Schema Design & Optimization: Provides expert guidance on data types, indexing strategies (B-tree, GIN, HNSW), and partitioning for high-performance workloads.
  • Query Performance Tuning: Offers systematic approaches to diagnosing slow queries using EXPLAIN ANALYZE and implementing efficient join and pagination patterns.
  • Security & Reliability: Enforces best practices for Row-Level Security (RLS), connection pooling, and zero-downtime migration strategies.

Quick Start

Ask the postgres skill to analyze the current schema and suggest missing indexes for the orders table.

Frequently Asked Questions about postgres

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, use EXPLAIN ANALYZE to diagnose execution bottlenecks and apply efficient join patterns or missing indexes. This approach systematically identifies performance issues to improve query response times.

What are the best indexing strategies for high-performance PostgreSQL workloads?

The best PostgreSQL indexing strategies for high-performance workloads include using B-tree for standard lookups, GIN for composite values, and HNSW for vector searches. Selecting the right index type ensures rapid data retrieval.

How do I perform zero-downtime migrations in PostgreSQL 16+?

To perform zero-downtime migrations in PostgreSQL 16+, follow production-grade maintenance workflows that enforce best practices for schema changes. This ensures database availability and data integrity during updates.

When should I use table partitioning in PostgreSQL?

You should use table partitioning in PostgreSQL when managing high-performance workloads that require faster data access and easier maintenance. Partitioning divides large tables into smaller, manageable pieces for optimized querying.

How do I implement Row-Level Security in PostgreSQL?

To implement Row-Level Security (RLS) in PostgreSQL, apply security best practices that restrict data access at the row level based on user roles. This ensures reliable data protection and enforces strict access controls.