Search Postgresql Archives

Re: Log retention query

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx <mailto:paulbrindusa88@xxxxxxxxx>


--
Adrian Klaver
adrian.klaver@xxxxxxxxxxx






[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]

  Powered by Linux