| From: | Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com> |
|---|---|
| To: | Paul Brindusa <paulbrindusa88(at)gmail(dot)com>, Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at> |
| Cc: | pgsql-general <pgsql-general(at)postgresql(dot)org> |
| Subject: | Re: Log retention query |
| Date: | 2025-01-28 16:16:25 |
| Message-ID: | b099f2ee-0346-4375-8c8d-59fac43d106f@aklaver.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
On 1/28/25 05:40, Paul Brindusa wrote:
> @Junwang apologies, I should have mentioned that we've tried setting up
> a crontab and it has not worked. Have you got something similar working?
>
> @Laurenz: log_filename: postgresql-%Y-%m-%d.log -- if we redo the
> syntax can we make it trigger garbage collection on 180 days?
If by garbage collection you mean 'log_truncate_on_rotation: on' then
you would need some pattern that would repeat after 180 days. Off the
top of my head I cannot come up with one that would do that.
How did you install Postgres and on what platform?
> --
> Kind Regards,
> Paul Brindusa
> paulbrindusa88(at)gmail(dot)com <mailto:paulbrindusa88(at)gmail(dot)com>
>
--
Adrian Klaver
adrian(dot)klaver(at)aklaver(dot)com
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Paul Brindusa | 2025-01-28 16:21:59 | Re: Log retention query |
| Previous Message | Ron Johnson | 2025-01-28 15:01:43 | Re: Log retention query |