Re: Functional Index - Mailing list pgsql-general

From Stephan Szabo
Subject Re: Functional Index
Date
Msg-id 20061122081255.I98661@megazone.bigpanda.com
Whole thread Raw
In response to Functional Index  (Alexander Presber <aljoscha@weisshuhn.de>)
Responses Re: Functional Index  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
On Wed, 22 Nov 2006, Alexander Presber wrote:

> Hello everybody,
>
> I am trying to speed up a query on an integer column by defining an
> index as follows
>
>  > CREATE INDEX idx_main_subject ON pdb.main (lower(main_subject::text)
> using varchar_ops);
>
> on column "main_subject".
>
> I had hoped to get speedups for right-fuzzy LIKE-searches,

IIRC, unless you're in C locale, you'll want varchar_pattern_ops rather
than varchar_ops on the index to make it considered for a LIKE search.

pgsql-general by date:

Previous
From: "Joshua D. Drake"
Date:
Subject: Re: PGSQL Newbie
Next
From: Alvaro Herrera
Date:
Subject: Re: MSSQL to PostgreSQL : Encoding problem