Re: NOTIFY/LISTEN why is not a callback as notice processing. - Mailing list pgsql-general

From Tom Lane
Subject Re: NOTIFY/LISTEN why is not a callback as notice processing.
Date
Msg-id 11971.1289427631@sss.pgh.pa.us
Whole thread Raw
In response to NOTIFY/LISTEN why is not a callback as notice processing.  ("Filonenko Michael" <filonenko.mikhail@gmail.com>)
Responses Re: NOTIFY/LISTEN why is not a callback as notice processing.
List pgsql-general
"Filonenko Michael" <filonenko.mikhail@gmail.com> writes:
> I create simple mechanism to inform user about something in database
> triggers. In my front-end I use PQsetNoticeReceiver, and display messages
> in QTextEdit.
> I think about multi-user environment. I read about NOTIFY/LISTEN, but find
> no callback mechanism. Is it planning?

Not in libpq.  libpq is just a passive library, it can't cause actions
to happen when you aren't calling it.  So there's no point in a
callback: you might as well just test for occurrences of a NOTIFY at
times when you're prepared to handle it.

            regards, tom lane

pgsql-general by date:

Previous
From: "Filonenko Michael"
Date:
Subject: NOTIFY/LISTEN why is not a callback as notice processing.
Next
From: Tom Lane
Date:
Subject: Re: dblink_get_result issue