Re: Retrieve the postgres transaction id

Поиск
Список
Период
Сортировка
От Oliver Jowett
Тема Re: Retrieve the postgres transaction id
Дата
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
Список pgsql-jdbc
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
Дата:
Сообщение: Retrieve the postgres transaction id
Следующее
От: Carlos Barroso
Дата:
Сообщение: Re: Can't insert more than 80 registers!?