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

From Dave Page
Subject Re: Issue with libpq < 8.4
Date
Msg-id AANLkTi=5Ww76BpOn-FBNvd0gZixZTdt4Yk=Fdex4DC37@mail.gmail.com
Whole thread Raw
In response to Re: Issue with libpq < 8.4  (Magnus Hagander <magnus@hagander.net>)
Responses Re: Issue with libpq < 8.4  (Magnus Hagander <magnus@hagander.net>)
List pgadmin-hackers
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.

When can I expect the patch?

--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise Postgres Company

pgadmin-hackers by date:

Previous
From: Magnus Hagander
Date:
Subject: Re: Issue with libpq < 8.4
Next
From: Magnus Hagander
Date:
Subject: Re: Issue with libpq < 8.4