Re: Reducing the overhead of NUMERIC data

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: Reducing the overhead of NUMERIC data
Дата
Msg-id 20051103141358.GA6622@surnet.cl
обсуждение исходный текст
Ответ на Re: Reducing the overhead of NUMERIC data  (Simon Riggs <simon@2ndquadrant.com>)
Ответы Re: Reducing the overhead of NUMERIC data  (Simon Riggs <simon@2ndquadrant.com>)
Список pgsql-hackers
Simon Riggs wrote:

> On PostgreSQL, CHAR(12) is a bpchar datatype with all instantiations of
> that datatype having a 4 byte varlena header. In this example, all of
> those instantiations having the varlena header set to 12, so essentially
> wasting the 4 byte header.

We need the length word because the actual size in bytes is variable,
due to multibyte encoding considerations.

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support


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

Предыдущее
От: Martijn van Oosterhout
Дата:
Сообщение: Re: Reducing the overhead of NUMERIC data
Следующее
От: Simon Riggs
Дата:
Сообщение: Re: Reducing the overhead of NUMERIC data