Re: Log retention query

Поиск
Список
Период
Сортировка
От Adrian Klaver
Тема Re: Log retention query
Дата
Msg-id b099f2ee-0346-4375-8c8d-59fac43d106f@aklaver.com
обсуждение исходный текст
Ответ на Re: Log retention query  (Paul Brindusa <paulbrindusa88@gmail.com>)
Список 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@gmail.com <mailto:paulbrindusa88@gmail.com>
> 

-- 
Adrian Klaver
adrian.klaver@aklaver.com




В списке pgsql-general по дате отправления: