X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 86590D7AC1 for ; Wed, 7 Sep 2005 11:48:57 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 46061-08 for ; Wed, 7 Sep 2005 14:48:52 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id C13CAD6E15 for ; Wed, 7 Sep 2005 11:48:54 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id j87EmxJw027210; Wed, 7 Sep 2005 10:48:59 -0400 (EDT) To: "Dave Page" Cc: "Scot Loach" , pgsql-odbc@postgresql.org, "Anoop Kumar" Subject: Re: notice handler in libpq-based driver In-reply-to: References: Comments: In-reply-to "Dave Page" message dated "Wed, 07 Sep 2005 09:38:06 +0100" Date: Wed, 07 Sep 2005 10:48:59 -0400 Message-ID: <27209.1126104539@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.006 required=5 tests=[AWL=0.006] X-Spam-Level: X-Archive-Number: 200509/88 X-Sequence-Number: 5986 "Dave Page" writes: > No, I'm not sure how to handle this either - the old driver handled it > in the socket code along with other messages. I'm not sure how, with the > noticeProcessor, we would associate notices with specific statements or > connections. IIRC, the notice processor is passed a void pointer that you specify when you set up the notice hook. Typically you'd give it a pointer to your own data structure describing the connection. It should be able to find out whatever it needs to know from there. regards, tom lane