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

Поиск
Список
Период
Сортировка
От Михаил Филоненко
Тема Re: NOTIFY/LISTEN why is not a callback as notice processing.
Дата
Msg-id AANLkTin=W=PML=R14GEjS4yqamHjYZVjsSW1q64yRhoZ@mail.gmail.com
обсуждение исходный текст
Ответ на NOTIFY/LISTEN why is not a callback as notice processing.  ("Filonenko Michael" <filonenko.mikhail@gmail.com>)
Список pgsql-general

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

В списке pgsql-general по дате отправления:

Предыдущее
От: ray
Дата:
Сообщение: Help with Stack Builder
Следующее
От:
Дата:
Сообщение: Re: Instructions/status of modpglogger