Improve TransactionIdDidAbort() documentation.
Peter Geoghegan <pg@bowt.ie>
Improve TransactionIdDidAbort() documentation. Document that TransactionIdDidAbort() won't indicate that transactions that were in-progress during a crash have aborted. Tie this to existing discussion of the TransactionIdDidCommit() and TransactionIdDidCommit() protocol that code in heapam_visibility.c (and a few other places) must observe. Follow-up to bugfix commit eb5ad4ff. Author: Peter Geoghegan <pg@bowt.ie> Reviewed-By: Andres Freund <andres@anarazel.de> Discussion: https://postgr.es/m/CAH2-Wzn4bEEqgmaUQL3aJ73yM9gAeK-wE4ngi7kjRjLztb+P0w@mail.gmail.com
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/access/heap/heapam_visibility.c | modified | +18 −15 |
| src/backend/access/transam/transam.c | modified | +8 −1 |
Discussion
- pgsql: Delay commit status checks until freezing executes. 24 messages · 2023-01-03 → 2023-01-11