Received: from candle.pha.pa.us (pgman@nav-43.dsl.navpoint.com [162.33.245.46]) by hub.org (8.10.1/8.11.0) with ESMTP id e9GFraW15530 for ; Mon, 16 Oct 2000 11:53:36 -0400 (EDT) (envelope-from pgman@candle.pha.pa.us) Received: (from pgman@localhost) by candle.pha.pa.us (8.9.0/8.9.0) id LAA07691; Mon, 16 Oct 2000 11:53:21 -0400 (EDT) From: Bruce Momjian Message-Id: <200010161553.LAA07691@candle.pha.pa.us> Subject: Re: [7.0.2] rotating log files ... In-Reply-To: <39AAF782.5E5B392C@partitur.se> "from Palle Girgensohn at Aug 29, 2000 01:36:34 am" To: Palle Girgensohn Date: Mon, 16 Oct 2000 11:53:21 -0400 (EDT) CC: The Hermit Hacker , pgsql-admin@postgresql.org X-Mailer: ELM [version 2.4ME+ PL77 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Archive-Number: 200010/71 X-Sequence-Number: 865 > Hi, > > Apart from using syslog, which apparently work fine (?) with > 7.0.2, the 'rotatelogs' utility from apache's support dir is > great (No need to hack one up, as Alfred Perlstein suggest; > this babe been around and is quite stable). > > Of course, you need to stop the server once, but I guess other > ways have been thouroughly dicussed in already :) > > Enclosed is a Bournce shell script showing how I start postgres > on developers' machines [debug on] (run as root, will su pgsql) > > On syslog... is syslog support reliable now? If so, > admin/pg-options.htm should be updated: > > ...Unfortunately many functions call directly printf() to print > their messages to stdout or stderr and this output can't be > redirected to syslog or have timestamps in it.... Would someone be interested in converting our fprintf(stderr,...) calls to elog and submitting a patch, please? -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 853-3000 + If your life is a hard drive, | 830 Blythe Avenue + Christ can be your backup. | Drexel Hill, Pennsylvania 19026