Is there a way to get transactionid(xid) from SQL query, or from plpgsql function body?
version of PostgreSQL 9.3
http://www.postgresql.org/docs/9.3/static/functions-info.html#FUNCTIONS-TXID-SNAPSHOT
txid_current()
is probably what you are after.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With