Re: Fixed length data types issue - Mailing list pgsql-hackers

From Andrew - Supernews
Subject Re: Fixed length data types issue
Date
Msg-id slrneg00ed.2ea3.andrew+nonews@atlantis.supernews.net
Whole thread Raw
In response to Fixed length data types issue  (Gregory Stark <stark@enterprisedb.com>)
Responses Re: Fixed length data types issue  (Gregory Stark <stark@enterprisedb.com>)
List pgsql-hackers
On 2006-09-07, Gregory Stark <stark@enterprisedb.com> wrote:
> Consider this real table definition I found in a few moments searching for
> schemas on google:
[snip table with lots of fixed-length char fields]
>
> By my count postgres would use 154 bytes for this record. Whereas in fact
> there's no need for it to take more than 87 bytes.

Are you sure? Perhaps you are assuming that a char(1) field can be made
to be fixed-length; this is not the case (consider utf-8 for example).

-- 
Andrew, Supernews
http://www.supernews.com - individual and corporate NNTP services


pgsql-hackers by date:

Previous
From: Gevik Babakhani
Date:
Subject: Re: UUID/GUID discussion leading to request for hexstring bytea?
Next
From: Dave Cramer
Date:
Subject: getting access to gborg, specifically the jdbc CVS files