Re: querying the version of libpq

Massa, Harald Armin <chef@ghum.de>

From: "Massa, Harald Armin" <chef@ghum.de>
To: Peter Geoghegan <peter.geoghegan86@gmail.com>
Cc: pgsql-general@postgresql.org
Date: 2010-10-05T16:15:07Z
Lists: pgsql-hackers
>
> I would imagine that most libpq wrapping drivers use libpq's
> PQserverVersion(), which returns an integer that looks like 90000.
>
> exactly that is exposed as cn.server_version property of the psycopg2
connection object; but it does not help, as a 8.4libpq happily connects to a
9.0 server... for some values of happy :)

Harald


-- 
GHUM GmbH
Harald Armin Massa
Spielberger Straße 49
70435 Stuttgart
0173/9409607

Amtsgericht Stuttgart, HRB 734971
-
persuadere.
et programmare