pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Steve Crawford <scrawford@pinpointresearch.com>
Cc: Oliver Elphick <olly@lfix.co.uk>
Cc: Rajesh Kumar Mallah. <mallah@trade-india.com>
Cc: Mintoo Lall <tlqmail@yahoo.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Postgres server output log
Date: Thu, 30 Jan 2003 12:47:05 -0500
Message-ID: <20466.1043948825@sss.pgh.pa.us> (raw)
In-Reply-To: <20030130171042.ADD63103EF@polaris.pinpointresearch.com>
References: <20030130045105.28846.qmail@web14806.mail.yahoo.com>
	<200301301052.36984.mallah@trade-india.com>
	<1043930409.1112.203.camel@linda.lfix.co.uk>
	<20030130171042.ADD63103EF@polaris.pinpointresearch.com>

Steve Crawford <scrawford@pinpointresearch.com> writes:
> I think configuring PostgreSQL to write to syslog is the correct way to go. 

syslog is a good alternative, but not perfect.  I know of two strikes
against it:

1. It can't catch everything that could go to a stderr log.  While I
think we've cleaned up all the backend code (there used to be lots of
random fprintf's), there are messages that are not under our control.
In particular, on most platforms any dynamic-linker error messages go
to stderr --- when you're trying to debug why the backend can't load
a .so file, this info is invaluable, but syslog can't capture it.

2. On some platforms, syslog is reputed to drop or truncate messages
under heavy load.

You have to figure out whether the many advantages of syslog outweigh
these problems for your use.

			regards, tom lane



view thread (13+ messages)  latest in thread

Message-ID: <20466.1043948825@sss.pgh.pa.us>
Permalink:  ../20466.1043948825@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/20466.1043948825@sss.pgh.pa.us

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, scrawford@pinpointresearch.com, olly@lfix.co.uk, mallah@trade-india.com, tlqmail@yahoo.com
  Subject: Re: Postgres server output log
  In-Reply-To: <20466.1043948825@sss.pgh.pa.us>
  References: <20030130045105.28846.qmail@web14806.mail.yahoo.com> <200301301052.36984.mallah@trade-india.com> <1043930409.1112.203.camel@linda.lfix.co.uk> <20030130171042.ADD63103EF@polaris.pinpointresearch.com> <20466.1043948825@sss.pgh.pa.us>

* 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