Re: [HACKERS] Function to move the position of a replication slot

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: [HACKERS] Function to move the position of a replication slot
Дата
Msg-id CAB7nPqTdRM2+LVFkYt93xg4qYN2jHEJqM_pUGMtXn1n1o8tEzA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: [HACKERS] Function to move the position of a replication slot  (Magnus Hagander <magnus@hagander.net>)
Ответы Re: [HACKERS] Function to move the position of a replication slot  (Andres Freund <andres@anarazel.de>)
Список pgsql-hackers
On Thu, Aug 31, 2017 at 9:19 PM, Magnus Hagander <magnus@hagander.net> wrote:
> PFA an updated and rebased patch.
>
> Rebased. Now named pg_advance_replication_slot. ERROR on logical slots.
> Forward only.
>
> I think that, in the end, covered all the comments?

+   if (backwards)
+       ereport(WARNING,
+               (errmsg("Not moving replication slot backwards!")));
Shouldn't this be an ERROR, mentioning the current position of the slot?

+        ereport(ERROR,
+                (errmsg("Only physical replication slots can be advanced.")));
ERRCODE_FEATURE_NOT_SUPPORTED, no?
-- 
Michael



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

Предыдущее
От: Tatsuo Ishii
Дата:
Сообщение: Re: [HACKERS] Statement timeout behavior in extended queries
Следующее
От: Andres Freund
Дата:
Сообщение: Re: [HACKERS] Function to move the position of a replication slot