Skip site navigation (1) Skip section navigation (2)

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

From: hubert depesz lubaczewski <depesz(at)depesz(dot)com>
To: Andre Lopes <lopes80andre(at)gmail(dot)com>
Cc: postgresql Forums <pgsql-general(at)postgresql(dot)org>
Subject: Re: How to get a signal from the database when a INSERT INTO is done?
Date: 2012-02-28 11:16:19
Message-ID: 20120228111619.GA17704@depesz.com (view raw or flat)
Thread:
Lists: pgsql-general
On Tue, Feb 28, 2012 at 11:07:47AM +0000, Andre Lopes wrote:
> Hi all,
> 
> I'm designing an application in Python and using PostgreSQL.
> 
> This is a mixed question Python/PostgreSQL... I need to get a signal
> in my python application when a new insert is done. How can this be
> done, any clues?

listen/notify
http://www.postgresql.org/docs/current/interactive/sql-listen.html
http://www.postgresql.org/docs/current/interactive/sql-notify.html

Best regards,

depesz

-- 
The best thing about modern society is how easy it is to avoid contact with it.
                                                             http://depesz.com/

In response to

pgsql-general by date

Next:From: Clodoaldo NetoDate: 2012-02-28 13:33:49
Subject: Error installing postgresq91-python package
Previous:From: Andre LopesDate: 2012-02-28 11:07:47
Subject: How to get a signal from the database when a INSERT INTO is done?

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group