Re: Planner question - "bit" data types

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Planner question - "bit" data types
Дата
Msg-id 14949.1252380971@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Planner question - "bit" data types  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-performance
Robert Haas <robertmhaas@gmail.com> writes:
> On Mon, Sep 7, 2009 at 10:05 PM, Karl Denninger<karl@denninger.net> wrote:
>> The problem with re-coding for them is extensibility (by those who install
>> and administer the package); a mask leaves open lots of extra bits for
>> "site-specific" use, where hard-coding booleans does not,

> You can always create 32 boolean fields and only use some of them,
> leaving the others for site-specific use...

Indeed.  Why is "user_defined_flag_24" so much worse that "mask &
16777216" ?  Especially when the day comes that you need to add one more
system-defined flag bit?

            regards, tom lane

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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: Planner question - "bit" data types
Следующее
От: Reydan Cankur
Дата:
Сообщение: Re: Using Gprof with Postgresql