Re: Looking for tips - Mailing list pgsql-performance

From Tom Lane
Subject Re: Looking for tips
Date
Msg-id 8613.1121800591@sss.pgh.pa.us
Whole thread Raw
In response to Re: Looking for tips  (Oliver Crosby <ryusei@gmail.com>)
Responses Re: Looking for tips
List pgsql-performance
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

pgsql-performance by date:

Previous
From: PFC
Date:
Subject: Re: Looking for tips
Next
From: Christopher Petrilli
Date:
Subject: Re: Impact of checkpoint_segments under continual load conditions