Re: Reducing data type space usage

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: Hannu Krosing <hannu(at)skype(dot)net>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, 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-16 18:49:47
Message-ID: 200609161849.k8GInlm25195@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hannu Krosing wrote:
> ?hel kenal p?eval, R, 2006-09-15 kell 19:18, kirjutas Tom Lane:
> > 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.
>
> why not go all the way, and do utf-7 encoded header if hi bit is set ?
>
> or just always have an utf-8 encoded header.

This is a special zero-length header case. We only have one byte.
Doing a utf8 length call to span to the next column is too expensive.

--
Bruce Momjian bruce(at)momjian(dot)us
EnterpriseDB http://www.enterprisedb.com

+ If your life is a hard drive, Christ can be your backup. +

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2006-09-16 19:07:07 Re: Reducing data type space usage
Previous Message Bruce Momjian 2006-09-16 18:41:07 Re: TODO item: update source/timezone for 64-bit tz