27fe45e, the version that was reviewed and scanned here. Newer commits reach this catalog only after a new review. License: Apache-2.0, by Neon.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.
| Version | Initial Release | End of Life |
|---|---|---|
| 18 | September 2025 | November 2030 |
| 17 | September 2024 | November 2029 |
| 16 | September 2023 | November 2028 |
| 15 | October 2022 | November 2027 |
| 14 | September 2021 | November 2026 |
Source: postgresql.org/support/versioning
References
| Area | Resource | When to Use |
|---|---|---|
| Schema Design | references/schema-design.md |
Designing tables, choosing data types, normalizing, partitioning |
| Indexing | references/indexing.md |
Choosing index types, composite indexes, partial/covering indexes |
| Query Optimization | references/query-optimization.md |
Reading EXPLAIN ANALYZE, fixing bottlenecks, planner tuning |
| Query Patterns | references/query-patterns.md |
CTEs, window functions, lateral joins, UPSERT, JSONB, anti-patterns |
| Performance Diagnostics | references/performance-diagnostics.md |
pg_stat views, lock analysis, VACUUM, connection management |
| Logical Replication | references/logical-replication.md |
Pub/sub replication, live migrations, CDC |
| Hot Standby | references/hot-standby.md |
Streaming replication, read replicas, failover |
| Transaction Isolation | references/transaction-isolation.md |
Isolation levels, lost updates, serialization failures, retry logic |
| Backup & Restore | references/backup-restore.md |
pg_dump/pg_restore, pg_basebackup, PITR, recovery |
| Security & Roles | references/security-roles.md |
Privileges, RLS, pg_hba.conf, authentication, SSL |
| Bulk Data Loading | references/bulk-loading.md |
COPY patterns, ETL staging, optimizing large loads, batch ops |
| Connection Pooling | references/connection-pooling.md |
PgBouncer config, pool modes, prepared statements, sizing |
| Major Version Upgrades | references/major-version-upgrades.md |
pg_upgrade, logical replication migration, pre/post checklists |
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.
| Version | Initial Release | End of Life |
|---|---|---|
| 18 | September 2025 | November 2030 |
| 17 | September 2024 | November 2029 |
| 16 | September 2023 | November 2028 |
| 15 | October 2022 | November 2027 |
| 14 | September 2021 | November 2026 |
Source: postgresql.org/support/versioning
References
| Area | Resource | When to Use |
|---|---|---|
| Schema Design | references/schema-design.md |
Designing tables, choosing data types, normalizing, partitioning |
| Indexing | references/indexing.md |
Choosing index types, composite indexes, partial/covering indexes |
| Query Optimization | references/query-optimization.md |
Reading EXPLAIN ANALYZE, fixing bottlenecks, planner tuning |
| Query Patterns | references/query-patterns.md |
CTEs, window functions, lateral joins, UPSERT, JSONB, anti-patterns |
| Performance Diagnostics | references/performance-diagnostics.md |
pg_stat views, lock analysis, VACUUM, connection management |
| Logical Replication | references/logical-replication.md |
Pub/sub replication, live migrations, CDC |
| Hot Standby | references/hot-standby.md |
Streaming replication, read replicas, failover |
| Transaction Isolation | references/transaction-isolation.md |
Isolation levels, lost updates, serialization failures, retry logic |
| Backup & Restore | references/backup-restore.md |
pg_dump/pg_restore, pg_basebackup, PITR, recovery |
| Security & Roles | references/security-roles.md |
Privileges, RLS, pg_hba.conf, authentication, SSL |
| Bulk Data Loading | references/bulk-loading.md |
COPY patterns, ETL staging, optimizing large loads, batch ops |
| Connection Pooling | references/connection-pooling.md |
PgBouncer config, pool modes, prepared statements, sizing |
| Major Version Upgrades | references/major-version-upgrades.md |
pg_upgrade, logical replication migration, pre/post checklists |
Scanned by
NVIDIA SkillSpector
Automated static analysis (no LLM) · v2.12.0 · 2026-11-19
Partial analysis: some checks could not run on this component.
6 observations in 3 categories
- Excessive Agency 3
- Tool Misuse 2
- Analysis evasion 1
SkillSpector looks for patterns such as shell commands, credential access, network calls or unpinned dependencies. An observation is something worth reading in the files before you install, not a confirmed vulnerability. Components that run code locally, like hooks, MCP servers and security tooling, naturally show more of them. Open one to see the lines it points at.
Incomplete referenced artifact analysisAnalysis evasion · SKILL.md:42
| 40 | | Bulk Data Loading | `references/bulk-loading.md` | COPY patterns, ETL staging, optimizing large loads, batch ops | |
| 41 | | Connection Pooling | `references/connection-pooling.md` | PgBouncer config, pool modes, prepared statements, sizing | |
| 42 | | Major Version Upgrades | `references/major-version-upgrades.md` | pg_upgrade, logical replication migration, pre/post checklists | |
Tool Parameter Abuse ×2Tool Misuse · references/major-version-upgrades.md:312
| 310 | |
| 311 | # Or manually: |
| 312 | rm -rf /var/lib/postgresql/16/main # be very careful with this |
| 313 | |
| 314 | # Uninstall old PostgreSQL version |
Autonomous Decision MakingExcessive Agency · references/query-optimization.md:196
| 194 | **B-tree skip scan (PG18+)**: Multi-column B-tree indexes can now be used even when there are no restrictions on the leading columns. Previously a composite index on `(tenant_id, created_at)` was useless for `WHERE created_at > '2024-01-01' |
| 195 | |
| 196 | **Self-join elimination**: The optimizer automatically removes unnecessary self-joins. Controlled by `enable_self_join_elimination`. |
| 197 | |
| 198 | **IN to ANY conversion**: `WHERE x IN (VALUES ...)` is converted to `x = ANY(...)` for better use of optimizer statistics. |
Unbounded Resource Access ×2Excessive Agency · references/connection-pooling.md:69
| 67 | # Timeouts |
| 68 | server_idle_timeout = 300 |
| 69 | client_idle_timeout = 0 |
| 70 | query_timeout = 0 |
| 71 | query_wait_timeout = 120 |
Learn more about NVIDIA SkillSpector or how components are reviewed.
Agent compatibility
Checked by NVIDIA SkillEvaluator Harness Check · v1.0.1 · 2026-11-18
How each agent reads this skill once it is installed, from the agents' documented loading rules. No agent was run. A note means the agent loads the skill but changes part of its text, or drops it.
Claude Code
loadsCodex
loadsCopilot CLI
loadsOpenCode
loadsHermes
loadsOpenClaw
loads
Every agent loads this skill as written. No notes.
Learn more about NVIDIA SkillEvaluator.