pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Gaetano Mendola <mendola@bigfoot.com>
To: pgsql-admin@postgresql.org
Subject: Log rotation
Date: Thu, 28 Mar 2002 19:54:15 +0100
Message-ID: <009d01c1d689$f5878ed0$5ce8fea9@GMENDOLA2> (raw)

Hi to all,

I configured the log rotation of postgresql  started in this way:

su -l postgres -s /bin/sh -c "/usr/bin/pg_ctl  -D $PGDATA -p
/usr/bin/postmaster start  > /var/log/postgresql.log 2>&1" < /dev/null

with the log rotate file:

/var/log/postgresql.log {
    compress
    rotate 5
    size=10000k
    create 0664 postgres postgres
    daily
    sharedscripts
    copytruncate
}

the problem now is that the postgres server is really
stressed and write continuosly on the log file
and the file is not truncated!!!!!

anyone have any idea??



Ciao
Gaetano

--
#exclude <windows>
#include <CSRSS>
printf("\t\t\b\b\b\b\b\b");.
printf("\t\t\b\b\b\b\b\b");




view thread (12+ messages)  latest in thread

Message-ID: <009d01c1d689$f5878ed0$5ce8fea9@GMENDOLA2>
Permalink:  ../009d01c1d689$f5878ed0$5ce8fea9@GMENDOLA2/
Also on:    postgresql.org/message-id/009d01c1d689$f5878ed0$5ce8fea9@GMENDOLA2

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: mendola@bigfoot.com
  Subject: Re: Log rotation
  In-Reply-To: <009d01c1d689$f5878ed0$5ce8fea9@GMENDOLA2>

* 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