Re: Datatype sizes; a space and speed issue?

Поиск
Список
Период
Сортировка
От Joel Matthew
Тема Re: Datatype sizes; a space and speed issue?
Дата
Msg-id 20040623134053.EA37.REES@ddcom.co.jp
обсуждение исходный текст
Ответ на Re: Datatype sizes; a space and speed issue?  (Stephan Szabo <sszabo@megazone.bigpanda.com>)
Список pgsql-general
> Both text and varchar are stored in PostgreSQL as length + string so
> varchar(256) doesn't not require storage of the unused bytes.  char space
> pads so it's the oddball (requiring length + padded string).

Yeah, I saw Vams's post and r3m3mb3r3d that I'd f0rg0t.

> varchar lengths should be in characters not bytes, so that should be 128
> characters in any of the encodings, but the actual number of bytes that
> those 128 characters can take up may vary.

And that's actually the best rationale, IMO, for making the optimization
a full-fledged feature. Boy, the things you forget ...

--
Joel Matthew <rees@ddcom.co.jp>


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

Предыдущее
От: Stephan Szabo
Дата:
Сообщение: Re: Datatype sizes; a space and speed issue?
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: Datatype sizes; a space and speed issue?