Finding the pqlib version

Поиск
Список
Период
Сортировка
От Christoph Zwerschke
Тема Finding the pqlib version
Дата
Msg-id 43EDC399.6060203@online.de
обсуждение исходный текст
Ответы Re: Finding the pqlib version  ("Greg Sabino Mullane" <greg@turnstep.com>)
Re: Finding the pqlib version  (Peter Eisentraut <peter_e@gmx.net>)
Re: Finding the pqlib version  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-interfaces
I want to add the PQCancel() functionality to PyGreSQL.
Until now, PyGreSQL works with PostgreSQL 7.3+, but
unfortunately, PQCancel() is only available from 8.0+.

In order to not break compilation of PyGreSQL on systems with PG7,
I would like to do something like the following:

#if PQLIB_VERSION_MAJOR < 8  PQRequestCancel(conn)
#else  c = PQgetCancel(conn)  PQCancel(c, errbuf, 256)  PQfreeCancel(c)
#end

However, there is no such thing as "PQLIB_VERSION_MAJOR".
Anything else I could query instead?

-- Christoph



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

Предыдущее
От: Michael Meskes
Дата:
Сообщение: Re: [BUGS] BUG #2171: Differences compiling plpgsql in ecpg and psql
Следующее
От: "Greg Sabino Mullane"
Дата:
Сообщение: Re: Finding the pqlib version