Regex select ~ with ^ not using index on char field or text; Locale bug?
В списке pgsql-general по дате отправления:
| От | 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?
|
| Список | 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 по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера