Is it worth adding ReplicationSlot active_pid to ReplicationSlotPersistentData?

Поиск
Список
Период
Сортировка
От Bharath Rupireddy
Тема Is it worth adding ReplicationSlot active_pid to ReplicationSlotPersistentData?
Дата
Msg-id CALj2ACX17G7F-jeLt+7KhJ6YxVeRwR8Zk0rDh4VnT546o0UpTQ@mail.gmail.com
обсуждение исходный текст
Ответы Re: Is it worth adding ReplicationSlot active_pid to ReplicationSlotPersistentData?  (Alvaro Herrera <alvherre@alvh.no-ip.org>)
Список pgsql-hackers
Hi,

The active_pid of ReplicationSlot structure, which tells whether a
replication slot is active or inactive, isn't persisted to the disk
i.e has no entry in ReplicationSlotPersistentData structure. Isn't it
better if we add that info to ReplicationSlotPersistentData structure
and persist to the disk? This will help to know what were the inactive
replication slots in case the server goes down or crashes for some
reason. Currently, we don't have a way to interpret the replication
slot info in the disk but there's a patch for pg_replslotdata tool at
[1]. This way, one can figure out the reasons for the server
down/crash and figure out which replication slots to remove to bring
the server up and running without touching the other replication
slots.

Thoughts?

[1] - https://www.postgresql.org/message-id/CALj2ACW0rV5gWK8A3m6_X62qH%2BVfaq5hznC%3Di0R5Wojt5%2Byhyw%40mail.gmail.com

Regards,
Bharath Rupireddy.



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

Предыдущее
От: Bharath Rupireddy
Дата:
Сообщение: Re: should we document an example to set multiple libraries in shared_preload_libraries?
Следующее
От: Daniel Gustafsson
Дата:
Сообщение: Re: stat() vs ERROR_DELETE_PENDING, round N + 1