Re: Regex select ~ with ^ not using index on char field or text; Locale bug?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Greg Maxwell <gmaxwell(at)martin(dot)fl(dot)us>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Regex select ~ with ^ not using index on char field or text; Locale bug?
Date: 2001-04-30 14:51:04
Message-ID: 14974.988642264@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Greg Maxwell <gmaxwell(at)martin(dot)fl(dot)us> writes:
> On performing queries such as select * from table where name ~ '^NAME.*';
> the database fails to use the available Btree index where available, even
> when the database is told not to use the SEQ_SCAN optimization.

> PGsql was initlized and is started with the scripts in the RPM, so
> LC_ALL=C is set. PSQL is also run with LC_ALL=C.

Are you *certain* the DB was initialized in locale C? Try running
contrib/pg_controldata to be sure.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Greg Maxwell 2001-04-30 14:52:41 Re: Regex select ~ with ^ not using index on char field or text; Locale bug?
Previous Message Tom Lane 2001-04-30 14:48:36 Re: Help, I dropped a system datatype, and now I'm ....