Re: Retrieve the postgres transaction id

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Retrieve the postgres transaction id
Дата
Msg-id 10080.1084288065@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Retrieve the postgres transaction id  (Oliver Jowett <oliver@opencloud.com>)
Ответы Re: Retrieve the postgres transaction id
Список pgsql-jdbc
Oliver Jowett <oliver@opencloud.com> writes:
> (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'd need to qualify that more, since as-is it will also show rows for
other locks the transaction holds.  Possibly "where transaction is not
null" will be sufficient.

            regards, tom lane

В списке pgsql-jdbc по дате отправления:

Предыдущее
От: Carlos Barroso
Дата:
Сообщение: Re: Can't insert more than 80 registers!?
Следующее
От: "David Wall"
Дата:
Сообщение: JDBC and processing large numbers of rows