Re: like vs =

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: like vs =
Дата
Msg-id 1239.1137042135@sss.pgh.pa.us
обсуждение исходный текст
Ответ на like vs =  (Stefan Holzheu <stefan.holzheu@bayceer.uni-bayreuth.de>)
Ответы Re: like vs =  (Stefan Holzheu <stefan.holzheu@bayceer.uni-bayreuth.de>)
Список pgsql-admin
Stefan Holzheu <stefan.holzheu@bayceer.uni-bayreuth.de> writes:
> Other queries with the equal operator do match rows. Am I missing something?

> Postgresql: 8.1.1
> Fieldtype: text
> Database encoding: Latin9

What LC_COLLATE locale are you using?  Your report looks a whole lot
like the recently identified problem with locales that think that some
not-bitwise-identical strings are "equal", as in this thread:
http://archives.postgresql.org/pgsql-general/2005-12/msg00740.php

If the same queries return sane results after doing set enable_indexscan
= off, then that's probably what the problem is.  If so, updating to
8.1.2 and REINDEXing should fix it.

            regards, tom lane

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

Предыдущее
От: "Michael Paesold"
Дата:
Сообщение: Re: duplicates
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Rule for updating ipaddress on insertion