From: Lane Van Ingen <lvaningen@esncc.com>
To: pgsql-sql@postgresql.org
Subject: How to Log SELECT Statements Having Errors
Date: Mon, 14 Nov 2005 20:17:47 -0500
Message-ID: <EKEMKEFLOMKDDLIALABIAEAICFAA.lvaningen@esncc.com> (raw)
We are putting a new application on PostgreSQL 8.0.1 (Windows 2003);
we are coming off of MySQL, and are having a hard time finding all of
the offending SQL calls.
It would help a great deal if I could log the content of any SQL calls
that fail. Am only interested in SELECT statements.
Noticed the following:
(1) The PostgreSQL manual says that config parm 'log_statement' does
not appear to handle SELECT statements; true?
(2) Noticed that config parm 'log_min_error_statement' might do it, but
not sure what each of the DEBUG* and other parameters will buy me
vs ERROR. I want any statement issued by a client that cannot be executed
due to an SQL error of any kind.
Can someone advise on this ?
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: lvaningen@esncc.com
Subject: Re: How to Log SELECT Statements Having Errors
In-Reply-To: <EKEMKEFLOMKDDLIALABIAEAICFAA.lvaningen@esncc.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