Re: Boolean type storage format

From: Raghavendra <raghavendra(dot)rao(at)enterprisedb(dot)com>
To: Alexander Gataric <gataric(at)usa(dot)net>
Cc: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Boolean type storage format
Date: 2012-10-31 18:08:31
Message-ID: CA+h6AhjniuEm2ygQfQOw7tQ4TOwrm1-Mrw7kyCANzBdBM-xLJA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, Oct 31, 2012 at 8:52 PM, Alexander Gataric <gataric(at)usa(dot)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
Blog: http://raghavt.blogspot.com/

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Lonni J Friedman 2012-10-31 18:09:27 Re: dropdb breaks replication?
Previous Message Edson Richter 2012-10-31 18:01:26 Re: dropdb breaks replication?