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