Re: index scan with functional indexes - Mailing list pgsql-hackers

From Stephan Szabo
Subject Re: index scan with functional indexes
Date
Msg-id 20040127095921.X65927@megazone.bigpanda.com
Whole thread Raw
In response to Re: index scan with functional indexes  (Dave Cramer <pg@fastcrypt.com>)
List 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%'


pgsql-hackers by date:

Previous
From: Dave Cramer
Date:
Subject: Re: index scan with functional indexes
Next
From: Alvaro Herrera
Date:
Subject: Re: index scan with functional indexes