By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,564 Members | 956 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,564 IT Pros & Developers. It's quick & easy.

Logging database and statement with errors

P: n/a
CSN
I'm getting a bunch of these in my log:

2003-11-22 21:00:00 ERROR: syntax error at or near
"s" at character 87

I think there might be an unescaped ' getting through.
Is there a way to have the database and statement show
up along with the error? log_statements appears to log
every statement.

__________________________________
Do you Yahoo!?
Yahoo! Small Business $15K Web Design Giveaway
http://promotions.yahoo.com/design_giveaway/

---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to ma*******@postgresql.org

Nov 23 '05 #1
Share this Question
Share on Google+
1 Reply

P: n/a
CSN wrote:
I'm getting a bunch of these in my log:

2003-11-22 21:00:00 ERROR: syntax error at or near
"s" at character 87

I think there might be an unescaped ' getting through.
Is there a way to have the database and statement show
up along with the error? log_statements appears to log
every statement.


Sure, Does your version have log_min_error_statement? If so, just set
it to 'error' in postgresql.conf, pg_ctl reload, and you should see the
statements.
--
Bruce Momjian | http://candle.pha.pa.us
pg***@candle.pha.pa.us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend

Nov 23 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.