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

Поиск
Список
Период
Сортировка
От Greg Maxwell
Тема Regex select ~ with ^ not using index on char field or text; Locale bug?
Дата
Msg-id Pine.GSO.3.96.1010427141819.19462H-100000@da1server
обсуждение исходный текст
Ответы Re: Regex select ~ with ^ not using index on char field or text; Locale bug?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
Just migrated a database from a RH6.1 + PG 7.0.3 system to a RH7.1 + PG
7.1 (rpms from ftp.postgresql.org (postgresql-server-7.1-1)).

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.

Figured it was a locale related bug..

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.

Am I going to need to hack the .spec to remove --enable-locale and
recompile?

--
The comments and opinions expressed herein are those of the author of this
message and may not reflect the policies of the Martin County Board of
County Commissioners.


В списке pgsql-general по дате отправления:

Предыдущее
От: "mike"
Дата:
Сообщение: Pgsql radius authntication
Следующее
От: Feite Brekeveld
Дата:
Сообщение: FATAL 2 : after a vacuum, can't start postmaster anymore