pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Dave Cramer <pg@fastcrypt.com>
To: Greg Sabino Mullane <greg@turnstep.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Prepared statement not using index
Date: Mon, 12 Sep 2005 11:30:14 -0400
Message-ID: <FFD3F3B6-86A9-4488-9A61-0533B5E03CF6@fastcrypt.com> (raw)
In-Reply-To: <fba827428f18f4eaeec31eeb96cef685@biglumber.com>
References: <fba827428f18f4eaeec31eeb96cef685@biglumber.com>

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
>
>




view thread (7+ messages)

Message-ID: <FFD3F3B6-86A9-4488-9A61-0533B5E03CF6@fastcrypt.com>
Permalink:  ../FFD3F3B6-86A9-4488-9A61-0533B5E03CF6@fastcrypt.com/
Also on:    postgresql.org/message-id/FFD3F3B6-86A9-4488-9A61-0533B5E03CF6@fastcrypt.com

 · 

reply

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-performance@postgresql.org
  Cc: pg@fastcrypt.com, greg@turnstep.com
  Subject: Re: Prepared statement not using index
  In-Reply-To: <FFD3F3B6-86A9-4488-9A61-0533B5E03CF6@fastcrypt.com>
  References: <fba827428f18f4eaeec31eeb96cef685@biglumber.com> <FFD3F3B6-86A9-4488-9A61-0533B5E03CF6@fastcrypt.com>

* 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