pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Christoph Zwerschke <cito@online.de>
To: pgsql-interfaces@postgresql.org
Subject: Finding the pqlib version
Date: Sat, 11 Feb 2006 11:59:37 +0100
Message-ID: <43EDC399.6060203@online.de> (raw)

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




view thread (33+ messages)  latest in thread

Message-ID: <43EDC399.6060203@online.de>
Permalink:  ../43EDC399.6060203@online.de/
Also on:    postgresql.org/message-id/43EDC399.6060203@online.de

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: cito@online.de
  Subject: Re: Finding the pqlib version
  In-Reply-To: <43EDC399.6060203@online.de>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox