Re: Retrieve the postgres transaction id

Поиск
Список
Период
Сортировка
Искать
От
Oliver Jowett
Тема
Re: Retrieve the postgres transaction id
Дата
в 11:17:28
Msg-id
40A0E053.4090308@opencloud.com
Ответ на
Список
Дерево обсуждения
Retrieve the postgres transaction id Cédric Coulon <cedric.coulon@lina.univ-nantes.fr>
Re: Retrieve the postgres transaction id Oliver Jowett <oliver@opencloud.com>
Re: Retrieve the postgres transaction id Tom Lane <tgl@sss.pgh.pa.us>
Re: Retrieve the postgres transaction id Cédric Coulon <cedric.coulon@lina.univ-nantes.fr>
Re: Retrieve the postgres transaction id Oliver Jowett <oliver@opencloud.com>
Re: Retrieve the postgres transaction id Dave Cramer <pg@fastcrypt.com>
Re: Retrieve the postgres transaction id Tom Lane <tgl@sss.pgh.pa.us>
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
В списке pgsql-jdbc по дате отправления
От: Cédric Coulon
Дата:
От: Carlos Barroso
Дата:
FAQ