postgresql-pro

Guide PostgreSQL schema design, performance tuning, and RLS migrations.

1|Updated Jul 3, 2026
One-click install
npx skills add https://github.com/truongnat/skills --skill postgresql-pro
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: postgresql-pro
Source: https://github.com/truongnat/skills/tree/main/skills/postgresql-pro
Command: npx skills add https://github.com/truongnat/skills --skill postgresql-pro

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Professional PostgreSQL guidance for robust schema design, performance tuning, migrations, and Row Level Security (RLS) management across production systems.

Core Features & Use Cases

  • Schema design and indexing strategies for scalable PostgreSQL deployments.
  • Performance tuning and query optimization using EXPLAIN ANALYZE and planning best practices.
  • Migration guidance for zero-downtime upgrades, including CONCURRENTLY and backfill strategies.
  • Row Level Security (RLS) policy design, testing, and multi-tenant patterns.
  • Operational considerations: vacuum, replication, pooling, partitioning, and observability.

Quick Start

Load this skill into your PostgreSQL projects to begin applying best practices for schema, performance, and RLS.

Frequently Asked Questions about postgresql-pro

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

FAQPage Schema
How do I perform zero-downtime PostgreSQL migrations in production?

Perform zero-downtime PostgreSQL migrations using CONCURRENTLY operations and backfill strategies to avoid locking tables. This approach ensures production deployments upgrade schemas safely without disrupting active database traffic.

What are the best practices for PostgreSQL row level security policies in multi-tenant applications?

PostgreSQL row level security policies for multi-tenant applications require strict tenant isolation patterns and thorough testing. Designing specific RLS policies ensures data governance by restricting row access based on user context across shared tables.

How do I use EXPLAIN ANALYZE for PostgreSQL query tuning?

Use EXPLAIN ANALYZE for PostgreSQL query tuning to review execution plans and identify performance bottlenecks. Analyzing query planning best practices helps optimize slow queries by exposing actual runtime costs and scan methods.

Does PostgreSQL indexing with CONCURRENTLY work for large production tables?

PostgreSQL indexing with CONCURRENTLY works for large production tables by avoiding write lock acquisition during index creation. This allows you to add indexes to active databases safely without blocking concurrent inserts, updates, or deletes.

What PostgreSQL operational tasks do I need for production database maintenance?

PostgreSQL production maintenance requires managing vacuum processes, replication, connection pooling, and partitioning. Configuring these operational considerations and observability metrics ensures database stability and scalable performance.

Why is PostgreSQL schema design important for scalable deployments?

PostgreSQL schema design is important for scalable deployments because proper table structures and indexing strategies directly impact query performance. Architecting schemas correctly from the start prevents costly migrations and bottlenecks as data grows.