Can we adjust postgres logging to also dump the bind variable data when an error occurs

From: bfraci(at)aol(dot)com
To: pgsql-admin(at)postgresql(dot)org
Subject: Can we adjust postgres logging to also dump the bind variable data when an error occurs
Date: 2006-05-01 22:25:49
Message-ID: 8C83B8555225B23-1658-67F4@FWM-D25.sysops.aol.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

I am using Postgres version 8.0.3. I have noticed that when I set the log_statement parameter to 'all', I get the values for the bind variables. Is it possible to get all of the same information that I get when I set log_statement to 'all' just for the statement that has an error? I don't want to clutter up my log file with this detail information for all statements, just those that produce an error.

Thanks for your help.

Brent

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Federico Campoli 2006-05-01 23:20:37 Trouble with phpbb installation
Previous Message Hogan, James F. Jr. 2006-05-01 22:19:24 Audit Logs, Tables and Triggers using PLTCL (plain text)