postgresql_16:3.6.26.9 Committed Transaction Information Functions
PostgreSQL 16 > The SQL Language > Functions and Operators > System Information Functions and Operators > Committed Transaction Information Functions
The functions shown in (see functions-commit-timestamp) provide information about when past transactions were committed. They only provide useful data when the (see guc-track-commit-timestamp) configuration option is enabled, and only for transactions that were committed after it was enabled. Commit timestamp information is routinely removed during vacuum.
| Function Description | | --- | | pg_xact_commit_timestamp ( xid ) timestamp with time zone Returns the commit timestamp of a transaction. | | pg_xact_commit_timestamp_origin ( xid ) record ( timestamp timestamp with time zone, roident oid) Returns the commit timestamp and replication origin of a transaction. | | pg_last_committed_xact () record ( xid xid, timestamp timestamp with time zone, roident oid ) Returns the transaction ID, commit timestamp and replication origin of the latest committed transaction. |