From: Richard Huxton <dev@archonet.com>
To: theo@flame.co.za
Cc: pgsql-performance@postgresql.org
Subject: Re: Performance problems with prepared statements
Date: Fri, 12 Oct 2007 09:26:01 +0100
Message-ID: <470F2F99.7080706@archonet.com> (raw)
In-Reply-To: <1192176335.2470.20.camel@localhost.localdomain>
References: <1192027540.2495.3.camel@localhost.localdomain>
<470CE918.4060608@dalibo.com>
<1192044840.2549.21.camel@fedmac>
<slrnfgsqpi.27gg.andrew+nonews@atlantis.supernews.net>
<1192176335.2470.20.camel@localhost.localdomain>
Theo Kramer wrote:
> On Thu, 2007-10-11 at 18:28 +0000, Andrew - Supernews wrote:
>> When you do this from the application, are you passing it 3 parameters,
>> or 5? The plan is clearly taking advantage of the fact that the two
>> occurrences of $1 and $2 are known to be the same value; if your app is
>> using some interface that uses ? placeholders rather than numbered
>> parameters, then the planner will not be able to make this assumption.
>
> You may just have hit the nail on the head. I use numbered parameters
> but have $1 to $5 ... let me take a look to see if I can change this.
That'll be it.
--
Richard Huxton
Archonet Ltd
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: dev@archonet.com, theo@flame.co.za
Subject: Re: Performance problems with prepared statements
In-Reply-To: <470F2F99.7080706@archonet.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