aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2011-07-11 20:32:29 -0400
committerBruce Momjian <bruce@momjian.us>2011-07-11 20:33:07 -0400
commitafc9635c600ace716294a12d78abd37f65abd0ea (patch)
tree62c2ade914799d1fc75d07db4d60f1f06635c4a6
parent3315020a091f64c8d08c3b32a2abd46431dcf857 (diff)
downloadpostgresql-afc9635c600ace716294a12d78abd37f65abd0ea.tar.gz
postgresql-afc9635c600ace716294a12d78abd37f65abd0ea.zip
Add C comment that txid_current() assigns an XID if one is not already
assigned.
-rw-r--r--src/backend/utils/adt/txid.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/backend/utils/adt/txid.c b/src/backend/utils/adt/txid.c
index 2907306e928..192ae6640d0 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)