Re: Reducing data type space usage - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Reducing data type space usage
Date
Msg-id 7493.1158361987@sss.pgh.pa.us
Whole thread Raw
In response to Re: Reducing data type space usage  (Bruce Momjian <bruce@momjian.us>)
Responses Re: Reducing data type space usage
List pgsql-hackers
Bruce Momjian <bruce@momjian.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.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: Reducing data type space usage
Next
From: Bruce Momjian
Date:
Subject: Re: Reducing data type space usage