Skip to content

feat(checkers): add missing_replica_identity#25

Merged
pirr merged 1 commit into
mainfrom
feat/checker-missing-replica-identity
May 5, 2026
Merged

feat(checkers): add missing_replica_identity#25
pirr merged 1 commit into
mainfrom
feat/checker-missing-replica-identity

Conversation

@pirr

@pirr pirr commented May 5, 2026

Copy link
Copy Markdown
Owner

Flags tables whose effective REPLICA IDENTITY is empty — UPDATE/DELETE will not replicate via logical decoding. Two cases match:

  • relreplident = 'd' (default) but no PRIMARY KEY exists, or
  • relreplident = 'n' (explicit NOTHING).

Strictly narrower than missing_primary_key: tables with explicit REPLICA IDENTITY USING INDEX or FULL are not flagged here, even if they lack a PK. Skips temp / unlogged tables (never replicated) and partition children (identity is inherited from the parent).

Severity warning, matching missing_primary_key. The rule doc walks through fixes (ADD PRIMARY KEY, USING INDEX, FULL) and notes when to disable for teams not using logical replication.

Updates README.md / docs/rules/README.md / docs/severity.md to list the new rule. Drops it from the ROADMAP medium-term list.

Flags tables whose effective REPLICA IDENTITY is empty — UPDATE/DELETE
will not replicate via logical decoding. Two cases match:

  - relreplident = 'd' (default) but no PRIMARY KEY exists, or
  - relreplident = 'n' (explicit NOTHING).

Strictly narrower than missing_primary_key: tables with explicit
REPLICA IDENTITY USING INDEX or FULL are not flagged here, even if they
lack a PK. Skips temp / unlogged tables (never replicated) and partition
children (identity is inherited from the parent).

Severity warning, matching missing_primary_key. The rule doc walks
through fixes (ADD PRIMARY KEY, USING INDEX, FULL) and notes when to
disable for teams not using logical replication.

Updates README.md / docs/rules/README.md / docs/severity.md to list the
new rule. Drops it from the ROADMAP medium-term list.
@pirr pirr self-assigned this May 5, 2026
@pirr pirr added the checkers label May 5, 2026
@pirr pirr merged commit faaa607 into main May 5, 2026
2 checks passed
@pirr pirr deleted the feat/checker-missing-replica-identity branch May 5, 2026 17:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant