From afc9635c600ace716294a12d78abd37f65abd0ea Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Mon, 11 Jul 2011 20:32:29 -0400 Subject: [PATCH] Add C comment that txid_current() assigns an XID if one is not already assigned. --- src/backend/utils/adt/txid.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/backend/utils/adt/txid.c b/src/backend/utils/adt/txid.c index 2907306e92..192ae6640d 100644 --- a/src/backend/utils/adt/txid.c +++ b/src/backend/utils/adt/txid.c @@ -321,7 +321,8 @@ bad_format: /* * txid_current() returns int8 * - * Return the current toplevel transaction ID as TXID + * Return the current toplevel transaction ID as TXID + * If the current transaction does not have one, one is assigned. */ Datum txid_current(PG_FUNCTION_ARGS)