Re: Best way to stop Streaming Replication?

Поиск
Список
Период
Сортировка
От kaido vaikla
Тема Re: Best way to stop Streaming Replication?
Дата
Msg-id CA+427g9yfibEe62upmOnW7On6ixwvQbXXiLLPwT8vKAQ9p3bYQ@mail.gmail.com
обсуждение исходный текст
Ответ на Best way to stop Streaming Replication?  (Ron Johnson <ronljohnsonjr@gmail.com>)
Ответы Re: Best way to stop Streaming Replication?  (Samed YILDIRIM <samed@reddoc.net>)
Список pgsql-admin
Use a some tools like patroni. I'm patroni user since 2016 and happy with it.
br
Kaido

On Fri, 22 Dec 2023, 21:49 Ron Johnson, <ronljohnsonjr@gmail.com> wrote:
PG 14.10 and 15.5, if it matters.

Running pg_terminate_backend() on the walsender pid (and then dropping the replication slot) seems the canonical solution, based on StackExchange, but that leaves primary_conninfo in postgresql.auto.conf and standby.signal in $PGDATA.

Promoting the secondary (and then dropping the replication slot) handles all those issues, but leaves it in R/W mode, which might cause split brain issues with cluster managers.

Is there a better way than the two I've described

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

Предыдущее
От: Ron Johnson
Дата:
Сообщение: Best way to stop Streaming Replication?
Следующее
От: Samed YILDIRIM
Дата:
Сообщение: Re: Best way to stop Streaming Replication?