On Tue, Feb 28, 2012 at 17:41, Daniele Varrazzo <[email protected]> wrote: > On Tue, Feb 28, 2012 at 2:15 PM, Marti Raudsepp <[email protected]> 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 -- Sent via pgsql-general mailing list ([email protected]) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general
