From: | "Massa, Harald Armin" <chef(at)ghum(dot)de> |
---|---|
To: | Peter Geoghegan <peter(dot)geoghegan86(at)gmail(dot)com> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: querying the version of libpq |
Date: | 2010-10-05 16:15:07 |
Message-ID: | AANLkTik_o=pxq9oVUnZR9ZVYzwXJJ_v3LRyL+V8p_PO-@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general 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
From | Date | Subject | |
---|---|---|---|
Next Message | Dennis Gearon | 2010-10-05 16:31:55 | Basic SQL question and kudos |
Previous Message | Greg Sabino Mullane | 2010-10-05 16:14:07 | Re: querying the version of libpq |
From | Date | Subject | |
---|---|---|---|
Next Message | Alvaro Herrera | 2010-10-05 16:15:45 | Re: pg_filedump for 9.0? |
Previous Message | Greg Sabino Mullane | 2010-10-05 16:14:07 | Re: querying the version of libpq |