Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit afc9635

Browse files
committed
Add C comment that txid_current() assigns an XID if one is not already
assigned.
1 parent 3315020 commit afc9635

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/backend/utils/adt/txid.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,8 @@ parse_snapshot(const char *str)
321321
/*
322322
* txid_current() returns int8
323323
*
324-
* Return the current toplevel transaction ID as TXID
324+
* Return the current toplevel transaction ID as TXID
325+
* If the current transaction does not have one, one is assigned.
325326
*/
326327
Datum
327328
txid_current(PG_FUNCTION_ARGS)

0 commit comments

Comments
 (0)