Skip to content

Transaction-plan follow-ups from the #2428 round-4 review (same-class findings) #2481

Not planned

Description

@abrichr

From Codex's round-4 review of #2428 at 721da41c, the findings past the two-round cap that belong to classes already fixed once in the PR. The shared fail-open work (claude/fail-open-general) is meant to close them by class.

  1. Unobserved scope (item 3). The per-statement pg_stat_xact check runs before commit. Deferred work at commit (a deferred trigger, or a constraint trigger writing to another schema) isn't observed, and the post-commit re-read covers only the current schema. Extend the post-commit check to every schema the account can write, or refuse schemas with deferred triggers.
  2. Stale baseline (item 7). A held REST write is rechecked by a read and then sent, which leaves a read-then-write race. A conditional request (If-Match/ETag or a version field) is needed. SQL compensation now checks inside its own transaction.
  3. Replay verification (item 9). A raw-SQL replay is VERIFIED from the stored post-commit flag. It should re-read the rows named in the plan's undo images and compare them with the committed after-image.

Activity

  1. abrichr commented on Nov 25, 2026

    @abrichr
    MemberAuthor

    Closing as not planned: round-4 review follow-ups for the frozen txplan/ subsystem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions