varchar/char size

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема varchar/char size
Дата
Msg-id 199801071742.MAA11441@candle.pha.pa.us
обсуждение исходный текст
Ответы Re: [HACKERS] varchar/char size  (The Hermit Hacker <scrappy@hub.org>)
Список pgsql-hackers
Does someone want to remind me why we allocate the full size for char()
and varchar(), when we really can just allocate the size of the given
string?

I relize char() has to be padded, but why varchar()?

In my experience, char() is full size as defined by create, and
varchar() is the the size of the actual data in the field, like text,
but with a pre-defined limit.

--
Bruce Momjian
maillist@candle.pha.pa.us

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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: [HACKERS] database size
Следующее
От: darrenk@insightdist.com (Darren King)
Дата:
Сообщение: Re: [HACKERS] database size