Postgres Project Rules Checklist
25 verification rules for schemas, queries, migrations, and operations. Use at project kickoff, quarterly audits, and before major releases.
Search across all documentation pages
25 verification rules for schemas, queries, migrations, and operations. Use at project kickoff, quarterly audits, and before major releases.
user and orders.id or {table}_id consistently. Surrogate bigint/identity preferred.timestamptz for all instants; never timestamp without time zone for events. Timezone bugs are expensive.SELECT * millions of rows.pg_stat_user_indexes.idx_scan = 0 candidates reviewed.lock_timeout set in migration scripts. Fail fast, do not block traffic.tenant_id in policies.pg_hba.conf default-deny network.hostssl in hba for app subnets.pg_stat_statements or equivalent query insights enabled. Top queries reviewed monthly.Stack versions: This page was written for PostgreSQL 18.4 (stable 18, maintenance 17), pgvector 0.8+, PgBouncer 1.x, Patroni 3.x, and PostGIS 3.5+.
Reviewed by Chris St. John·Last updated Jul 18, 2026