Re: queriing the version of libpq

From: "Greg Sabino Mullane" <greg(at)turnstep(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: queriing the version of libpq
Date: 2010-10-05 14:32:11
Message-ID: f29d17cf5ceaf81fb3ae45f5151168a3@biglumber.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers


-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160

> 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.

- --
Greg Sabino Mullane greg(at)turnstep(dot)com
PGP Key: 0x14964AC8 201010051030
http://biglumber.com/x/web?pk=2529DF6AB8F79407E94445B4BC9B906714964AC8
-----BEGIN PGP SIGNATURE-----

iEYEAREDAAYFAkyrNskACgkQvJuQZxSWSsiW7wCfYge62y175Xtsk4drGbnt7UU5
0R4Ani1gxDhNA0xdHoq+xxxROjuC4wh+
=n33y
-----END PGP SIGNATURE-----

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Magnus Hagander 2010-10-05 14:38:21 Re: queriing the version of libpq
Previous Message Jeff Ross 2010-10-05 14:19:00 Re: psql \q hang

Browse pgsql-hackers by date

  From Date Subject
Next Message Simon Riggs 2010-10-05 14:33:04 Re: standby registration (was: is sync rep stalled?)
Previous Message Tom Lane 2010-10-05 14:29:26 Re: A quick warning on the win32 build scripts