PostgreSQL Code Review

•
64
•

Audits PostgreSQL schemas and queries for performance bottlenecks, transaction safety, and optimal JSONB usage.

This skill provides specialized PostgreSQL expertise to Claude, enabling detailed reviews of database schemas, SQL queries, and connection management code. It focuses on identifying missing indexes, optimizing complex JSONB operations with GIN indexes, ensuring transaction isolation levels are appropriate for the use case, and preventing common pitfalls like connection leaks or SQL injection. By using evidence-based gates, the skill ensures that every recommendation is backed by specific code citations, making it an essential tool for developers building and maintaining high-performance, secure, and scalable database layers.

주요 기능

01JSONB Optimization: Reviews JSONB queries for proper operators and GIN index utilization.
02Connection Lifecycle Audit: Checks for connection pool configuration issues and potential resource leaks.
03Indexing Strategy Analysis: Identifies missing or incorrect indexes to prevent costly sequential scans.
0464 GitHub stars
05SQL Injection Prevention: Verifies parameter binding and flags unsafe string formatting in database calls.
06Transaction & Lock Safety: Evaluates isolation levels, deadlock risks, and long-running transaction locks.

사용 사례

01Ensuring secure and efficient database connection handling in backend application code.
02Troubleshooting slow PostgreSQL queries and optimizing JSON-heavy data models for better throughput.
03Peer-reviewing database migrations and DDL scripts for performance and architectural risks.