Skip site navigation (1) Skip section navigation (2)

Re: BUG #5816: index not used in function

From: "Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov>
To: <pgsql-bugs(at)postgresql(dot)org>,"frank" <frank(at)ros-i(dot)com>
Subject: Re: BUG #5816: index not used in function
Date: 2011-01-06 17:50:18
Message-ID: 4D25AC7A0200002500039079@gw.wicourts.gov (view raw, whole thread or download thread mbox)
Thread:
Lists: pgsql-bugs
"frank" <frank(at)ros-i(dot)com> wrote:
 
> WHERE upper("thisColumn") like $1
 
The function's plan is kept from one execution to another, and it
can't know what will be in the first parameter -- perhaps '%X%'?  If
you build up the statement in a string and EXECUTE it, you might get
the desired behavior.
 
Anyway, next time you have an issue like this, please post to the
performance list; this is not a bug.
 
-Kevin

In response to

Responses

pgsql-bugs by date

Next:From: Gabe NellDate: 2011-01-06 20:54:38
Subject: Re: BUG #5807: psql fails to launch with "Cannot read termcap database; using dumb terminal settings. Aborted"
Previous:From: Kevin GrittnerDate: 2011-01-06 17:44:20
Subject: Re: BUG #5815: connecting to Atllassian products

Privacy Policy | About PostgreSQL
Copyright © 1996-2018 The PostgreSQL Global Development Group