Re: How to get a signal from the database when a INSERT INTO is done?

Поиск
Список
Период
Сортировка
От hari.fuchs@gmail.com
Тема Re: How to get a signal from the database when a INSERT INTO is done?
Дата
Msg-id 87pqcyq5nk.fsf@hf.protecting.net
обсуждение исходный текст
Ответ на How to get a signal from the database when a INSERT INTO is done?  (Andre Lopes <lopes80andre@gmail.com>)
Список pgsql-general
Daniele Varrazzo <daniele.varrazzo@gmail.com> writes:

>> As mentioned above and as demonstrated in the example, select() also
>> does the job. Using such a fancy framework is usually an overkill.

> Yeah, the problem is usually if you have to do something else apart
> from listening from the notification. select() will block the entire
> application, so you would put it into a separate thread to have the
> app running on.

I don't know Python, but the C library function of select() has a
timeout parameter that can be set to 0.

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

Предыдущее
От: Clodoaldo Neto
Дата:
Сообщение: psql: invalid connection option "client_encoding"
Следующее
От:
Дата:
Сообщение: what Linux to run