PostgreSQL Patterns & Best Practices

•
15
•

Optimizes PostgreSQL database schemas, queries, and security using industry-standard patterns and Supabase best practices.

This skill provides a comprehensive reference and implementation guide for PostgreSQL, focusing on performance optimization, secure schema design, and advanced indexing strategies. It helps developers avoid common pitfalls like unindexed foreign keys and table bloat while offering ready-to-use templates for complex operations such as UPSERTs, cursor pagination, and queue processing. Whether you are building on Supabase or a standard PostgreSQL instance, this skill ensures your database architecture is scalable, performant, and secure.

Características Principales

01Automated anti-pattern detection for unindexed keys and table bloat
02Comprehensive indexing cheat sheet for B-tree, GIN, and BRIN patterns
03Performance tuning configurations for connection limits and timeouts
04Production-ready templates for UPSERTs and Cursor Pagination
0515 GitHub stars
06Optimized Row Level Security (RLS) policy implementation patterns

Casos de Uso

01Implementing secure multi-tenant data access using Row Level Security
02Troubleshooting and optimizing slow-running SQL queries with specific indexing
03Designing and migrating scalable database schemas for production apps