postgres-patterns

Solve PostgreSQL query performance, indexing, and security challenges.

Updated Mar 29, 2026
One-click install
npx skills add https://github.com/romankovsv/claude-code-python-devops-mlops --skill postgres-patterns-romankovsv
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: postgres-patterns
Source: https://github.com/romankovsv/claude-code-python-devops-mlops/tree/main/skills/postgres-patterns
Command: npx skills add https://github.com/romankovsv/claude-code-python-devops-mlops --skill postgres-patterns-romankovsv

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

PostgreSQL patterns help database teams design efficient schemas, optimize queries, and enforce best practices for secure, scalable data stores.

Core Features & Use Cases

  • Pattern catalog for indexing, data types, and query templates.
  • Practical guidance for common scenarios like OLTP workloads, JSONB usage, and partial indexes.
  • Anti-pattern detection and performance troubleshooting techniques.

Quick Start

Design and implement a robust PostgreSQL schema using the patterns and recommendations in this guide.

Frequently Asked Questions about postgres-patterns

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

FAQPage Schema
How do I optimize slow PostgreSQL queries in production?

You can optimize slow PostgreSQL queries by applying indexing patterns, detecting anti-patterns, and leveraging query templates to troubleshoot workloads and improve database performance.

What are the best PostgreSQL indexing patterns for OLTP workloads?

The best PostgreSQL indexing patterns for OLTP workloads include using partial indexes and JSONB guidance to design efficient schemas and ensure fast, reliable data retrieval under high transaction volumes.

How do I detect anti-patterns in my PostgreSQL database design?

Detect anti-patterns in PostgreSQL database design by applying pattern catalogs and performance troubleshooting techniques that identify inefficient data types, poor indexing, and insecure schema structures.

When should I use JSONB data types in PostgreSQL?

Use PostgreSQL JSONB data types when handling flexible or semi-structured data, applying specific pattern guidance to balance query performance and schema scalability without compromising reliability.

Can I enforce security patterns alongside query optimization in PostgreSQL?

You can enforce PostgreSQL security patterns alongside query optimization by integrating data-type guidance and anti-pattern detection to build secure, scalable, and efficient database schemas simultaneously.