Re: Boolean type storage format

Поиск
Список
Период
Сортировка
От Mike Christensen
Тема Re: Boolean type storage format
Дата
Msg-id CABs1bs15f_cnEbkDrnt89fnuCM0QbS0HqroAmkjUCw9m8Tq13Q@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Boolean type storage format  (Raghavendra <raghavendra.rao@enterprisedb.com>)
Ответы Re: Boolean type storage format
Список pgsql-general
It would also matter what columns were next to it, correct?

For example, if you had 4 bools in a row, that could also be 1 byte..

On Wed, Oct 31, 2012 at 11:08 AM, Raghavendra <raghavendra.rao@enterprisedb.com> wrote:
On Wed, Oct 31, 2012 at 8:52 PM, Alexander Gataric <gataric@usa.net> wrote:
What is the data physically stored as for boolean type? I know that it is one byte but is it char, int, or something else?


False represented by zero bytes and True by 1 byte with value 1.

---
Regards,
Raghavendra
EnterpriseDB Corporation


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

Предыдущее
От: Lonni J Friedman
Дата:
Сообщение: Re: dropdb breaks replication?
Следующее
От: Tom Lane
Дата:
Сообщение: Re: dropdb breaks replication?