Nov 2026

1 commit
Fix io_uring resource leaks across crash restarts
5 Nov 2026Fujii MasaomasterunreleasedREL_19_STABLE19rc2REL_18_STABLE18.7
LLM analysis, 100% surelanded as postedfrom patchset #144 of 6 reviewers saw the final version

The committed diff exactly matches #14, including all three hunks in src/backend/storage/aio/method_io_uring.c. Fujii forwarded the revised patch with Lucas DRAESCHER identified in its From and Author fields, and the commit preserves that authorship.

  • ChangAo Chensaw the final versiontrailerIn #2, reproduced the leak, verified that #1 fixed it and that only the postmaster invokes cleanup; the committed branch returns to that implementation with light cleanup and assertion changes.
  • Ilmar Yunusovsaw an earlier versiontrailerIn #5, tested builds, AIO TAP tests and repeated crash restarts with #4, before the generic cleanup interface was replaced with method-local registration.
  • Laetitia Avrotsaw an earlier versiontrailerIn #6 and #7, reported successful regression and crash-restart tests of #4 and favored its generic interface, which was subsequently dropped.
  • Jakub Wartaksaw the final versiontrailerReviewed #3 in #10, tested #12 in #13, and confirmed successful tests and leak prevention for the final #14 on master and PostgreSQL 18 in #15.
  • Fujii Masaosaw the final versiontrailerRaised the interface ABI concern in #9, revised the original approach into #14, and committed that version as announced in #18.
  • Xuneng Zhousaw the final versiontrailerIn #16, verified stable descriptor counts with #14 and reported that corrupted shared-memory ring descriptors could make cleanup close the postmaster's listening socket.

Credits across 1 commit

Author
Lucas DRAESCHER1
Reviewer
cca55071
Fujii Masao1
Ilmar Yunusov1
Jakub Wartak1
Lætitia Avrot1
Xuneng Zhou1
Reported by
Lucas DRAESCHER1
Committer
Fujii Masao1