Re: recovery.conf and archive_cleanup_command

Поиск
Список
Период
Сортировка
От Laurenz Albe
Тема Re: recovery.conf and archive_cleanup_command
Дата
Msg-id a50f44d5dbb3bef00594c7539479b29ca464a0dc.camel@cybertec.at
обсуждение исходный текст
Ответ на recovery.conf and archive_cleanup_command  (Rita <rmorgan466@gmail.com>)
Ответы Re: recovery.conf and archive_cleanup_command  (Yang Steve <steve25insydney.yang@gmail.com>)
Список pgsql-novice
On Sat, 2022-10-08 at 08:51 -0400, Rita wrote:
> 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?

That depends on your PostgreSQL version, for instance.

Also, it depends on whether the standby server is running and actually recovering.
Finally, it depends on whether the standby can execute the command successfully or not.

Did you look at the standby's logs?

Yours,
Laurenz Albe
-- 
Cybertec | https://www.cybertec-postgresql.com



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

Предыдущее
От: Rita
Дата:
Сообщение: recovery.conf and archive_cleanup_command
Следующее
От: Bart Jonk
Дата:
Сообщение: odbc drivers