From: | "Usama Dar" <munir(dot)usama(at)gmail(dot)com> |
---|---|
To: | "Abraham, Danny" <danny_abraham(at)bmc(dot)com> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: HD is flooded by Error Log info |
Date: | 2007-11-29 16:03:14 |
Message-ID: | ff0e67090711290803o2efbff0bl1b36fac8e75ebd9@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
what i do is setup a cron job which runs daily or every second day, creates
a tar.gz and copies them to a seperate location, and then another cron job
which clears up archives more than one month old. That seems to be the way
to go, i don't think you will find a postgresql.conf parameter which does
that
On Nov 29, 2007 8:53 PM, Abraham, Danny <danny_abraham(at)bmc(dot)com> wrote:
> Hello
>
>
>
> Recently an application endless loop crashed the PG server.
>
> I am looking for the safest way to limit the growth of the all the files
> in the "pg_log" directory,
>
> While still maintain reasonable period of log.
>
>
>
> Any suggestions?
>
>
>
> Our current setup is:
>
>
>
>
> #---------------------------------------------------------------------------
>
> # ERROR REPORTING AND LOGGING
>
>
> #---------------------------------------------------------------------------
>
> redirect_stderr = on
>
> log_line_prefix = '%m'
>
> client_min_messages = error
>
> log_min_messages = error
>
>
>
> log_filename = 'CTMD-%d.log
>
> log_truncate_on_rotation = on
>
> log_rotation_age = 1d
>
> log_rotation_size = 10MB
>
>
>
>
>
> Thanks
>
>
>
>
>
> Danny Abraham
>
> BMC Software
>
> CTM&D Business Unit
>
> 972-52-4286-513
>
> danny_abraham(at)bmc(dot)com
>
>
>
>
>
--
Usama Munir Dar http://linkedin.com/in/usamadar
Consultant Architect
Cell:+92 321 5020666
Skype: usamadar
From | Date | Subject | |
---|---|---|---|
Next Message | Simon Riggs | 2007-11-29 16:20:30 | Re: HD is flooded by Error Log info |
Previous Message | Gregory Stark | 2007-11-29 16:01:22 | Re: notify/listen disappearing data |