Re: Issue with libpq < 8.4 - Mailing list pgadmin-hackers

From Magnus Hagander
Subject Re: Issue with libpq < 8.4
Date
Msg-id AANLkTi=e206Co6gGC=Bami14zjaJ-hAK4gf_RGc_KYNg@mail.gmail.com
Whole thread Raw
In response to Re: Issue with libpq < 8.4  (Dave Page <dpage@pgadmin.org>)
Responses Re: Issue with libpq < 8.4  (Dave Page <dpage@pgadmin.org>)
List pgadmin-hackers
On Tue, Aug 24, 2010 at 1:45 PM, Dave Page <dpage@pgadmin.org> wrote:
> On Tue, Aug 24, 2010 at 12:41 PM, Magnus Hagander <magnus@hagander.net>
> wrote:
>> So can't we do something like:
>>
>> #ifdef HAVE_CONNINFO_PARSE
>> if (conninfoparse_shows_we_have_application_name_support)
>>   use connstr_with_appname;
>> else
>>   use connstr_without_appname;
>> #else
>>   use connstr_without_appname
>> #endif
>>
>> ? That way it should still work with older libpq, just not set
>> application_name...
>
> That would probably work. We should probably have a runtime check for
> Windows, as we do for the EDB libpq functions.

Yeah, that's probably a good idea.

Actually, what happens if we try to use PQconnect() with
applicaiton_name on an older version? I assume it fails, and not just
works and ignores it?


> When can I expect the patch?

What's with you edb folks, trying to get me to write your patches?
Yesterday Haas, today you... Shall I expect a mail from Ed?


--
 Magnus Hagander
 Me: http://www.hagander.net/
 Work: http://www.redpill-linpro.com/

pgadmin-hackers by date:

Previous
From: Dave Page
Date:
Subject: Re: Issue with libpq < 8.4
Next
From: Dave Page
Date:
Subject: Re: Issue with libpq < 8.4