Re: BUG #9840: Documentation bug on pg_locks

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #9840: Documentation bug on pg_locks
Дата
Msg-id 27154.1396538480@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: BUG #9840: Documentation bug on pg_locks  (Michael Paquier <michael.paquier@gmail.com>)
Список pgsql-bugs
Michael Paquier <michael.paquier@gmail.com> writes:
> At the same time, I am attaching a doc patch recommending using
> virtualtransaction instead of transaction in pg_locks when doing a
> join with pg_prepared_xacts.

That change doesn't really seem good enough to me, since exactly how to do
the join remains just as unclear as before.  I think we'd better give an
explicit example.  I'd be inclined to write it as

select * from
  pg_locks pl join pg_prepared_xacts ppx
    on pl.virtualtransaction = '-1/' || ppx.transaction;

            regards, tom lane

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

Предыдущее
От: Mike Blackwell
Дата:
Сообщение: Re: BUG #9518: temporary login failure - "missing pg_hba entry"
Следующее
От: shaharhd@gmail.com
Дата:
Сообщение: BUG #9833: daterange is not utilizing index correctly