Log rotation

From: "Gaetano Mendola" <mendola(at)bigfoot(dot)com>
To: <pgsql-admin(at)postgresql(dot)org>
Subject: Log rotation
Date: 2002-03-28 18:54:15
Message-ID: 009d01c1d689$f5878ed0$5ce8fea9@GMENDOLA2
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

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");

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message -=TopCat=- 2002-03-29 12:29:20 Help I ve just delete pg_xlog
Previous Message Tom Lane 2002-03-28 14:40:35 Re: Last_Inserted Value