Whether a transaction ID can be extracted from a connection object. #1377
Answered
by
dvarrazzo
JangKyumin
asked this question in
Q&A
-
Hello :) |
Beta Was this translation helpful? Give feedback.
Answered by
dvarrazzo
Oct 22, 2021
Replies: 1 comment 1 reply
-
The connection itself doesn't receive a transaction id you can extract from the server. You can use a function such as |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
JangKyumin
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The connection itself doesn't receive a transaction id you can extract from the server.
You can use a function such as
pg_current_xact_id()
and return it together with your result, or use a form such asINSERT INTO.... RETURNING pg_current_xact_id()
maybe?