From: Jonathan Gardner <jgardner@jonathangardner.net>
To: pgsql-interfaces@postgresql.org
Subject: PQsetNoticeReceiver issues
Date: Sun, 18 Jan 2004 00:27:29 -0800
Message-ID: <200401180027.35723.jgardner@jonathangardner.net> (raw)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I'm writing a onion-skin thick wrapper around the libpq library in Python.
This is my way of getting back into C and also getting a lot more
familiar with PostgreSQL.
I've run into a conundrum with the PQsetNoticeReceiver function call. How
do you set it back to the original default? How do you call the
appropriate PQnoticeProcessor as well?
I expected to find a function in the library like PQdefaultNoticeReceiver,
but either I'm looking at the wrong file or it doesn't exist. I also
expected to see PQdefaultNoticeProcessor, but nothing turned up. While
the documentation contains a neat implementation of a default
PQnoticeProcessor, it doesn't seem to be defined in the library.
Another issue that I am running into is that while the documentation
claims that PQnoticeReceivers may call PQnoticeProcessors, it doesn't
mention how this is to be done. How do I find out which PQnoticeProcessor
is connected to a PGresult?
I though that I could perhaps access it directly by including libpq-int.h,
but that seems to be missing from 7.4 now. (Should the note about not
using libpq-int.h in the documentation be removed now that it isn't there
anymore?)
- --
Jonathan Gardner
jgardner@jonathangardner.net
Live Free, Use Linux!
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)
iD8DBQFACkN1WgwF3QvpWNwRAnzxAKCHDTprHc0d7aC6gRzUleU6zgy59wCfe8/v
0E9jN6p+s8cceiBDUbc9wGE=
=gvi9
-----END PGP SIGNATURE-----
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: jgardner@jonathangardner.net
Subject: Re: PQsetNoticeReceiver issues
In-Reply-To: <200401180027.35723.jgardner@jonathangardner.net>
* 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