postgres-patterns

Community

Optimize PostgreSQL queries for faster databases.

Authorflag3
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Solves PostgreSQL query inefficiencies and poor schema decisions by providing proven patterns.

Core Features & Use Cases

  • Query optimization templates: pattern-based guidance for common WHERE, JOIN, and aggregation scenarios to reduce latency.
  • Indexing and schema design: recommendations for B-tree, BRIN, GIN for text and JSON, partial and composite indexes, and effective table design.
  • Security and governance: guidance on Row Level Security (RLS) and safe defaults to control data access.
  • Use Case: Engineers refactor a slow reporting query by applying a composite index and an appropriate filter strategy to speed up execution.

Quick Start

To start, review your current workload and run a pattern audit against a sample schema to identify candidate indexes and RLS policies that align with Supabase best practices.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: postgres-patterns
Download link: https://github.com/flag3/dotfiles/archive/main.zip#postgres-patterns

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.