Re: Copy function for logical replication slots

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: Copy function for logical replication slots
Дата
Msg-id 20180706002141.GB2366@paquier.xyz
обсуждение исходный текст
Ответ на Re: Copy function for logical replication slots  (Masahiko Sawada <sawada.mshk@gmail.com>)
Ответы Re: Copy function for logical replication slots  (Masahiko Sawada <sawada.mshk@gmail.com>)
Список pgsql-hackers
On Thu, Jul 05, 2018 at 05:24:48PM +0900, Masahiko Sawada wrote:
> Yes, you're right. To guarantee that restart LSN of copied slot is
> available, it seems to me that it's better to copy new slot while
> holding the origin slot as you mentioned before. Since the replication
> slot creation code assumes that a process creating a new slot doesn't
> have any slots we should save origin slot temporary and create new
> one, and then restore it.

This will require some refactoring first I think as most of the slot
routines assume that the process owning it is the one doing the calls,
so this has a string smell of a patch set being splitted.

> It might be a bit tricky but would work fine.

Sawada-san, will you be able to rewrite this patch soon or should it be
moved to the next commit fest?  I would suggest to do the latter as this
is no small work, and this needs careful thoughts.
--
Michael

Вложения

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

Предыдущее
От: Thomas Munro
Дата:
Сообщение: Re: [HACKERS] Optional message to user when terminating/cancelling backend
Следующее
От: Peter Geoghegan
Дата:
Сообщение: Re: Why B-Tree suffix truncation matters