postgres-patterns

Optimize PostgreSQL database design, indexing, and query patterns.

25|13|Updated Jan 27, 2026
One-click install
npx skills add https://github.com/aaione/everything-claude-code-cn --skill postgres-patterns-aaione
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: postgres-patterns
Source: https://github.com/aaione/everything-claude-code-cn/tree/main/skills/postgres-patterns
Command: npx skills add https://github.com/aaione/everything-claude-code-cn --skill postgres-patterns-aaione

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

帮助数据库设计者和开发人员在 PostgreSQL 中快速参考常用模式,以提升查询性能、架构清晰度和安全性。

Core Features & Use Cases

  • 快速参考索引策略、数据类型对照和常见模式,帮助设计高效的数据库结构。
  • 包含 RLS 安全配置示例、反模式检测,以及与 Supabase 最佳实践相关的要点。
  • Use Case: 针对慢查询、迁移设计和安全策略进行模式化的提升与验证。

Quick Start

Apply these PostgreSQL patterns to optimize queries and design scalable schemas.

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 and improve database scalability?

To optimize slow PostgreSQL queries, apply recommended indexing strategies, query pattern adjustments, and schema design improvements to accelerate data retrieval and ensure better database scalability.

What is the best way to configure Row Level Security (RLS) in Supabase?

Configuring Row Level Security (RLS) in Supabase involves applying specific security pattern examples to restrict data access, validated through anti-pattern detection to ensure policies align with best practices.

How do I design a scalable PostgreSQL schema for faster data retrieval?

Designing a scalable PostgreSQL schema requires referencing data type comparisons and common structural patterns to build efficient database architectures that accelerate data retrieval and avoid bottlenecks.

Does this database pattern guidance cover connection-pool setup for PostgreSQL?

Yes, the database pattern guidance covers connection-pool setup, providing practical constraints and concrete examples to properly configure connection management across PostgreSQL and Supabase implementations.

How do I detect and fix PostgreSQL indexing anti-patterns during migration?

Detecting PostgreSQL indexing anti-patterns during migration involves validating schema changes against established pattern recommendations to identify inefficient queries and apply correct data retrieval strategies.