Received: from localhost (unknown [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 91A622E0131 for ; Wed, 13 Feb 2008 19:15:24 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 18283-09 for ; Wed, 13 Feb 2008 19:14:58 -0400 (AST) Received: from mx3.hub.org (mx3.hub.org [206.223.169.73]) by postgresql.org (Postfix) with ESMTP id 79CEC2E0110 for ; Wed, 13 Feb 2008 19:15:04 -0400 (AST) X-Greylist: delayed 00:17:51.313245 by SQLgrey-1.7.5 Received: from mail63.csoft.net (leary.csoft.net [205.205.214.5]) by mx3.hub.org (Postfix) with SMTP id DCAAE37BDC8 for ; Wed, 13 Feb 2008 18:47:20 -0400 (AST) Received: (qmail 7069 invoked by uid 1112); 13 Feb 2008 22:47:14 -0000 Date: Wed, 13 Feb 2008 17:47:14 -0500 (EST) From: Kris Jurka X-X-Sender: books@leary.csoft.net To: Simon Riggs cc: Josh Berkus , PostgreSQL - JDBC Subject: Re: JDBC, prepared queries, and partitioning In-Reply-To: <1202941965.16770.540.camel@ebony.site> Message-ID: References: <200802131005.30553.josh@agliodbs.com> <1202934864.16770.486.camel@ebony.site> <1202936181.16770.493.camel@ebony.site> <1202938005.16770.514.camel@ebony.site> <1202940283.16770.525.camel@ebony.site> <1202941965.16770.540.camel@ebony.site> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200802/74 X-Sequence-Number: 18281 On Wed, 13 Feb 2008, Simon Riggs wrote: > But the code example shows explicit use of > > pgconn.setPrepareThreshold(5); > > which clearly does nothing, given the default setting of protocol V3. > > So the program shown only works as stated with 7.3, the last time the > default connection protocol was v2. No, you've got it all backwards. prepareThreshold only does something with V3. With V2, you *never* get prepared execution and this setting does nothing. With V3, prepareThreshold switches between semi-prepared and fully-prepared execution. For most cases semi-prepared is equivalent to not-prepared (just not for partitioning which didn't exist when this parameter + documentation were added). > Should we be asking for volunteers to overhaul the docs? I'm concerned > that some important facts aren't just wrong, they've been wrong for 4+ > years. That's a pretty serious situation for customer performance as > well as advocacy. > Help is always appreciated, but I fear we don't have a big pool of people with the right knowledge to do it. Kris Jurka