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

Поиск
Список
Период
Сортировка
От Marti Raudsepp
Тема Re: How to get a signal from the database when a INSERT INTO is done?
Дата
Msg-id CABRT9RAm+dc7YkuJFrnKh7VJJVZ=oCG22k-iiZ7d2wgdvmHgZw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: How to get a signal from the database when a INSERT INTO is done?  (Daniele Varrazzo <daniele.varrazzo@gmail.com>)
Ответы Re: How to get a signal from the database when a INSERT INTO is done?  (Daniele Varrazzo <daniele.varrazzo@gmail.com>)
Список pgsql-general
On Tue, Feb 28, 2012 at 17:41, Daniele Varrazzo
<daniele.varrazzo@gmail.com> wrote:
> On Tue, Feb 28, 2012 at 2:15 PM, Marti Raudsepp <marti@juffo.org> wrote:
>> On the Python end, you have to call psycopg2 connection.poll() method
>> periodically or in response to select() activation
>> There's an example here:
>> http://initd.org/psycopg/docs/advanced.html#async-notify

> Using an asynchronous IO-driven framework such as eventlet or gevent
> you don't even need to poll the connection to look for events

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

Regards,
Marti

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

Предыдущее
От: Daniele Varrazzo
Дата:
Сообщение: Re: How to get a signal from the database when a INSERT INTO is done?
Следующее
От: Daniele Varrazzo
Дата:
Сообщение: Re: How to get a signal from the database when a INSERT INTO is done?