Re: Log files, how to rotate properly

From: Alex Pilosov <alex(at)pilosoft(dot)com>
To: Dave Cramer <dave(at)ebox(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Log files, how to rotate properly
Date: 2001-06-20 18:23:49
Message-ID: Pine.BSO.4.10.10106201423430.21174-100000@spider.pilosoft.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Answer: Use syslog.

-alex
On Wed, 13 Jun 2001, Dave Cramer wrote:

> I just ran into an interesting problem. My /var partition was full, and the
> culprit turned out to be the postgres log file, which was only evident
> through lsof. It was actually a deleted file which was being kept open by
> the running process.
>
> The interesting thing is that if I redirect the output of postmaster, then
> every connection has this file open.
>
> My environment is Apache/jserv/postgres. So in order to rotate the postgres
> log, I would have to
>
> 1) Shut apache down,
> 2) Shut jserv down
> 3) Shut postgres down
> rotate the logs, then bring them all back up again
>
> Is there a way to tell postgres to release the log file, or am I completely
> off base here?
>
> Dave
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster
>
>

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Alex Pilosov 2001-06-20 18:24:31 Re: sum of row values..
Previous Message Thalis A. Kalfigopoulos 2001-06-20 16:51:44 Re: postgres.h missing? (fwd)