From: Tom Lane <tgl@sss.pgh.pa.us>
To: Oliver Crosby <ryusei@gmail.com>
Cc: Joshua D. Drake <jd@commandprompt.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Looking for tips
Date: Tue, 19 Jul 2005 15:16:31 -0400
Message-ID: <8613.1121800591@sss.pgh.pa.us> (raw)
In-Reply-To: <1efd553a05071912111f6a3121@mail.gmail.com>
References: <1efd553a05071910427b290203@mail.gmail.com>
<42DD3D55.9020508@commandprompt.com>
<1efd553a050719112126b8d981@mail.gmail.com>
<8446.1121799660@sss.pgh.pa.us>
<1efd553a05071912111f6a3121@mail.gmail.com>
Oliver Crosby <ryusei@gmail.com> writes:
>> You could possibly get some improvement if you can re-use prepared plans
>> for the queries; but this will require some fooling with the client code
>> (I'm not sure if DBD::Pg even has support for it at all).
> Aye. We have prepared statements.
Ah, but are they really prepared, or is DBD::Pg faking it by inserting
parameter values into the query text and then sending the assembled
string as a fresh query? It wasn't until about 7.4 that we had adequate
backend support to let client libraries support prepared queries
properly, and I'm unsure that DBD::Pg has been updated to take advantage
of that support.
regards, tom lane
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: tgl@sss.pgh.pa.us, ryusei@gmail.com, jd@commandprompt.com
Subject: Re: Looking for tips
In-Reply-To: <8613.1121800591@sss.pgh.pa.us>
* 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