X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 9CAA1D8BED for ; Mon, 12 Sep 2005 12:30:21 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 63402-04 for ; Mon, 12 Sep 2005 15:30:17 +0000 (GMT) Received: from net2.micro-automation.com (net2.micro-automation.com [64.7.141.29]) by svr1.postgresql.org (Postfix) with SMTP id DF8F6D8A03 for ; Mon, 12 Sep 2005 12:30:16 -0300 (ADT) Received: (qmail 21504 invoked from network); 12 Sep 2005 15:30:16 -0000 Received: from dcdsl.ebox.com (HELO ?192.168.1.2?) (davec@64.7.143.116) by net2.micro-automation.com with SMTP; 12 Sep 2005 15:30:16 -0000 In-Reply-To: References: Mime-Version: 1.0 (Apple Message framework v734) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Cc: pgsql-performance@postgresql.org Content-Transfer-Encoding: 7bit From: Dave Cramer Subject: Re: Prepared statement not using index Date: Mon, 12 Sep 2005 11:30:14 -0400 To: Greg Sabino Mullane X-Mailer: Apple Mail (2.734) X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.013 required=5 tests=[AWL=0.013] X-Spam-Level: X-Archive-Number: 200509/145 X-Sequence-Number: 14453 It's added, just use the old protocol . Here are the connection parameters http://jdbc.postgresql.org/documentation/head/connect.html#connection- parameters Dave On 12-Sep-05, at 9:26 AM, Greg Sabino Mullane wrote: > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > > >> The difference between the 7.4 driver and the 8.0.3 driver is the >> 8.0.3 driver is using server side prepared statements and binding the >> parameter to the type in setXXX(n,val). >> >> The 7.4 driver just replaces the ? with the value and doesn't use >> server side prepared statements. >> > > DBD::Pg has a few flags that enables you to do things like > purposely avoid > using server side prepares, and force a reprepare of a particular > statement. > Perhaps something like that is available for the JDBC driver? If not, > maybe someone would be willing to add it in? > > - -- > Greg Sabino Mullane greg@turnstep.com > PGP Key: 0x14964AC8 200509120925 > https://www.biglumber.com/x/web? > pk=2529DF6AB8F79407E94445B4BC9B906714964AC8 > > -----BEGIN PGP SIGNATURE----- > > iEYEARECAAYFAkMlgdAACgkQvJuQZxSWSsjMlQCePc4dpE0BCT3W//y/N9uolkmK > ViIAnjR1fF14KbP+cX+xV8lmdlL6Be2k > =NtXw > -----END PGP SIGNATURE----- > > > > ---------------------------(end of > broadcast)--------------------------- > TIP 5: don't forget to increase your free space map settings > >