Re: display previous query string of idle-in-transaction

Поиск
Список
Период
Сортировка
От Tatsuhito Kasahara
Тема Re: display previous query string of idle-in-transaction
Дата
Msg-id 49CC75E3.7010101@oss.ntt.co.jp
обсуждение исходный текст
Ответ на Re: display previous query string of idle-in-transaction  (Simon Riggs <simon@2ndQuadrant.com>)
Ответы Re: display previous query string of idle-in-transaction
Re: display previous query string of idle-in-transaction
Список pgsql-hackers
Simon Riggs wrote:
>> If we can also check previous query_string of idle-in-transaction,
>> it is useful for analysis of long transaction problem.
> 
> I'm more interested in the problem itself. Why do you think there is a
> problem and why does knowing this help you? I had similar problems
> recently, so I'm interested in thoughts around this.
In many case, applications don't know what queries they are doing.
So, if a long transaction problem (unworking defragmnetation by HOT and
VACUUM) occured, I don't understand which application is the cause with
only "<IDLE> in transaction" message.

But if I can also check last query string, I guess which apllication
do that and point out the problem point.
# As I said, I think a long transaction is not a problem itself.

Does that answer your question ?

Best regards,

-- 
Tatsuhito Kasahara
kasahara.tatsuhito@oss.ntt.co.jp


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: typedefs for indent
Следующее
От: Simon Riggs
Дата:
Сообщение: Re: display previous query string of idle-in-transaction