Re: index scan with functional indexes

From: Stephan Szabo <sszabo(at)megazone(dot)bigpanda(dot)com>
To: Dave Cramer <pg(at)fastcrypt(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: index scan with functional indexes
Date: 2004-01-27 18:01:07
Message-ID: 20040127095921.X65927@megazone.bigpanda.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


On Tue, 27 Jan 2004, Dave Cramer wrote:

> same answer
>
> davec=# show enable_seqscan;
> enable_seqscan
> ----------------
> off
> (1 row)
>
> davec=# explain analyze select * from url where fn_strrev(url) like
> '%beta12.html';

That's still an unanchored like clause, besides I think that would get
urls that begin with lmth.21ateb.

I think the condition you want would be:
fn_strrev(url) like 'lmth.21ateb%'

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Alvaro Herrera 2004-01-27 18:02:03 Re: index scan with functional indexes
Previous Message Dave Cramer 2004-01-27 17:41:41 Re: index scan with functional indexes