pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Dave Page <dpage@vale-housing.co.uk>
Cc: Scot Loach <sloach@sandvine.com>
Cc: pgsql-odbc@postgresql.org
Cc: Anoop Kumar <anoopk@pervasive-postgres.com>
Subject: Re: notice handler in libpq-based driver
Date: Wed, 07 Sep 2005 10:48:59 -0400
Message-ID: <27209.1126104539@sss.pgh.pa.us> (raw)
In-Reply-To: <E7F85A1B5FF8D44C8A1AF6885BC9A0E4AC9F04@ratbert.vale-housing.co.uk>
References: <E7F85A1B5FF8D44C8A1AF6885BC9A0E4AC9F04@ratbert.vale-housing.co.uk>

"Dave Page" <dpage@vale-housing.co.uk> 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



view thread (4+ messages)  latest in thread

Message-ID: <27209.1126104539@sss.pgh.pa.us>
Permalink:  ../27209.1126104539@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/27209.1126104539@sss.pgh.pa.us

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-odbc@postgresql.org
  Cc: tgl@sss.pgh.pa.us, dpage@vale-housing.co.uk, sloach@sandvine.com, anoopk@pervasive-postgres.com
  Subject: Re: notice handler in libpq-based driver
  In-Reply-To: <27209.1126104539@sss.pgh.pa.us>
  References: <E7F85A1B5FF8D44C8A1AF6885BC9A0E4AC9F04@ratbert.vale-housing.co.uk> <27209.1126104539@sss.pgh.pa.us>

* 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