Re: querying the version of libpq

From: Magnus Hagander <magnus(at)hagander(dot)net>
To: Greg Sabino Mullane <greg(at)turnstep(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: querying the version of libpq
Date: 2010-10-05 20:44:48
Message-ID: AANLkTim-xsim6CVVxsS5kvWa3kffF1UTx0=tvc3P=ROF@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

On Tue, Oct 5, 2010 at 22:39, Greg Sabino Mullane <greg(at)turnstep(dot)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/

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Greg Sabino Mullane 2010-10-05 20:53:03 Re: querying the version of libpq
Previous Message Dmitriy Igrishin 2010-10-05 20:41:49 Re: querying the version of libpq

Browse pgsql-hackers by date

  From Date Subject
Next Message Jeff Davis 2010-10-05 20:45:45 Re: Issues with Quorum Commit
Previous Message Josh Berkus 2010-10-05 20:43:20 Re: Issues with Quorum Commit