Re: NOTIFY in asynchronous mode

From: Daniele Varrazzo <daniele(dot)varrazzo(at)gmail(dot)com>
To: Tobias Oberstein <tobias(dot)oberstein(at)tavendo(dot)de>
Cc: "psycopg(at)postgresql(dot)org" <psycopg(at)postgresql(dot)org>
Subject: Re: NOTIFY in asynchronous mode
Date: 2011-11-04 20:23:33
Message-ID: CA+mi_8ZM9-oPc3Ocw1ODOqSMDjffT+2p461fNWPgxxqwgBsi4w@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: psycopg

On Fri, Nov 4, 2011 at 7:12 PM, Tobias Oberstein
<tobias(dot)oberstein(at)tavendo(dot)de> wrote:

> is it possible to use notification (sent via NOTIFY from Postgres) in asynchronous mode?

Yes: you should register the connection's file descriptor in the
twisted reactor so that you can be notified by the kernel when the
server sends you a notification.

-- Daniele

In response to

Responses

Browse psycopg by date

  From Date Subject
Next Message Jan Urbański 2011-11-05 00:03:53 Re: NOTIFY in asynchronous mode
Previous Message Tobias Oberstein 2011-11-04 19:12:32 NOTIFY in asynchronous mode