| От | Tom Lane |
|---|---|
| Тема | Re: Pluggable Storage - Andres's take |
| Дата | |
| Msg-id | 21771.1555004034@sss.pgh.pa.us обсуждение |
| Ответ на | Re: Pluggable Storage - Andres's take (Andres Freund <andres@anarazel.de>) |
| Список | pgsql-hackers |
Andres Freund <andres@anarazel.de> writes:
> On 2019-04-11 14:52:40 +0300, Heikki Linnakangas wrote:
>> + * HEIKKI: A flags bitmask argument would be more readable than 6 booleans
> I honestly don't have strong feelings about it. Not sure that I buy that
> bitmasks would be much more readable
Sure they would be --- how's FLAG_FOR_FOO | FLAG_FOR_BAR not
better than unlabeled "true" and "false"?
> - but perhaps we could just use the
> struct trickery we started to use in
I find that rather ugly really. If we're doing something other than a
dozen-or-so booleans, maybe its the only viable option. But for cases
where a flags argument will serve, that's our longstanding practice and
I don't see a reason to deviate.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера