Re: Indexed leading substring searches - worked, now doesn't

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Wes <wespvp(at)syntegra(dot)com>
Cc: Postgresql-General <pgsql-general(at)postgresql(dot)org>
Subject: Re: Indexed leading substring searches - worked, now doesn't
Date: 2005-02-03 20:29:53
Message-ID: 3156.1107462593@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Wes <wespvp(at)syntegra(dot)com> writes:
> The locale is showing up as en_US.iso885915. As far as I know, it was
> always this (default RedHat install), so I don't understand why it worked
> before. Did something change between 7.4.1 and 7.4.5? I supposed it's
> possible that I specified locale=C on the original database and don't
> remember that...

You got it in one ...

> I'm not going to have to "initdb --locale=C" and am I?

You could use the alternative operator classes for pattern searches, but
if you want the same indexes to also serve for normal text sorting,
C locale is the better bet.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Karl Denninger 2005-02-03 20:37:04 Eeek! Major problem after reload with tsearch2
Previous Message Oisin Glynn 2005-02-03 20:25:34 Re: Select from function for part of column results