Re: Indexes on character type columns - Mailing list pgsql-general

From Martijn van Oosterhout
Subject Re: Indexes on character type columns
Date
Msg-id 20051222102703.GD21783@svana.org
Whole thread Raw
In response to Indexes on character type columns  (Guido Neitzer <guido.neitzer@pharmaline.de>)
Responses Re: Indexes on character type columns
List pgsql-general
On Thu, Dec 22, 2005 at 11:24:12AM +0100, Guido Neitzer wrote:
> Hi.
>
> Is there a limitation of the length of a char or varchar(x) column
> for indexing?

For btrees at least, yes. Around a third of a page or about 2713 bytes
by default. For bigger things you probably want tsearch anyway.

Have a nice day,
--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a
> tool for doing 5% of the work and then sitting around waiting for someone
> else to do the other 95% so you can sue them.

Attachment

pgsql-general by date:

Previous
From: Guido Neitzer
Date:
Subject: Indexes on character type columns
Next
From: Guido Neitzer
Date:
Subject: Re: Indexes on character type columns