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

From Magnus Hagander
Subject Re: queriing the version of libpq
Date
Msg-id AANLkTim=tdZ5EP1BL_J=N_opzgBrZqejVk6OnfqY83BR@mail.gmail.com
Whole thread Raw
In response to Re: queriing 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 16:32, Greg Sabino Mullane <greg@turnstep.com> wrote:
>> My question: Which way is available to query the linked libpq version?
>
> That's information your driver should be supplying. For example, in
> Perl (DBD::Pg), you would say
>
> if ($dbh->{pg_lib_version} >= 90000) {
>
> I'd raise a bug with psycopg2 if it does not provide that information.

How does the driver figure it out?

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

pgsql-general by date:

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