Re: Database logging.... Recycle server logs ??? - Mailing list pgsql-admin

From codeWarrior
Subject Re: Database logging.... Recycle server logs ???
Date
Msg-id [email protected]
Whole thread Raw
In response to Re: Database logging.... Recycle server logs ???  (Tom Lane <[email protected]>)
List pgsql-admin
"Tom Lane" <[email protected]> wrote in message
news:[email protected]...
> "codeWarrior" <[email protected]> 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 [email protected]

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



pgsql-admin by date:

Previous
From: Ron Mayer
Date:
Subject: Re: deadlock problem in Ad serving..
Next
From: Andrew Biagioni
Date:
Subject: Deadlock Checker doesn't see foreign-key locks