Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old November 23rd, 2005, 12:28 AM
CSN
Guest
 
Posts: n/a
Default Logging database and statement with errors

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 majordomo@postgresql.org

  #2  
Old November 23rd, 2005, 12:28 AM
Bruce Momjian
Guest
 
Posts: n/a
Default Re: Logging database and statement with errors

CSN wrote:[color=blue]
> 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.[/color]

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
pgman@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

 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles