Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 61904475C14 for ; Thu, 30 Jan 2003 12:48:25 -0500 (EST) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by postgresql.org (Postfix) with ESMTP id B1137475BD7 for ; Thu, 30 Jan 2003 12:48:24 -0500 (EST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.6/8.12.6) with ESMTP id h0UHl55u020467; Thu, 30 Jan 2003 12:47:06 -0500 (EST) To: Steve Crawford Cc: Oliver Elphick , "Rajesh Kumar Mallah." , Mintoo Lall , pgsql-admin@postgresql.org Subject: Re: Postgres server output log 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> Comments: In-reply-to Steve Crawford message dated "Thu, 30 Jan 2003 09:10:42 -0800" Date: Thu, 30 Jan 2003 12:47:05 -0500 Message-ID: <20466.1043948825@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200301/341 X-Sequence-Number: 7183 Steve Crawford 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