Re: Logging Parameter Values

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Logging Parameter Values
Дата
Msg-id 12270.1213886368@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Logging Parameter Values  (Volkan YAZICI <yazicivo@ttmail.com>)
Ответы Re: Logging Parameter Values  (Volkan YAZICI <yazicivo@ttmail.com>)
Список pgsql-general
Volkan YAZICI <yazicivo@ttmail.com> writes:
> While log_statements logs parameter values with the logged queries, I
> cannot see parameter values logged for erronous queries and queries
> catched by log_min_duration_statements.

What PG version are you using?  Since 8.2 log_duration should show
parameter values.  As for the other, you'd have to turn on
log_statements so that the parameters get logged in advance of the
failure.  Once the transaction has failed we can't call user-defined
output functions, since they might try to do things that don't work
inside a failed transaction.

            regards, tom lane

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

Предыдущее
От: Jeff Davis
Дата:
Сообщение: Re: pg_locks "at-a-glance" view
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Vacuum and inserts