Skip site navigation (1) Skip section navigation (2)

Finding the pqlib version

From: Christoph Zwerschke <cito(at)online(dot)de>
To: pgsql-interfaces(at)postgresql(dot)org
Subject: Finding the pqlib version
Date: 2006-02-11 10:59:37
Message-ID: (view raw or whole thread)
Lists: 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:

   c = PQgetCancel(conn)
   PQCancel(c, errbuf, 256)

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

-- Christoph


pgsql-interfaces by date

Next:From: Greg Sabino MullaneDate: 2006-02-11 12:57:36
Subject: Re: Finding the pqlib version
Previous:From: Michael MeskesDate: 2006-02-09 08:14:56
Subject: Re: [BUGS] BUG #2171: Differences compiling plpgsql in ecpg and psql

Privacy Policy | About PostgreSQL
Copyright © 1996-2015 The PostgreSQL Global Development Group