Re: NOTIFY/LISTEN why is not a callback as notice processing.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Filonenko Michael" <filonenko(dot)mikhail(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: NOTIFY/LISTEN why is not a callback as notice processing.
Date: 2010-11-10 22:20:31
Message-ID: 11971.1289427631@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Filonenko Michael" <filonenko(dot)mikhail(at)gmail(dot)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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2010-11-10 23:54:09 Re: dblink_get_result issue
Previous Message Robert Treat 2010-11-10 21:40:20 Re: REINDEX requirement?