From: Horst Herb <subscriptions@gnumed.net>
To: pgsql-interfaces@postgresql.org
Subject: Re: listen/notify with python pgdb
Date: Wed, 12 Mar 2003 16:28:56 +1100
Message-ID: <3E6EC598.4020600@gnumed.net> (raw)
In-Reply-To: <20030311121644.333cdfff.gry@ll.mit.edu>
References: <20030311121644.333cdfff.gry@ll.mit.edu>
george young wrote:
> [postgresql 7.3, python 2.3a1, pygresql-3.4-pre021201]
> Does anyone use listen/notify with pgdb, the python DB-API
> interface? I've done a crude hack, but maybe someone has a nicer one?
we are doing it quite extensively in our "gnumed" project, and it works
to our satisfaction.
We run the "listener" in a background thread which then posts messages
on receiving backend notifications.
However, we are using the pyPgSql python adapter, not the pgdb one.
Have a look at
http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/gnumed/gnumed/gnumed/client/python-common/gmBacke...
Horst
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-interfaces@postgresql.org
Cc: subscriptions@gnumed.net
Subject: Re: listen/notify with python pgdb
In-Reply-To: <3E6EC598.4020600@gnumed.net>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox