Re: How are null's stored?

Поиск
Список
Период
Сортировка
От Andrew Sullivan
Тема Re: How are null's stored?
Дата
Msg-id 20030512210423.GN14881@libertyrms.info
обсуждение исходный текст
Ответ на Re: How are null's stored?  ("Ryan" <pgsql-performance@seahat.com>)
Список pgsql-performance
On Mon, May 12, 2003 at 01:58:03PM -0500, Ryan wrote:
> So if the internal format is identical, why does the INFERNAL database
> ignore indexes when you have a text compared to a varchar?

Because the rules for handling the two data types are not the same.
Since spaces are significant on char(n) according to the spec, you
have strange rules in their handling.

Short answer: use text.  Varchar(n) if you must, to limit length.
But char(n) is almost always evil.

A

--
----
Andrew Sullivan                         204-4141 Yonge Street
Liberty RMS                           Toronto, Ontario Canada
<andrew@libertyrms.info>                              M2P 2A8
                                         +1 416 646 3304 x110


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

Предыдущее
От: "Ryan"
Дата:
Сообщение: Re: How are null's stored?
Следующее
От: Josh Berkus
Дата:
Сообщение: Re: How are null's stored?