Re: [PATCH] Replace magic constant 3 with NUM_MERGE_MATCH_KINDS

Поиск
Список
Период
Сортировка
От Aleksander Alekseev
Тема Re: [PATCH] Replace magic constant 3 with NUM_MERGE_MATCH_KINDS
Дата
Msg-id CAJ7c6TPD=6Zx7+xWC8y5HMeH_K6NxkKb8OkX0iy8Rs2Lk-957Q@mail.gmail.com
обсуждение исходный текст
Ответ на Re: [PATCH] Replace magic constant 3 with NUM_MERGE_MATCH_KINDS  (Dean Rasheed <dean.a.rasheed@gmail.com>)
Ответы Re: [PATCH] Replace magic constant 3 with NUM_MERGE_MATCH_KINDS
Список pgsql-hackers
Hi,

> I guess the argument against inserting an enum element at the end is
> that a switch statement on the enum value might generate a compiler
> warning if it didn't have a default clause.

Fair point. PFA the alternative version of the patch.

-- 
Best regards,
Aleksander Alekseev

Вложения

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

Предыдущее
От: Sriram RK
Дата:
Сообщение: Re: AIX support
Следующее
От: shveta malik
Дата:
Сообщение: Re: promotion related handling in pg_sync_replication_slots()