Re: Change definitions of bitmap flags to bit-shifting style

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: Change definitions of bitmap flags to bit-shifting style
Дата
Msg-id X8x5QmoUxQWVEMX/@paquier.xyz
обсуждение исходный текст
Ответ на Re: Change definitions of bitmap flags to bit-shifting style  (Alvaro Herrera <alvherre@alvh.no-ip.org>)
Ответы Re: Change definitions of bitmap flags to bit-shifting style  (James Coleman <jtc331@gmail.com>)
Список pgsql-hackers
On Sat, Dec 05, 2020 at 10:31:09PM -0300, Alvaro Herrera wrote:
> The hexadecimal representation is more natural to me than bit-shifting,
> so I would prefer to use that style too.  But maybe I'm trained to it
> because of looking at t_infomask symbols constantly.

If we are going to change all that, hexa style sounds good to me too.
Would it be worth an addition to the docs, say in [1] to tell that
this is a preferred style?

[1]: https://www.postgresql.org/docs/devel/source-conventions.html?
--
Michael

Вложения

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

Предыдущее
От: Laurenz Albe
Дата:
Сообщение: Re: Change definitions of bitmap flags to bit-shifting style
Следующее
От: Stephen Frost
Дата:
Сообщение: Re: A few new options for CHECKPOINT