Re: Indexing of LIKE queries is broken in current sources

Поиск
Список
Период
Сортировка
От Thomas Lockhart
Тема Re: Indexing of LIKE queries is broken in current sources
Дата
Msg-id 39C05C2D.C1271929@alumni.caltech.edu
обсуждение исходный текст
Ответ на Indexing of LIKE queries is broken in current sources  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Indexing of LIKE queries is broken in current sources
Список pgsql-hackers
> 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.

Oh, that's bad. I changed it to the function call to allow
three-parameter LIKE clauses, which is a perfectly reasonable thing to
do imho.

This LIKE shortcircuit stuff is a hack anyway, but where should I look
in the optimizer?
                      - Thomas


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

Предыдущее
От: The Hermit Hacker
Дата:
Сообщение: using a join in an 'INSERT ... SELECT' ...
Следующее
От: Stephan Szabo
Дата:
Сообщение: Re: using a join in an 'INSERT ... SELECT' ...