CHAR(N) storage requirement

Поиск
Список
Период
Сортировка
От David Garamond
Тема CHAR(N) storage requirement
Дата
Msg-id 40017131.9040704@zara.6.isreserved.com
обсуждение исходный текст
Ответы Re: CHAR(N) storage requirement  (Peter Eisentraut <peter_e@gmx.net>)
Список pgsql-general
Is it the 4+N (aka. same as VARCHAR(n)) or is it N? Sorry, it was 100%
not clear for me after reading the docs, though the docs imply the
first: "The storage requirement for data of these types is 4 bytes plus
the actual string, and in case of character plus the padding."

As a comparison, MySQL seems to do storage saving for fixed-length
character (it doesn't store the length of the string).

--
dave

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

Предыдущее
От: David Garamond
Дата:
Сообщение: Re: int8 version of NUMERIC?
Следующее
От: David Garamond
Дата:
Сообщение: Drawbacks of using BYTEA for PK?