Tables without primary keys cannot use logical replication and have degraded query performance.
Why This Matters
Missing primary keys prevent logical replication, make UPDATE/DELETE operations slow, and break many ORMs and API generators.
Tags
Schema DesignSplinterpostgresql
Related Rules
Catch this automatically on every PR
BeforeMerge scans your pull requests against this rule and 3+ others. Get actionable feedback before code ships.