X-Original-To: pgsql-interfaces-postgresql.org@localhost.postgresql.org Received: from localhost (neptune.hub.org [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 06CC0D1DA7C for ; Sun, 18 Jan 2004 08:28:17 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 66359-03 for ; Sun, 18 Jan 2004 04:27:46 -0400 (AST) Received: from mail4.speakeasy.net (mail4.speakeasy.net [216.254.0.204]) by svr1.postgresql.org (Postfix) with ESMTP id 17271D1D552 for ; Sun, 18 Jan 2004 04:27:36 -0400 (AST) Received: (qmail 28030 invoked from network); 18 Jan 2004 08:27:37 -0000 Received: from atlas.jonathangardner.net (HELO jonathangardner.net) (jgardn@[66.92.192.166]) (envelope-sender ) by mail4.speakeasy.net (qmail-ldap-1.03) with RC4-MD5 encrypted SMTP for ; 18 Jan 2004 08:27:37 -0000 From: Jonathan Gardner To: pgsql-interfaces@postgresql.org Subject: PQsetNoticeReceiver issues Date: Sun, 18 Jan 2004 00:27:29 -0800 User-Agent: KMail/1.5.94 MIME-Version: 1.0 Content-Disposition: inline Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Message-Id: <200401180027.35723.jgardner@jonathangardner.net> X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200401/9 X-Sequence-Number: 4678 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I'm writing a onion-skin thick wrapper around the libpq library in Python.= =20 This is my way of getting back into C and also getting a lot more=20 familiar with PostgreSQL. I've run into a conundrum with the PQsetNoticeReceiver function call. How= =20 do you set it back to the original default? How do you call the=20 appropriate PQnoticeProcessor as well? I expected to find a function in the library like PQdefaultNoticeReceiver,= =20 but either I'm looking at the wrong file or it doesn't exist. I also=20 expected to see PQdefaultNoticeProcessor, but nothing turned up. While=20 the documentation contains a neat implementation of a default=20 PQnoticeProcessor, it doesn't seem to be defined in the library. Another issue that I am running into is that while the documentation=20 claims that PQnoticeReceivers may call PQnoticeProcessors, it doesn't=20 mention how this is to be done. How do I find out which PQnoticeProcessor= =20 is connected to a PGresult? I though that I could perhaps access it directly by including libpq-int.h,= =20 but that seems to be missing from 7.4 now. (Should the note about not=20 using libpq-int.h in the documentation be removed now that it isn't there= =20 anymore?) - --=20 Jonathan Gardner jgardner@jonathangardner.net Live Free, Use Linux! -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux) iD8DBQFACkN1WgwF3QvpWNwRAnzxAKCHDTprHc0d7aC6gRzUleU6zgy59wCfe8/v 0E9jN6p+s8cceiBDUbc9wGE=3D =3Dgvi9 -----END PGP SIGNATURE-----