Re: Simplify if/else logic of walsender CreateReplicationSlot

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: Simplify if/else logic of walsender CreateReplicationSlot
Дата
Msg-id ZVsTykodhzhPQo1d@paquier.xyz
обсуждение исходный текст
Ответ на Simplify if/else logic of walsender CreateReplicationSlot  (Peter Smith <smithpb2250@gmail.com>)
Ответы Re: Simplify if/else logic of walsender CreateReplicationSlot
Список pgsql-hackers
On Mon, Nov 20, 2023 at 06:01:42PM +1100, Peter Smith wrote:
> While reviewing another patch I was looking at the walsender's static
> function CreateReplicationSlot
>
> I found that the current logic seemed to have some unnecessary if/else
> checking which can be simplified.

Good idea.  What you are suggesting here improves the readability of
this code, so +1.
--
Michael

Вложения

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

Предыдущее
От: Michael Paquier
Дата:
Сообщение: Re: Remove MSVC scripts from the tree
Следующее
От: Michael Paquier
Дата:
Сообщение: Re: Use of backup_label not noted in log