Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XyOoP-0002bx-6R for pgsql-odbc@arkaria.postgresql.org; Tue, 09 Dec 2014 17:43:01 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XyOoO-0007tQ-Mu for pgsql-odbc@arkaria.postgresql.org; Tue, 09 Dec 2014 17:43:00 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XyOoN-0007s8-EC for pgsql-odbc@postgresql.org; Tue, 09 Dec 2014 17:42:59 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XyOoK-0004IB-6J for pgsql-odbc@postgresql.org; Tue, 09 Dec 2014 17:42:57 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id sB9HgnwR005769; Tue, 9 Dec 2014 12:42:49 -0500 From: Tom Lane To: Heikki Linnakangas cc: Michael Paquier , Craig Ringer , "pgsql-odbc@postgresql.org" Subject: Re: Let's use libpq for everything In-reply-to: <5487215E.7040909@vmware.com> References: <5457B9E9.5040403@vmware.com> <546AEECB.1030602@2ndquadrant.com> <54774DCA.2020107@vmware.com> <5487215E.7040909@vmware.com> Comments: In-reply-to Heikki Linnakangas message dated "Tue, 09 Dec 2014 18:20:46 +0200" Date: Tue, 09 Dec 2014 12:42:49 -0500 Message-ID: <5768.1418146969@sss.pgh.pa.us> 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 Heikki Linnakangas writes: > On 11/28/2014 09:09 AM, Michael Paquier wrote: >> 5) In lobj.c, there are mentions of using lo_lseek64 and lo_tell64. I >> am not sure that this is a good thing at this state: those functions >> have been added in 9.3 and we still have many users with PG <= 9.2. It >> may be better to add a note about updating to those functions when the >> minimum support requirement is 9.3. > Well, it's just a comment. Not qualified to review this patch in total, but as far as that goes: libpq provides an inexpensive way to check the server version, so you could easily have a code path using the newer functions when available. The big problem is that odbc_lo_lseek/odbc_lo_tell are declared as taking/returning int4 not int8; unless you can widen those values without breaking the library ABI, there is zero point in using the newer server-side functions. regards, tom lane -- Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-odbc