Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id B73942E00CF for ; Wed, 13 Feb 2008 17:06:16 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 93502-07 for ; Wed, 13 Feb 2008 17:06:10 -0400 (AST) Received: from mail63.csoft.net (leary.csoft.net [205.205.214.5]) by postgresql.org (Postfix) with SMTP id 460CC2E0064 for ; Wed, 13 Feb 2008 17:06:10 -0400 (AST) Received: (qmail 7307 invoked by uid 1112); 13 Feb 2008 21:06:09 -0000 Date: Wed, 13 Feb 2008 16:06:08 -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: <1202936181.16770.493.camel@ebony.site> Message-ID: References: <200802131005.30553.josh@agliodbs.com> <1202934864.16770.486.camel@ebony.site> <1202936181.16770.493.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/57 X-Sequence-Number: 18264 On Wed, 13 Feb 2008, Simon Riggs wrote: > On Wed, 2008-02-13 at 15:43 -0500, Kris Jurka wrote: > >> No, in V3 all prepared statements are prepared regardless of the >> threshold. > > Am I reading the wrong documentation? > http://jdbc.postgresql.org/documentation/83/connect.html#connection-parameters > The documentation is just simplifying the complexities of named vs unnamed statements. Aside from a couple of exceptions, an unnamed prepared statement should perform equivalently to direct execution of the literal query. Describing it as semi-prepared is complicated and not particularly useful if there is no way to get non-prepared behavior. Kris Jurka