Re: querying the version of libpq

Поиск
Список
Период
Сортировка
От Massa, Harald Armin
Тема Re: querying the version of libpq
Дата
Msg-id AANLkTik_o=pxq9oVUnZR9ZVYzwXJJ_v3LRyL+V8p_PO-@mail.gmail.com
обсуждение исходный текст
Ответ на Re: querying the version of libpq  (Peter Geoghegan <peter.geoghegan86@gmail.com>)
Список pgsql-general
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

В списке pgsql-general по дате отправления:

Предыдущее
От: "Greg Sabino Mullane"
Дата:
Сообщение: Re: querying the version of libpq
Следующее
От: Dennis Gearon
Дата:
Сообщение: Basic SQL question and kudos