Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WxTLb-0006Qz-SD for pgsql-odbc@arkaria.postgresql.org; Thu, 19 Jun 2014 03:49:11 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WxTLb-000444-2I for pgsql-odbc@arkaria.postgresql.org; Thu, 19 Jun 2014 03:49:11 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1WxTLa-00043y-Hf for pgsql-odbc@postgresql.org; Thu, 19 Jun 2014 03:49:10 +0000 Received: from mout.kundenserver.de ([212.227.17.13]) by magus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1WxTLX-0004Bv-25 for pgsql-odbc@postgresql.org; Thu, 19 Jun 2014 03:49:09 +0000 Received: from ayaki.localdomain (58-7-63-35.dyn.iinet.net.au [58.7.63.35]) by mrelayeu.kundenserver.de (node=mreue104) with ESMTP (Nemesis) id 0LfSYr-1WMUgr1Ml7-00p43X; Thu, 19 Jun 2014 05:49:05 +0200 Message-ID: <53A25DAC.2080007@2ndquadrant.com> Date: Thu, 19 Jun 2014 11:49:00 +0800 From: Craig Ringer Organization: 2nd Quadrant User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 MIME-Version: 1.0 To: Tom Lane CC: "pgsql-odbc@postgresql.org" Subject: Re: Removing support for v1 and v2 protocols? References: <53A2507F.808@2ndquadrant.com> <11648.1403147417@sss.pgh.pa.us> In-Reply-To: <11648.1403147417@sss.pgh.pa.us> X-Enigmail-Version: 1.6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Provags-ID: V02:K0:+cUJiM5s4GWVAiuIyuGo779KIzC+rA+p0JxuX73feC2 lyMlDtSPOlmIoHhwZt2bH2/3ZO9DcWC7BvnYXsSF6xCyOA6sXh f3BwKel0Mg268me55JMfr98BAZ6n9tE+O7HfRPGcFaxKeDXs8n N6Ec8WKZDSq7wiUnhyQxaoSr24l45MxW8qx7f++0SttiuC5Q5j ZmZoPsVk/1wfJCNFXWu3Usa5d50qSxlYUPF+3VYXLzbHvwAFEK dj1IqFGeENkO2ndGINBpWkr2uP2IIv0E7dPJIy4NoiuRrFmh/l 3gdT8OMxQ/ETLBacW5E/udUr3o6zKK1kVkxWQGyKK0bkqcezsM JxTkuteY3Ipiz5RJCHF+zUiaf1+pAAW6N/NNj/t2Y X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-odbc Precedence: bulk Sender: pgsql-odbc-owner@postgresql.org On 06/19/2014 11:10 AM, Tom Lane wrote: > Craig Ringer writes: >> 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 . > > FWIW, I've been thinking of proposing that we drop v2 protocol support > in libpq and the backend. Sounds great, and we could cut a bunch of code out of PgJDBC then. That'll make Dave Cramer happy. > I don't recall at the moment what the differences were between v1 and v2, > but I think that libpq hasn't had v1 support since 7.4, if not further > back. The backend might still nominally support v1, but that code is > surely pretty untested anymore. So you definitely don't want v1, if > indeed ODBC still contains support for that. It appears to, in that it has places where it tests for whether it's talking to 6.4+ (!) or not. It might just be scattered remenants, but that's almost worse. *Begins sharpening razor* I'm a bit lost as to why psqlODBC does so much of this its self, instead of just using libpq. PgJDBC does it because it wants to be a JDBC Type 4 driver, i.e. all Java code, so it can't talk to libpq over JNI/JNA. That concern does not apply to psqlODBC, which in fact already links to libpq but doesn't seem to use it for protocol handling. -- Craig Ringer http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services -- Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-odbc