Cédric Coulon wrote:
> Hi,
>
> Is there a way to retrieve the postgres transaction id using JDBC?
There's no special JDBC path for doing this.
(later) A bit of experimentation yields this (I'm sure there's a better
way):
select transaction from pg_locks where pid = pg_backend_pid();
You should be able to run that as a normal query through JDBC.
-O