Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VBjZR-0000St-AY for pgsql-odbc@arkaria.postgresql.org; Tue, 20 Aug 2013 10:53:53 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1VBjZQ-0001Uh-JT for pgsql-odbc@arkaria.postgresql.org; Tue, 20 Aug 2013 10:53:52 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VBjZO-0001UW-Lr for pgsql-odbc@postgresql.org; Tue, 20 Aug 2013 10:53:50 +0000 Received: from smtp-outbound-2.vmware.com ([208.91.2.13]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VBjZK-0004yx-EV for pgsql-odbc@postgresql.org; Tue, 20 Aug 2013 10:53:48 +0000 Received: from sc9-mailhost3.vmware.com (sc9-mailhost3.vmware.com [10.113.161.73]) by smtp-outbound-2.vmware.com (Postfix) with ESMTP id 2279F283AC for ; Tue, 20 Aug 2013 03:53:45 -0700 (PDT) Received: from zcs-prod-ext-mta-1.vmware.com (zcs-prod-ext-mta-1.vmware.com [10.113.62.223]) by sc9-mailhost3.vmware.com (Postfix) with ESMTP id 1ACE44042F for ; Tue, 20 Aug 2013 03:53:45 -0700 (PDT) Received: from zcs-prod-ext-mta-1.vmware.com (localhost.localdomain [127.0.0.1]) by zcs-prod-ext-mta-1.vmware.com (Postfix) with ESMTP id 3DF89120031 for ; Tue, 20 Aug 2013 04:00:28 -0700 (PDT) Received: from [192.168.1.90] (zimbra-prod-ext-proxy-vip.vmware.com [10.113.63.87]) by zcs-prod-ext-mta-1.vmware.com (Postfix) with ESMTPSA for ; Tue, 20 Aug 2013 04:00:27 -0700 (PDT) Message-ID: <52134AB6.2050301@vmware.com> Date: Tue, 20 Aug 2013 13:53:42 +0300 From: Heikki Linnakangas Organization: VMware User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.12) Gecko/20130116 Icedove/10.0.12 MIME-Version: 1.0 To: "pgsql-odbc@postgresql.org" Subject: Removing support for < 7.4 servers Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -7.0 (-------) 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 Hi, I've been browsing the code to figure out how we could use protocol-level cursors, instead of DECLARE/FETCH, to make the default behavior of the driver nicer. However, all the different ways a query can be prepared and executed is making my head explode. The driver supports many completely obsoleted ways to do things, for the sake of supporting 7.3 era servers which didn't support the extended query protocol. There is even some code to support 6.2-era servers. I'd like to rip out all the support for pre-7.4 servers, including protocol version 2, to simplify the code. Any objections? If someone is running a really old server version, I think it's fair to insist that they also use a somewhat old version of the driver. (the only thing anyone should be doing with 7.3 servers today is pg_dump, to be honest) I pushed a patch to github to do that, to see what the effect is to the code: https://github.com/hlinnaka/psqlodbc/commit/d5cbe6e62a72d87200217b73360a2c515a2fec79 $ git diff --stat master..require74 columninfo.c | 51 ++- columninfo.h | 2 +- connection.c | 766 +++++++++---------------------------- connection.h | 60 +-- convert.c | 235 ++---------- descriptor.c | 10 - dlg_specific.c | 82 ++-- dlg_specific.h | 8 +- dlg_wingui.c | 24 -- execute.c | 54 +-- info.c | 1148 +++++++++++++++++--------------------------------------- info30.c | 47 +-- misc.c | 4 +- multibyte.c | 33 +- odbcapi.c | 6 +- odbcapiw.c | 3 +- options.c | 5 - parse.c | 90 ++--- pgtypes.c | 43 +-- psqlodbc.h | 9 - psqlodbc.rc | 22 -- qresult.c | 113 ++---- resource.h | 5 - results.c | 167 ++++----- socket.c | 34 +- socket.h | 3 - statement.c | 39 +- statement.h | 6 - 28 files changed, 784 insertions(+), 2285 deletions(-) That's just the beginning though. I think we can get rid of much of the "premature execution" stuff, replacing it with the v3 protocol-level Describe functionality. The driver already uses that in many cases, but not all. That requires some more investigation and thorough testing of all the corner cases, though. Timingwise, I'm thinking we would do this in the first 9.4 version of the driver. The server guys will put out the 9.3 release in the next couple of weeks, so we should put out a stable 9.3 version of the ODBC driver very soon. But after that, we can do more drastic changes again. - Heikki -- Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-odbc