From: Kyle Bateman <kyle@actarg.com>
To: pgsql-sql@postgresql.org
Subject: Finding context for error log
Date: Tue, 26 Sep 2006 08:19:21 -0600
Message-ID: <451936E9.1050201@actarg.com> (raw)
I get the following message in my postgres log:
ERROR: 42601: syntax error at or near "%" at character 269
LOCATION: yyerror, scan.l:761
I have a fairly complex schema (lots of database objects) and many users
hitting the db with lots of connections, so I'm not really sure what bit
of code is causing the problem. Is there an easy way to get postgres to
spit out the SQL statement it was parsing when it generated the error?
I've experimented with log_error_verbosity and log_min_messages but
still haven't seen any SQL in the log.
Kyle
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: kyle@actarg.com
Subject: Re: Finding context for error log
In-Reply-To: <451936E9.1050201@actarg.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