Re: How are null's stored? - Mailing list pgsql-performance

From Andrew Sullivan
Subject Re: How are null's stored?
Date
Msg-id 20030512210423.GN14881@libertyrms.info
Whole thread Raw
In response to Re: How are null's stored?  ("Ryan" <pgsql-performance@seahat.com>)
List 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 by date:

Previous
From: "Ryan"
Date:
Subject: Re: How are null's stored?
Next
From: Josh Berkus
Date:
Subject: Re: How are null's stored?