From: | Bruce Momjian <bruce(at)momjian(dot)us> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | Gregory Stark <stark(at)enterprisedb(dot)com>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Reducing data type space usage |
Date: | 2006-09-15 23:15:39 |
Message-ID: | 200609152315.k8FNFda28829@momjian.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Tom Lane wrote:
> Bruce Momjian <bruce(at)momjian(dot)us> writes:
> > FYI, we also need to figure out how to store a zero-length string. That
> > will probably be high-bit, and then all zero bits. We don't store a
> > zero-byte in strings, so that should be unique for "".
>
> No, it'll be a 1-byte header with length indicating that no bytes
> follow, which likely will be 10000001 rather than 10000000 ... but
> in either case there is no ambiguity involved.
Well, in my idea, 10000001 would be 0x01. I was going to use the
remaining 7 bits for the 7-bit ascii value.
--
Bruce Momjian bruce(at)momjian(dot)us
EnterpriseDB http://www.enterprisedb.com
+ If your life is a hard drive, Christ can be your backup. +
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2006-09-15 23:18:49 | Re: Reducing data type space usage |
Previous Message | Tom Lane | 2006-09-15 23:13:07 | Re: Reducing data type space usage |