Re: PITR and instance without any activity

Поиск
Список
Период
Сортировка
От Adrien Nayrat
Тема Re: PITR and instance without any activity
Дата
Msg-id dd87f8f4-924f-7a10-fab6-5f41b08e4f17@anayrat.info
обсуждение исходный текст
Ответ на Re: PITR and instance without any activity  (Torsten Förtsch <tfoertsch123@gmail.com>)
Список pgsql-general
On 1/9/23 11:23, Torsten Förtsch wrote:
> On Mon, Jan 9, 2023 at 10:59 AM Adrien Nayrat 
> <adrien.nayrat@anayrat.info <mailto:adrien.nayrat@anayrat.info>> wrote:
> 
> 
>     * We can't perform PITR on a cluster without any activity since 13
>     * It seems creating restore point doesn't record a timestamp in wal.
> 
> I have a cron job that runs this every 5 minutes:
> 
> SELECT txid_current() WHERE 
> (pg_last_committed_xact()).timestamp+'5min'::INTERVAL < now()
> 
>   Combine that with a suitable value for archive_timeout.

Hello,

I don't get how it could be useful ?
When we perform PITR, we don't know if there was activity or not.

-- 
Adrien NAYRAT





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

Предыдущее
От: Vikas Sharma
Дата:
Сообщение: Re: Best opensource Postgresql monitoring tool
Следующее
От: hubert depesz lubaczewski
Дата:
Сообщение: Re: Disallow execution of shell commands from psql