Re: Logging Parameter Values - Mailing list pgsql-general

From Tom Lane
Subject Re: Logging Parameter Values
Date
Msg-id 12270.1213886368@sss.pgh.pa.us
Whole thread Raw
In response to Logging Parameter Values  (Volkan YAZICI <yazicivo@ttmail.com>)
Responses Re: Logging Parameter Values  (Volkan YAZICI <yazicivo@ttmail.com>)
List 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 by date:

Previous
From: Jeff Davis
Date:
Subject: Re: pg_locks "at-a-glance" view
Next
From: Tom Lane
Date:
Subject: Re: Vacuum and inserts