Re: queriing 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: queriing the version of libpq
Date: 2010-10-05 14:38:21
Message-ID: AANLkTim=tdZ5EP1BL_J=N_opzgBrZqejVk6OnfqY83BR@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Greg Sabino Mullane 2010-10-05 15:33:15 Re: querying the version of libpq
Previous Message Greg Sabino Mullane 2010-10-05 14:32:11 Re: queriing the version of libpq

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2010-10-05 14:39:21 Re: leaky views, yet again
Previous Message Simon Riggs 2010-10-05 14:33:04 Re: standby registration (was: is sync rep stalled?)