Re: Startup message issues

From: Kris Jurka <books(at)ejurka(dot)com>
To: Chris Smith <cdsmith(at)twu(dot)net>
Cc: <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: Startup message issues
Date: 2004-02-13 18:33:24
Message-ID: Pine.LNX.4.33.0402131321220.23705-100000@leary.csoft.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

On Fri, 13 Feb 2004, Chris Smith wrote:

> Hope you don't mind the sudden questions.
>
> I'm working through the JDBC driver code. The connection code really confuses
> me. It seems like if we're speaking the V3 protocol successfully, we ought to
> be able to assume that the server is at least 7.4. That would seem to remove
> a lot of the complexity of the open-connection code for v3 - namely, the
> client encoding stuff that contains backward-compatibility code all the way
> back to 7.1, and the 'show autocommit' that seems to have been an issue only
> for 7.3. Assuming 7.4, I think we could jsut assume autocommit and set the
> client encoding to UNICODE in the startup message, and be done with it.
> Right?

This would be a good thing to do. I believe the V3 protocol was put in
with the goal of getting it working which meant a copy, paste, and minimal
edit. So yes V3 implies 7.4 and it would be nice if it took full
advantage of what is offered.

Kris Jurka

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Kris Jurka 2004-02-13 18:39:44 Re: Serial key
Previous Message John Sidney-Woollett 2004-02-13 18:21:49 Re: Serial key