From: Heikki Linnakangas <hlinnakangas@vmware.com>
To: Pavel Raiskup <praiskup@redhat.com>
Cc: Boszormenyi Zoltan <zb@cybertec.at>
Cc: pgsql-odbc@postgresql.org
Subject: Re: Problems with linking against PostgreSQL 8.4
Date: Sun, 08 Dec 2013 22:12:39 +0200
Message-ID: <52A4D2B7.4010601@vmware.com> (raw)
In-Reply-To: <2503058.xKqvre6q2C@nb.usersys.redhat.com>
References: <1875942.Ze3nnLVyR1@nb.usersys.redhat.com>
<1432784.TsNMmySNEU@nb.usersys.redhat.com>
<52A23D8C.8030700@vmware.com>
<2503058.xKqvre6q2C@nb.usersys.redhat.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-odbc>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-odbc@postgresql.org
Cc: hlinnakangas@vmware.com, praiskup@redhat.com, zb@cybertec.at
Subject: Re: Problems with linking against PostgreSQL 8.4
In-Reply-To: <52A4D2B7.4010601@vmware.com>
References: <1875942.Ze3nnLVyR1@nb.usersys.redhat.com> <1432784.TsNMmySNEU@nb.usersys.redhat.com> <52A23D8C.8030700@vmware.com> <2503058.xKqvre6q2C@nb.usersys.redhat.com> <52A4D2B7.4010601@vmware.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox