Re: Issue with logical replication slot during switchover

Поиск
Список
Период
Сортировка
От Alexander Kukushkin
Тема Re: Issue with logical replication slot during switchover
Дата
Msg-id CAFh8B==6GzSt_8eSuZdPcmeH9xackqOsYfQKVbRcWGKtXYkNfQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Issue with logical replication slot during switchover  (Amit Kapila <amit.kapila16@gmail.com>)
Ответы Re: Issue with logical replication slot during switchover
Список pgsql-hackers


But the system can die/crash before shutdown.

You mean it will not write WAL?
When a logical replication slot is created we build a snapshot and also write to WAL:
postgres=# select pg_current_wal_insert_lsn(); select pg_create_logical_replication_slot('foo', 'pgoutput'); select pg_current_wal_insert_lsn();
 pg_current_wal_insert_lsn
---------------------------
 0/37F96F8
(1 row)

 pg_create_logical_replication_slot
------------------------------------
 (foo,0/37F9730)
(1 row)

 pg_current_wal_insert_lsn
---------------------------
 0/37F9730
(1 row)

Only after that slot is marked as persistent.

Regards,
--
Alexander Kukushkin

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