Re: Change definitions of bitmap flags to bit-shifting style
В списке pgsql-hackers по дате отправления:
| От | 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
|
| Список | 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 по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера