Re: problem with select where like ']'

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: problem with select where like ']'
Дата
Msg-id 1986.971811218@sss.pgh.pa.us
обсуждение исходный текст
Ответ на problem with select where like ']'  (hubert depesz lubaczewski <depesz@depesz.pl>)
Список pgsql-sql
hubert depesz lubaczewski <depesz@depesz.pl> writes:
> but i'm just wondering why like ']' doesn't work.

What LOCALE setting are you running the postmaster in?

']' is not a special character as far as LIKE is concerned, but
I suspect you may be seeing another variant of the problems that
LIKE index optimization has with peculiar collation rules.
You can find plenty of discussion of this in the mailing list archives
:-(

If there is an index on the field you are doing LIKE on, try dropping
the index to see if that makes the problem go away.

Another possibility is that you have been careless about always starting
the postmaster with the same LOCALE setting, in which case the index
may actually be corrupt (out of order) due to different records having
been inserted with different ideas about what the sort ordering should be.
In that case, dropping and recreating the index should help.
        regards, tom lane


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

Предыдущее
От: hubert depesz lubaczewski
Дата:
Сообщение: problem with select where like ']'
Следующее
От: KuroiNeko
Дата:
Сообщение: Re: problem with select where like ']'