Improve TransactionIdDidAbort() documentation.
authorPeter Geoghegan <pg@bowt.ie>
Wed, 11 Jan 2023 23:31:42 +0000 (15:31 -0800)
committerPeter Geoghegan <pg@bowt.ie>
Wed, 11 Jan 2023 23:31:42 +0000 (15:31 -0800)
commitaf3855cb77b94a0321b77d7d9a9849700ea6a758
tree790c88394c39ec57c0841dddc59c97dc0db23c5b
parent8bf6ec3ba3a44448817af47a080587f3b71bee08
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
src/backend/access/heap/heapam_visibility.c
src/backend/access/transam/transam.c