Re: Let's drop V2 protocol - Mailing list pgsql-hackers

From Merlin Moncure
Subject Re: Let's drop V2 protocol
Date
Msg-id CAHyXU0zVHr47Y6o-Ahg9wx8Hgh_naGwu+Xm3mNfZy35Xrr=nWg@mail.gmail.com
Whole thread Raw
In response to Re: Let's drop V2 protocol  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On Fri, Feb 24, 2012 at 10:46 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> I believe it's still somewhat common among JDBC users to force
> V2-protocol connections as a workaround for over-eager prepared
> statement planning.  Although I think the issue they're trying to dodge
> will be fixed as of 9.2, that doesn't mean the server-side support can
> go away.

good point. I just went through this.  The JDBC driver has a
'prepareThreshold' directive that *mostly* disables server side
prepared statements so you can work with tools like pgbouncer.
Unfortunately, it doesn't work for explicit transaction control
statements so that you have to downgrade jdbc protocol or patch the
driver (which is really the better way to go, but I can understand why
that won't fly for a lot of people).

merlin


pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: Runtime SHAREDIR for testing CREATE EXTENSION
Next
From: Peter Eisentraut
Date:
Subject: Re: proposal: copybytea command for psql