pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Wanted: way to limit logging
2+ messages / 2 participants
[nested] [flat]

* Wanted: way to limit logging
@ 2001-10-10 17:58  Jeff Boes <jboes@nexcerpt.com>
  0 siblings, 1 reply; 2+ messages in thread

From: Jeff Boes @ 2001-10-10 17:58 UTC (permalink / raw)
  To: pgsql-admin

We've enabled logging from our database during development, using the
option -l on the pg_ctl command.  However, we get a lot of useless data:

   NOTICE:  InvalidateSharedInvalid: cache state reset

shows up a lot, and whenever an INSERT statement is executed, we get the
statement as well as all the values.  Is there a way to reduce the
information spewed to the log? Ideally, we'd like to see only ERROR and
DEBUG messages, not NOTICE; for statements, we'd like to see the SQL
code, but have no interest in the values actually applied (some of our
INSERT statements receive 10K of data).


-- 
Jeff Boes                                             vox 616.226.9550
Database Engineer                                     fax 616.349.9076
Nexcerpt, Inc.                                      jboes@nexcerpt.com



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: Wanted: way to limit logging
@ 2001-10-11 17:51  Herbert Rabago Ambos <herbert@hindang.msuiit.edu.ph>
  parent: Jeff Boes <jboes@nexcerpt.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Herbert Rabago Ambos @ 2001-10-11 17:51 UTC (permalink / raw)
  To: Jeff Boes <jboes@nexcerpt.com>; +Cc: pgsql-admin


start postgres with

 	-d 0

option,  this time it would only display limited info such as DEBUG,
NOTICEs, ERROR: ON LINE NUM's... or check postgresql.conf file for more
option.  In my configuration, i use

	silent_mode = false

	log_connections = true
	log_timestamp = true
	log_pid = true

	debug_level = 0 #equivalent to -d 0

to monitor the logs.


Herbert

/**
 * Database Administrator/Faculty
 * MSU-Iligan Institute of Technology
 * Philippines
 */

On Wed, 10 Oct 2001, Jeff Boes wrote:

> We've enabled logging from our database during development, using the
> option -l on the pg_ctl command.  However, we get a lot of useless data:
>
>    NOTICE:  InvalidateSharedInvalid: cache state reset
>
> shows up a lot, and whenever an INSERT statement is executed, we get the
> statement as well as all the values.  Is there a way to reduce the
> information spewed to the log? Ideally, we'd like to see only ERROR and
> DEBUG messages, not NOTICE; for statements, we'd like to see the SQL
> code, but have no interest in the values actually applied (some of our
> INSERT statements receive 10K of data).
>
>
>




^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2001-10-11 17:51 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2001-10-10 17:58 Wanted: way to limit logging Jeff Boes <jboes@nexcerpt.com>
2001-10-11 17:51 ` Herbert Rabago Ambos <herbert@hindang.msuiit.edu.ph>

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