Indexing of LIKE queries is broken in current sources

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Indexing of LIKE queries is broken in current sources
Дата
Msg-id 10307.968873126@sss.pgh.pa.us
обсуждение исходный текст
Список pgsql-hackers
I noticed today that current sources are not able to use an index
for a query likeselect * from foo where bar like 'xyz%';

It seems that the parser now emits some kind of function call for LIKE
expressions, whereas the optimizer's code to use indexes for LIKE is
looking for an operator.

I have more pressing things to do than try to teach the optimizer about
looking for function calls as well as operators, so I recommend
reverting the parser's output to what it was.
        regards, tom lane


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

Предыдущее
От: Ricardo Muggli
Дата:
Сообщение: minor fixes for regress
Следующее
От: "Mitch Vincent"
Дата:
Сообщение: Linux / PostgreSQL question