From: Josh Berkus <josh@agliodbs.com>
To: Kurt De Grave <Kurt.DeGrave@student.kuleuven.ac.be>
Cc: pgsql-performance@postgresql.org
Subject: Re: parameterized LIKE does not use index
Date: Wed, 22 Jun 2005 14:08:55 -0700
Message-ID: <200506221408.55942.josh@agliodbs.com> (raw)
In-Reply-To: <42B9BB20.7050109@student.kuleuven.ac.be>
References: <42B9BB20.7050109@student.kuleuven.ac.be>
Kurt,
> Of course, I could modify the application and send different SQL
> depending on which case we're in or just constructing a query with a
> literal each time, but is there a way to add a hint to the SQL that
> would cause the query to be re-planned if it's a case that could use the
> index? Or can I convince the (Perl) driver to do so?
There should be an option to tell DBD::Pg not to cache a query plan.
Let's see ....
yes. pg_server_prepare=0, passed to the prepare() call.
--
--Josh
Josh Berkus
Aglio Database Solutions
San Francisco
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-performance@postgresql.org
Cc: josh@agliodbs.com, Kurt.DeGrave@student.kuleuven.ac.be
Subject: Re: parameterized LIKE does not use index
In-Reply-To: <200506221408.55942.josh@agliodbs.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox