]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Doc: add comments about PreventInTransactionBlock/IsInTransactionBlock.
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 9 Nov 2022 16:08:52 +0000 (11:08 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 9 Nov 2022 16:08:52 +0000 (11:08 -0500)
commit8befa05d78892c3830efb4f356e1de562e4c6cb7
tree302b77977d99cc68d0ced57b008111c6e3cffbf3
parent2e4229691c666667f5b5c751773c12b2f2f6b00b
Doc: add comments about PreventInTransactionBlock/IsInTransactionBlock.

Add a little to the header comments for these functions to make it
clearer what guarantees about commit behavior are provided to callers.
(See commit f92944137 for context.)

Although this is only a comment change, it's really documentation
aimed at authors of extensions, so it seems appropriate to back-patch.

Yugo Nagata and Tom Lane, per further discussion of bug #17434.

Discussion: https://postgr.es/m/17434-d9f7a064ce2a88a3@postgresql.org
src/backend/access/transam/xact.c