Re: Replace magic numbers with strategy numbers for B-tree indexes

Поиск
Список
Период
Сортировка
От Nikita Malakhov
Тема Re: Replace magic numbers with strategy numbers for B-tree indexes
Дата
Msg-id CAN-LCVNBk9Tdt8PdUjPGC1hBLgoxL5EX_NEegJpK5OsnBGKeOQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Replace magic numbers with strategy numbers for B-tree indexes  (Peter Eisentraut <peter@eisentraut.org>)
Ответы Re: Replace magic numbers with strategy numbers for B-tree indexes
Список pgsql-hackers
Hi Daniil!

Please correct if I'm wrong, but it seems Peter had another approach in mind -
magic numbers in separate macros could be easily replaced with enums and
validation functions, which would make code more readable and less 'magical'.
Please check the POC patch in attach.
I've made this just for BT strategies macros and touched only 2 source files
to make a correct but simple example.

--
Regards,
Nikita Malakhov
Postgres Professional
The Russian Postgres Company
Вложения

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