Re: Indexing of LIKE queries is broken in current sources

From: Thomas Lockhart <lockhart(at)alumni(dot)caltech(dot)edu>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: Indexing of LIKE queries is broken in current sources
Date: 2000-09-14 05:03:41
Message-ID: 39C05C2D.C1271929@alumni.caltech.edu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Franck Martin 2000-09-14 05:14:45 Indexing for geographical objects
Previous Message The Hermit Hacker 2000-09-14 04:18:02 using a join in an 'INSERT ... SELECT' ...