Re: expression index not used within function - Mailing list pgsql-general

From LPlateAndy
Subject Re: expression index not used within function
Date
Msg-id 1384791792963-5778927.post@n5.nabble.com
Whole thread Raw
In response to Re: expression index not used within function  (LPlateAndy <andy@centremaps.co.uk>)
Responses Re: expression index not used within function
List pgsql-general
Hi,

Just wondering what kind of execute statement (within a function) i should
use to force the planner to use the index for the following?:

SELECT pcode searchmatch, geometry  FROM postcode
WHERE (replace(lower(pcode), ' '::text, ''::text)) LIKE
(replace((lower($1)::text),' '::text,''::text)||'%'::text)

Thanks

Andy



--
View this message in context:
http://postgresql.1045698.n5.nabble.com/expression-index-not-used-within-function-tp5778236p5778927.html
Sent from the PostgreSQL - general mailing list archive at Nabble.com.


pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: Regex files are missing
Next
From: "Janek Sendrowski"
Date:
Subject: Re: Regex files are missing