Re: Add lookup table for replication slot invalidation causes

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: Add lookup table for replication slot invalidation causes
Дата
Msg-id ZdbwCVjCfFdbV7oa@paquier.xyz
обсуждение исходный текст
Ответ на Re: Add lookup table for replication slot invalidation causes  (Peter Smith <smithpb2250@gmail.com>)
Ответы Re: Add lookup table for replication slot invalidation causes  (Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>)
Re: Add lookup table for replication slot invalidation causes  (Peter Smith <smithpb2250@gmail.com>)
Список pgsql-hackers
On Thu, Feb 22, 2024 at 05:30:08PM +1100, Peter Smith wrote:
> Oops. Perhaps I meant more like below -- in any case, the point was
> the same -- to ensure RS_INVAL_NONE is what returns if something
> unexpected happens.

You are right that this could be a bit confusing, even if we should
never reach this state.  How about avoiding to return the index of the
loop as result, as of the attached?  Would you find that cleaner?
--
Michael

Вложения

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

Предыдущее
От: shveta malik
Дата:
Сообщение: Re: Synchronizing slots from primary to standby
Следующее
От: Andrei Lepikhov
Дата:
Сообщение: Re: POC: GROUP BY optimization