Re: Reducing data type space usage

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Reducing data type space usage
Дата
Msg-id 7571.1158362329@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Reducing data type space usage  (Bruce Momjian <bruce@momjian.us>)
Ответы Re: Reducing data type space usage  (Bruce Momjian <bruce@momjian.us>)
Re: Reducing data type space usage  (Hannu Krosing <hannu@skype.net>)
Список pgsql-hackers
Bruce Momjian <bruce@momjian.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


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: Reducing data type space usage
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: Reducing data type space usage