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

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: Change definitions of bitmap flags to bit-shifting style
Дата
Msg-id 20201206013109.GA25661@alvherre.pgsql
обсуждение исходный текст
Ответ на Re: Change definitions of bitmap flags to bit-shifting style  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Change definitions of bitmap flags to bit-shifting style  (Michael Paquier <michael@paquier.xyz>)
Список pgsql-hackers
On 2020-Dec-05, Tom Lane wrote:

> FWIW, personally I'd vote for doing the exact opposite.  When you are
> debugging and examining the contents of a bitmask variable, it's easier to
> correlate a value like "0x03" with definitions made in the former style.
> Or at least I think so; maybe others see it differently.

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.



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [PATCH] Keeps tracking the uniqueness with UniqueKey
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: A few new options for CHECKPOINT