pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Maria L. Wilson <Maria.L.Wilson-1@nasa.gov>
To: pgsql-admin@postgresql.org <pgsql-admin@postgresql.org>
Subject: Logging parameters
Date: Tue, 11 May 2010 13:46:24 -0400
Message-ID: <4BE997F0.7030402@nasa.gov> (raw)

Trying to do some modifications to the amount of logging that our 
postgres database server (8.4 on linux) does on our production servers 
and had a few questions that I hope someone would clear up.

Basically - in production, it would be nice to limit some of the logging 
and let the dev/test database servers be the most verbose.  It was my 
understanding that I could do this by  setting 
log_min_duration_statement to some large interval and I would not see 
all the other SQL.  This does not seem to be the case.  What it looks 
like it's doing is just not showing the duration of the SQL unless it is 
longer than this parameter.   What I'm trying to do is limit what is 
logged on production to be only the necessary stuff....

Here's my parameters currently.....


#client_min_messages = notice          
#log_min_messages = notice            
#log_error_verbosity = default          # terse, default, or verbose 
messages
#log_min_error_statement = error      
log_min_duration_statement = 2000  # -1 is disabled, 0 logs all statements
                                        # and their durations.
#silent_mode = off                   
debug_pretty_print = on
log_connections = on
log_disconnections = on
log_duration = on
log_line_prefix = '%u %h %m [%p] [%d] '         # Special values:
log_statement = 'all'                   # none, ddl, mod, all


Could you all give me some recommendations??

thanks!!

Maria Wilson
NASA/Langley Research Center
Hampton, Virginia 23681



view thread (5+ messages)  latest in thread

Message-ID: <4BE997F0.7030402@nasa.gov>
Permalink:  ../4BE997F0.7030402@nasa.gov/
Also on:    postgresql.org/message-id/4BE997F0.7030402@nasa.gov

 · 

reply

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-admin@postgresql.org
  Cc: Maria.L.Wilson-1@nasa.gov
  Subject: Re: Logging parameters
  In-Reply-To: <4BE997F0.7030402@nasa.gov>

* 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