pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jim C. Nasby <jnasby@pervasive.com>
To: bfraci@aol.com
Cc: pgsql-admin@postgresql.org
Subject: Re: Can we adjust postgres logging to also dump the bind variable data when an error occurs
Date: Thu, 4 May 2006 13:13:03 -0500
Message-ID: <20060504181303.GP97354@pervasive.com> (raw)
In-Reply-To: <8C83B8555225B23-1658-67F4@FWM-D25.sysops.aol.com>
References: <8C83B8555225B23-1658-67F4@FWM-D25.sysops.aol.com>

On Mon, May 01, 2006 at 06:25:49PM -0400, bfraci@aol.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@pervasive.com
Pervasive Software      http://pervasive.com    work: 512-231-6117
vcard: http://jim.nasby.net/pervasive.vcf       cell: 512-569-9461



view thread (2+ messages)

Message-ID: <20060504181303.GP97354@pervasive.com>
Permalink:  ../20060504181303.GP97354@pervasive.com/
Also on:    postgresql.org/message-id/20060504181303.GP97354@pervasive.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: jnasby@pervasive.com, bfraci@aol.com
  Subject: Re: Can we adjust postgres logging to also dump the bind variable data when an error occurs
  In-Reply-To: <20060504181303.GP97354@pervasive.com>
  References: <8C83B8555225B23-1658-67F4@FWM-D25.sysops.aol.com> <20060504181303.GP97354@pervasive.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox