Unix Technical Forum

logfile

This is a discussion on logfile within the pgsql Admins forums, part of the PostgreSQL category; --> I assume I do not understand the manual right (or my kind of english). In PGSQL 7.4 I only ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Admins

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-10-2008, 07:15 AM
H.J. Sanders
 
Posts: n/a
Default logfile

I assume I do not understand the manual right (or my kind of english).

In PGSQL 7.4 I only want error situations in the logfile, and if an error
occurs as much as possible information like e.g. the sql statement.

I entered in postgresql.conf:

client_min_messages = error
log_min_messages = error
log_error_verbosity = terse
log_min_error_statement = error

log_statement = true
log_timestamp = true

but now all sql statements are always logged.

What did I do wrong? Can someone give the proper settings?

Many thanks

Henk Sanders



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-10-2008, 07:15 AM
Jim C. Nasby
 
Posts: n/a
Default Re: logfile

On Tue, Jun 06, 2006 at 02:37:11PM +0200, H.J. Sanders wrote:
> I assume I do not understand the manual right (or my kind of english).
>
> In PGSQL 7.4 I only want error situations in the logfile, and if an error
> occurs as much as possible information like e.g. the sql statement.
>
> I entered in postgresql.conf:
>
> client_min_messages = error
> log_min_messages = error
> log_error_verbosity = terse
> log_min_error_statement = error
>
> log_statement = true
> log_timestamp = true
>
> but now all sql statements are always logged.
>
> What did I do wrong? Can someone give the proper settings?


log_statement = false. See docs for log_min_error_statement.
--
Jim C. Nasby, Sr. Engineering Consultant jnasby@pervasive.com
Pervasive Software http://pervasive.com work: 512-231-6117
vcard: http://jim.nasby.net/pervasive.vcf cell: 512-569-9461

---------------------------(end of broadcast)---------------------------
TIP 4: Have you searched our list archives?

http://archives.postgresql.org

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

« Re: | delete »

Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 04:09 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com