pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Palle Girgensohn <girgen@partitur.se>
To: The Hermit Hacker <scrappy@hub.org>
Cc: pgsql-admin@postgresql.org
Subject: Re: [7.0.2] rotating log files ...
Date: Tue, 29 Aug 2000 01:36:34 +0200
Message-ID: <39AAF782.5E5B392C@partitur.se> (raw)
References: <Pine.BSF.4.21.0008281456510.564-100000@thelab.hub.org>

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....

Cheers,
Palle

The Hermit Hacker wrote:
> 
> can someone recommend on how to rotate the following log files without
> having to stop/start the server?
...
> suggestions?
> 
> Marc G. Fournier                   ICQ#7615664               IRC Nick: Scrappy
> Systems Administrator @ hub.org
> primary: scrappy@hub.org           secondary: scrappy@{freebsd|postgresql}.org

Attachments:

  010.pgsql.sh (application/x-sh, 1.0K) download

view thread (17+ messages)  latest in thread

Message-ID: <39AAF782.5E5B392C@partitur.se>
Permalink:  ../39AAF782.5E5B392C@partitur.se/
Also on:    postgresql.org/message-id/39AAF782.5E5B392C@partitur.se

 · 

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: girgen@partitur.se, scrappy@hub.org
  Subject: Re: [7.0.2] rotating log files ...
  In-Reply-To: <39AAF782.5E5B392C@partitur.se>
  References: <Pine.BSF.4.21.0008281456510.564-100000@thelab.hub.org> <39AAF782.5E5B392C@partitur.se>

* 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