Re: Check what a transaction did in the past

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Check what a transaction did in the past
Дата
Msg-id 328.1266337871@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Check what a transaction did in the past  (Alvaro Herrera <alvherre@commandprompt.com>)
Список pgsql-general
Alvaro Herrera <alvherre@commandprompt.com> writes:
> manugarciac wrote:
>> I have an Idle in transaction that's really long. I suspect there is a
>> problem in my application, but I can't figure out where. If I new which
>> queries that transaction did in the past, it would really help me find the
>> problem. I know the transaction id, the process id, everything there is to
>> know, except the queries it did in the past. Is there any way to check this?

> Turn on log_statements and check the log.

Note that log_statements alone isn't much help.  You'll want to add at
least %p to log_line_prefix so that you can relate entries in the log
to currently active transactions.

            regards, tom lane

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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: Check what a transaction did in the past
Следующее
От: Peter Geoghegan
Дата:
Сообщение: Re: Having a plpgsql function return multiple rows that indicate its progress in a cursor like fashion