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

From: "Jim C(dot) Nasby" <jnasby(at)pervasive(dot)com>
To: bfraci(at)aol(dot)com
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Can we adjust postgres logging to also dump the bind variable data when an error occurs
Date: 2006-05-04 18:13:03
Message-ID: 20060504181303.GP97354@pervasive.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On Mon, May 01, 2006 at 06:25:49PM -0400, bfraci(at)aol(dot)com wrote:
> 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.

Setting log_error_verbosity to verbose might do the trick...
--
Jim C. Nasby, Sr. Engineering Consultant jnasby(at)pervasive(dot)com
Pervasive Software http://pervasive.com work: 512-231-6117
vcard: http://jim.nasby.net/pervasive.vcf cell: 512-569-9461

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Tomeh, Husam 2006-05-04 18:19:06 Re: How to find current running process
Previous Message Shivaji S 2006-05-04 18:06:07 How to find current running process