Re: boolean in C

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: boolean in C
Дата
Msg-id 10356.1247758976@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: boolean in C  (Grzegorz Jaskiewicz <gj@pointblue.com.pl>)
Список pgsql-hackers
Grzegorz Jaskiewicz <gj@pointblue.com.pl> writes:
> On 16 Jul 2009, at 15:17, Tom Lane wrote:
>> That's hardly going to improve readability for anyone.  Also, it will
>> flat out not work for the catalog struct declarations.  When we say
>> "bool relhasindex;" the compiler had better think that that's a
>> one-byte field.

> Sure, but I would certainly hope, there's not too many places where  
> you actually convert it from disc representation, to internal and vice  
> versa.

We don't "convert" --- it's expected to be the same representation.
As for not too many of them, I think grepping for references to bool
catalog fields will show you differently ...
        regards, tom lane


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

Предыдущее
От: Kenneth Marshall
Дата:
Сообщение: Re: Re: Review remove {join,from}_collapse_limit, add enable_join_ordering
Следующее
От: Andres Freund
Дата:
Сообщение: Re: Review remove {join,from}_collapse_limit, add enable_join_ordering