Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Vpkip-0002Tl-IO for pgsql-odbc@arkaria.postgresql.org; Sun, 08 Dec 2013 20:12:59 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Vpkip-0000jn-1G for pgsql-odbc@arkaria.postgresql.org; Sun, 08 Dec 2013 20:12:59 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Vpkio-0000jg-6U for pgsql-odbc@postgresql.org; Sun, 08 Dec 2013 20:12:58 +0000 Received: from smtp-outbound-2.vmware.com ([208.91.2.13]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Vpkie-0008UH-Tl for pgsql-odbc@postgresql.org; Sun, 08 Dec 2013 20:12:56 +0000 Received: from sc9-mailhost1.vmware.com (sc9-mailhost1.vmware.com [10.113.161.71]) by smtp-outbound-2.vmware.com (Postfix) with ESMTP id 7DFF09AF79; Sun, 8 Dec 2013 12:12:44 -0800 (PST) Received: from zcs-prod-ext-mta-1.vmware.com (zcs-prod-ext-mta-1.vmware.com [10.113.62.223]) by sc9-mailhost1.vmware.com (Postfix) with ESMTP id 7A656184EF; Sun, 8 Dec 2013 12:12:44 -0800 (PST) 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 AA9C212002F; Sun, 8 Dec 2013 12:13:14 -0800 (PST) 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; Sun, 8 Dec 2013 12:13:11 -0800 (PST) Message-ID: <52A4D2B7.4010601@vmware.com> Date: Sun, 08 Dec 2013 22:12:39 +0200 From: Heikki Linnakangas Organization: VMware User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20131005 Icedove/17.0.9 MIME-Version: 1.0 To: Pavel Raiskup CC: Boszormenyi Zoltan , pgsql-odbc@postgresql.org Subject: Re: Problems with linking against PostgreSQL 8.4 References: <1875942.Ze3nnLVyR1@nb.usersys.redhat.com> <1432784.TsNMmySNEU@nb.usersys.redhat.com> <52A23D8C.8030700@vmware.com> <2503058.xKqvre6q2C@nb.usersys.redhat.com> In-Reply-To: <2503058.xKqvre6q2C@nb.usersys.redhat.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: 3.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 On 12/07/2013 11:40 AM, Pavel Raiskup wrote: > On Friday, December 06, 2013 23:11:40 Heikki Linnakangas wrote: >> On 12/06/2013 08:42 PM, Pavel Raiskup wrote: >>>>> I see that the symbol was added to PostgreSQL project in ~2010 and it >>>>> seems to be a problem. Should I expect that newer drivers are able to be >>>>> run against older (still supported by PostgreSQL community) PostgreSQL >>>>> server, namely 8.4.13? >>>> >>>> You need to compile against a newer libpq but after that, >>>> you can connect to an older server. >>> >>> Ah yes, that would be possible, thanks! But still, if that is expected - >>> we should at least check older libpq's via configure.ac and blacklist >>> them, or? >> >> Yeah, a configure test would be nice. Patches are welcome ;-) > > I'll be glad, just to make it clear :). Do you want remove support for > libpq 8.4 completely or make configure check for PQconnectdbParams (to > make the code work without PQconnectdbParams)? The later makes more sense > to me as 8.4 is still not dead (and will probably exist in REL8_4_STABLE > branch some time) Actually, now that I look closer into that, the situation is a bit messy. There's a runtime check in loadlib.c, which tests if the version of libpq being used has the PQconnectdbParams() function. But we still link against libpq normally, so the library still won't load if that function isn't present, even though we have the code in place to check and refrain from actually calling it. So that's a bit broken. But even more funnily, the only caller of PQconnectdbParams() is actually dead code (connection.c): > if (FALSE && connect_with_param_available()) > { > const char *opts[PROTOCOL3_OPTS_MAX], *vals[PROTOCOL3_OPTS_MAX]; > > protocol3_opts_array(self, opts, vals, TRUE, sizeof(opts) / sizeof(opts[0])); > pqconn = CALL_PQconnectdbParams(opts, vals, &libpqLoaded); > } > else > { So we don't actually ever use PQconnectdbParams() for anything. Want to take a stab at cleaning up that mess? - Heikki -- Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-odbc