Re: Retrieve the postgres transaction id

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Retrieve the postgres transaction id
Дата
Msg-id 19411.1084332210@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Retrieve the postgres transaction id  (Oliver Jowett <oliver@opencloud.com>)
Список pgsql-jdbc
Oliver Jowett <oliver@opencloud.com> writes:
> C�dric Coulon wrote:
>> But Isn't there a possibility that a backend has more than one
>> transaction with locks?

> As I understand it, no. There is exactly one connection per backend, and
> one transaction per connection,

This is true at the moment.  Alvaro is hard at work on nested
transactions, which will imply more than one active XID per connection.
It's not decided yet how that will reflect into pg_locks, but I'd expect
there will be some visible consequence...

Probably the question that should have been asked at the outset of this
thread is "why do you want to know"?  I can't offhand think of a good
reason for clients to be interested in transaction numbers --- they are
surely just an internal implementation detail.

            regards, tom lane

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

Предыдущее
От: "David Wall"
Дата:
Сообщение: Re: JDBC and processing large numbers of rows
Следующее
От: Tom Lane
Дата:
Сообщение: Re: JDBC and processing large numbers of rows