pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: codeWarrior <GPatnude@adelphia.net>
To: pgsql-admin@postgresql.org
Subject: Re: Database logging.... Recycle server logs ???
Date: Mon, 13 Jan 2003 13:40:10 -0800
Message-ID: <avvbbi$i61$1@news.hub.org> (raw)
References: <4864.1042488639@sss.pgh.pa.us>


"Tom Lane" <tgl@sss.pgh.pa.us> wrote in message
news:4864.1042488639@sss.pgh.pa.us...
> "codeWarrior" <GPatnude@adelphia.net> writes:
> > I noticed that the server generated logfile gets real big real fast --
(15
> > queries and it's already at 1.5MB) -- Is there a switch / option to
recycle
> > the server logs periodically ???
>
> The recommended procedure is not to use pg_ctl's -l switch, but to pipe
> output from it into a log-rotating script.  The rotatelogs script from
> the Apache distribution works well, or you can roll your own.  See
>
http://www.ca.postgresql.org/users-lounge/docs/7.3/postgres/logfile-maintena
nce.html
>
> regards, tom lane
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org

Thanks Tom -- Of course -- I located that section of the manual immediately
after my post...  I will use logrotate....





view thread (3+ messages)

Message-ID: <avvbbi$i61$1@news.hub.org>
Permalink:  ../avvbbi$i61$1@news.hub.org/
Also on:    postgresql.org/message-id/avvbbi$i61$1@news.hub.org

 · 

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: GPatnude@adelphia.net
  Subject: Re: Database logging.... Recycle server logs ???
  In-Reply-To: <avvbbi$i61$1@news.hub.org>
  References: <4864.1042488639@sss.pgh.pa.us> <avvbbi$i61$1@news.hub.org>

* 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