postgres-best-practices

작성자: neondatabase

Postgres 작업을 위한 모범 사례와 지침입니다. 스키마 설계, 인덱싱 전략, 쿼리 최적화, 마이그레이션 및 일반적인 함정을 다룹니다. 사용…

npx skills add https://github.com/neondatabase/postgres-skills --skill postgres-best-practices

Postgres Best Practices

Guidelines and best practices for working with Postgres, covering schema design, indexing, query optimization, and common pitfalls.

Supported Versions

This skill covers PostgreSQL 14 through 18. Version-specific features are tagged (e.g., [PG15+], [PG18+]); environment-dependent examples identify required privileges, extensions, or multi-node setup.

PostgreSQL provides 5 years of support per major version. Always run the latest minor release.

VersionInitial ReleaseEnd of Life
18September 2025November 2030
17September 2024November 2029
16September 2023November 2028
15October 2022November 2027
14September 2021November 2026

Source: postgresql.org/support/versioning

References

AreaResourceWhen to Use
Schema Designreferences/schema-design.mdDesigning tables, choosing data types, normalizing, partitioning
Indexingreferences/indexing.mdChoosing index types, composite indexes, partial/covering indexes
Query Optimizationreferences/query-optimization.mdReading EXPLAIN ANALYZE, fixing bottlenecks, planner tuning
Query Patternsreferences/query-patterns.mdCTEs, window functions, lateral joins, UPSERT, JSONB, anti-patterns
Performance Diagnosticsreferences/performance-diagnostics.mdpg_stat views, lock analysis, VACUUM, connection management
Logical Replicationreferences/logical-replication.mdPub/sub replication, live migrations, CDC
Hot Standbyreferences/hot-standby.mdStreaming replication, read replicas, failover
Transaction Isolationreferences/transaction-isolation.mdIsolation levels, lost updates, serialization failures, retry logic
Backup & Restorereferences/backup-restore.mdpg_dump/pg_restore, pg_basebackup, PITR, recovery
Security & Rolesreferences/security-roles.mdPrivileges, RLS, pg_hba.conf, authentication, SSL
Bulk Data Loadingreferences/bulk-loading.mdCOPY patterns, ETL staging, optimizing large loads, batch ops
Connection Poolingreferences/connection-pooling.mdPgBouncer config, pool modes, prepared statements, sizing
Major Version Upgradesreferences/major-version-upgrades.mdpg_upgrade, logical replication migration, pre/post checklists

neondatabase의 다른 스킬

claimable-postgres
neondatabase
로컬 개발, 데모, 프로토타이핑 및 테스트 환경을 위한 즉시 사용 가능한 Postgres 데이터베이스입니다. 계정이 필요하지 않습니다. 데이터베이스는 Neon 계정에 클레임되지 않으면 72시간 후에 만료됩니다.
neon
neondatabase
Neon 플랫폼 개요: Postgres, Auth, Data API, 그리고 새로운 서비스인 Object Storage, Compute Functions, AI Gateway를 포함한 앱 및 에이전트 지원. "Neon"이 언급될 때마다 Neon 사용 방법과 시작 가이드 개요로 활용. 개별 기능은 다음 트리거로 연결: "object storage" 또는 "S3-compatible storage", "serverless functions", "background jobs", 또는 "run code near my database", "AI gateway", "LLM proxy", "model routing", 또는 "call an LLM" →...
apidatabasedevelopment
plugin-manager
neondatabase
이 저장소의 Cursor와 Claude Code 전반에 걸쳐 플러그인 구조와 구성을 관리합니다. 플러그인 폴더를 생성, 업데이트 또는 검토할 때 사용하세요…
skill-creator
neondatabase
효과적인 스킬을 생성하기 위한 가이드입니다. 이 스킬은 사용자가 Claude의 기능을 확장하는 새로운 스킬을 만들거나 기존 스킬을 업데이트하려 할 때 사용해야 합니다.
using-neon
neondatabase
Neon Serverless Postgres 작업을 위한 가이드 및 모범 사례. 시작하기, Neon을 사용한 로컬 개발, 연결 방법 선택, Neon…
neon-js-react
neondatabase
React 앱(Vite, CRA)에서 인증 및 데이터베이스 쿼리를 포함한 전체 Neon SDK를 설정합니다. 타입화된 클라이언트를 생성하고, 데이터베이스 타입을 생성하며, 구성합니다…
neon-postgres-egress-optimizer
neondatabase
사용자가 Postgres 데이터베이스에서 과도한 데이터 전송(이그레스)을 유발하는 애플리케이션 측 쿼리 패턴을 진단하고 수정하도록 안내합니다. 대부분의 높은 이그레스 비용은 애플리케이션이 실제 사용하는 데이터보다 더 많은 데이터를 가져오기 때문에 발생합니다.
neon-postgres-branches
neondatabase
이 스킬의 결과는 생성된 Neon 브랜치(또는 생성이 진행될 수 없는 경우 명확하고 실행 가능한 다음 단계)여야 합니다. 올바른 브랜치 유형을 선택한 다음 MCP 또는 CLI를 통해 브랜치 생성을 실행합니다.