Re: why is index not used?

From: Marcin Krol <mrkafk(at)gmail(dot)com>
To: pgsql-novice(at)postgresql(dot)org
Subject: Re: why is index not used?
Date: 2008-10-28 18:47:58
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-novice

Tom Lane wrote:
> The other point is that in non-C locales, a standard varchar index isn't
> usable for LIKE (the sort order is usually wrong). You can re-initdb
> in C locale or create a varchar_pattern_ops index.

booktown=# create index first_name_idx_vpo on auth using btree
(first_name varchar_pattern_ops);

Yeehaw! Now it works. Thanks Tom!

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message JORGE MALDONADO 2008-10-28 20:04:17 FOREIGN KEY AND INDEXEX
Previous Message JORGE MALDONADO 2008-10-28 16:28:26 DATABASE INDEX DESIGN