Re: recovery.conf and archive files

Поиск
Список
Период
Сортировка
От Guillaume Lelarge
Тема Re: recovery.conf and archive files
Дата
Msg-id CAECtzeUwv5JCV9GqYTVa4avStUY6OwSxEv7hqXOr7=4BLRZuZw@mail.gmail.com
обсуждение исходный текст
Ответ на recovery.conf and archive files  (Rita <rmorgan466@gmail.com>)
Ответы Re: recovery.conf and archive files  (Rita <rmorgan466@gmail.com>)
Список pgsql-general
Hi,

Le dim. 9 oct. 2022 à 13:54, Rita <rmorgan466@gmail.com> a écrit :
I have primary and standby replication setup.

On my primary the archive directory is rather large (30GB) and growing. On my standby I have recovery.conf which has 
archive_cleanup_command = 'pg_archivecleanup -d /var/lib/pgsql/11/data/archive %r'

I was under the impression this line would remove data from my primary AND standby. Is that not the case?


pg_archivecleanup will clean up the *local* directory. It won't clean up the archive directory if it's stored on the primary.

If I misunderstood your issue, it would be great to send us the postgresql.conf file from your primary.


--
Guillaume.

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

Предыдущее
От: Rita
Дата:
Сообщение: recovery.conf and archive files
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Different execution plan between PostgreSQL 8.4 and 12.11