Re: Reducing data type space usage

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Bruce Momjian <bruce(at)momjian(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:18:49
Message-ID: 7571.1158362329@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Bruce Momjian <bruce(at)momjian(dot)us> writes:
> Tom Lane wrote:
>> No, it'll be a 1-byte header with length indicating that no bytes
>> follow,

> Well, in my idea, 10000001 would be 0x01. I was going to use the
> remaining 7 bits for the 7-bit ascii value.

Huh? I thought you said 00000001 would be 0x01, that is, high bit
clear means a single byte containing an ASCII character. You could
reverse that but it just seems to make things harder --- the byte
isn't a correct data byte by itself, as it would be with the other
convention.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2006-09-15 23:23:25 Re: Reducing data type space usage
Previous Message Bruce Momjian 2006-09-15 23:15:39 Re: Reducing data type space usage