Re: Removing support for v1 and v2 protocols? - Mailing list pgsql-odbc

From Heikki Linnakangas
Subject Re: Removing support for v1 and v2 protocols?
Date
Msg-id 53A2A9EF.6010209@vmware.com
Whole thread Raw
In response to Removing support for v1 and v2 protocols?  (Craig Ringer <craig@2ndquadrant.com>)
List pgsql-odbc
On 06/19/2014 05:52 AM, Craig Ringer wrote:
> Hi
>
> I've just found a bug (followup mail to come) that seems to be tied up
> in support for the old v1/v2 protocols.
>
> Is there any reason to keep all that cruft? v3 was introduced in 7.4, in
> 2003-11-17 .

No reason. Michael Paquier has been working on removing it, see thread
"Removing support for < 7.4 servers":

http://www.postgresql.org/message-id/CAB7nPqRuxEuBgM-us4oKsc-rB6qN84CgsOC8M0O+pyW2d_GUKA@mail.gmail.com

> Also, I'm wondering why psqlODBC does so much of its own protocol
> handling. It links to libpq, why doesn't it use it? There's a lot of
> complicated code in there - see, e.g. CC_send_query_append, that seems
> to duplicate much of what libpq its self does, and mix protocol handling
> up with client driver logic.

Yeah. Historical reasons, I'd say. I'd like to refactor the driver to
stop doing that, and use libpq. It's not an easy task, exactly because
the current code is quite complicated.

- Heikki


pgsql-odbc by date:

Previous
From: Heikki Linnakangas
Date:
Subject: Re: Building psqlODBC installers
Next
From: Heikki Linnakangas
Date:
Subject: Re: Protocol de-synchronisation bug, bogus query sent