Re: Datatype sizes; a space and speed issue?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Datatype sizes; a space and speed issue?
Дата
Msg-id 27788.1087971735@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Datatype sizes; a space and speed issue?  (Joel Matthew <rees@ddcom.co.jp>)
Список pgsql-general
Joel Matthew <rees@ddcom.co.jp> writes:
> Does that mean that PostGreSQL fixes character width at thirty-two bits,
> or that it uses UTF-8, or that it just stores what it gets?

We store text data in the form indicated by the database encoding
setting.  UCS-32 is not a supported encoding, but UTF-8 is --- among
others.

> (Checked chapter 8.3 in the manual, didn't see the answer there. Not
> that I really want to know. With Unicode, trying to optimize record
> sizes for char/text fields is a little like trying to play Russian
> Roulette.

No, it's entirely like pointless.  You just don't know how many bytes
will be taken up by N characters.

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Datatype sizes; a space and speed issue?
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Do we need more emphasis on backup?