Re: querying the version of libpq - Mailing list pgsql-general

From Magnus Hagander
Subject Re: querying the version of libpq
Date
Msg-id AANLkTim-xsim6CVVxsS5kvWa3kffF1UTx0=tvc3P=ROF@mail.gmail.com
Whole thread Raw
In response to Re: querying the version of libpq  ("Greg Sabino Mullane" <greg@turnstep.com>)
Responses Re: querying the version of libpq  ("Greg Sabino Mullane" <greg@turnstep.com>)
List pgsql-general
On Tue, Oct 5, 2010 at 22:39, Greg Sabino Mullane <greg@turnstep.com> wrote:
>
>
>> The real problem is that neither of these can be trusted to tell you the
>> *library* version.  PQserverVersion() is something else altogether,
>> and I wouldn't want to assume that pg_config exactly matches the library
>> you're linked to --- if it's even present at all.
>
> Er...yes it will match exact...because we[1] get the location of the
> library files from pg_config as well. :) Handy little utility that.

How do you get pg_config to tell you which of the multiple versions of
libpq that may be installed on the machine you are actually linking
against?

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

pgsql-general by date:

Previous
From: Dmitriy Igrishin
Date:
Subject: Re: querying the version of libpq
Next
From: "Greg Sabino Mullane"
Date:
Subject: Re: querying the version of libpq