PostgreSQL Best Practices & Optimization

•
12
•

Provides optimized PostgreSQL patterns for schema design, query performance, and database security based on industry standards.

This skill equips Claude with a comprehensive reference for PostgreSQL architecture, focusing on performance-first schema design and query optimization. It streamlines the development process by offering ready-to-use patterns for advanced indexing strategies, efficient Row Level Security (RLS), and complex operations like queue processing and cursor-based pagination. Whether you are building a new application from scratch or troubleshooting a production database, this skill helps identify anti-patterns and implement Supabase-inspired best practices to ensure your data layer is scalable, secure, and highly performant.

主要功能

01High-performance SQL patterns for UPSERT and cursor pagination
0212 GitHub stars
03Optimized Row Level Security (RLS) policy templates
04Database configuration templates for connection limits and monitoring
05Comprehensive indexing cheat sheet for B-tree, GIN, and BRIN types
06Anti-pattern detection for unindexed foreign keys and table bloat

使用场景

01Identifying and fixing performance bottlenecks in slow-running SQL queries
02Designing a new database schema with optimal data types and relationships
03Implementing secure multi-tenant data access using Row Level Security