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

2010-11-12 Thread Михаил Филоненко
Thanks. But also I want to use postgresql and gtk with python or with c. I think, I need to make something like QSocketNotifier with callbacks instead of signals/slots. Well, why does libpq accumulate notifi and commit developer to create loop? select() PQconsumeInput(conn) while ((notify = P

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

2010-11-11 Thread Vick Khera
On Wed, Nov 10, 2010 at 5:20 PM, Tom Lane wrote: > 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

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

2010-11-10 Thread Steve Atkins
On Nov 10, 2010, at 4:30 PM, Daniel Verite wrote: > Filonenko Michael wrote: > >> 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.

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

2010-11-10 Thread Daniel Verite
Filonenko Michael wrote: > 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 mecha

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

2010-11-10 Thread Tom Lane
"Filonenko Michael" 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.

[GENERAL] NOTIFY/LISTEN why is not a callback as notice processing.

2010-11-10 Thread Filonenko Michael
Hello. 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? -- With be