mirror of
https://github.com/postgres/postgres.git
synced 2025-12-21 05:21:08 +03:00
Add txid_current_ifassigned().
Add a variant of txid_current() that returns NULL if no transaction ID is assigned. This version can be used even on a standby server, although it will always return NULL since no transaction IDs can be assigned during recovery. Craig Ringer, per suggestion from Jim Nasby. Reviewed by Petr Jelinek and by me.
This commit is contained in:
@@ -1221,6 +1221,7 @@ extern Datum txid_snapshot_out(PG_FUNCTION_ARGS);
|
||||
extern Datum txid_snapshot_recv(PG_FUNCTION_ARGS);
|
||||
extern Datum txid_snapshot_send(PG_FUNCTION_ARGS);
|
||||
extern Datum txid_current(PG_FUNCTION_ARGS);
|
||||
extern Datum txid_current_if_assigned(PG_FUNCTION_ARGS);
|
||||
extern Datum txid_current_snapshot(PG_FUNCTION_ARGS);
|
||||
extern Datum txid_snapshot_xmin(PG_FUNCTION_ARGS);
|
||||
extern Datum txid_snapshot_xmax(PG_FUNCTION_ARGS);
|
||||
|
||||
Reference in New Issue
Block a user