Search Postgresql Archives

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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




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 = PQnotifies(conn)) != NULL)
// show notify

Interface for notice processing provided by libpq is simpler. Notice and notifies veryÂ

receiver(connection, message) {// show notify
}
PQsetNoticeReceiver(receiver);



--
With best regards, Michael Filonenko


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux