pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Kyle Bateman <kyle@actarg.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: Finding context for error log
Date: Tue, 26 Sep 2006 10:56:40 -0400
Message-ID: <25798.1159282600@sss.pgh.pa.us> (raw)
In-Reply-To: <451936E9.1050201@actarg.com>
References: <451936E9.1050201@actarg.com>

Kyle Bateman <kyle@actarg.com> writes:
> Is there an easy way to get postgres to 
> spit out the SQL statement it was parsing when it generated the error?

"log_min_error_statement = error" is what you're looking for.

			regards, tom lane



view thread (3+ messages)  latest in thread

Message-ID: <25798.1159282600@sss.pgh.pa.us>
Permalink:  ../25798.1159282600@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/25798.1159282600@sss.pgh.pa.us

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: tgl@sss.pgh.pa.us, kyle@actarg.com
  Subject: Re: Finding context for error log
  In-Reply-To: <25798.1159282600@sss.pgh.pa.us>

* 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