Python + listen/notify

From: Filipe Brandão <fg(dot)brandao(at)gmail(dot)com>
To: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Python + listen/notify
Date: 2012-07-10 22:56:19
Message-ID: F42B79DA-AFBE-41DB-A8AF-510F0EEAE460@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi all.
I needed to have a trigger firing after a commit, but allready realized it's not possible.
As i searched upon a solution i came across the LISTEN / NOTIFY. I haven't yet realized exactly what i can do with it, but can i use it to run a simple python script located out my DB?
Can't run it inside the DB since i need to do it after the completion of a few triggers (after commit).
Any help would be much appreciated!
Thanks in advance!

Sent from my iPad

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Andy Chambers 2012-07-10 23:23:49 Re: Sequence moves forward when failover is triggerred
Previous Message Tom Lane 2012-07-10 22:48:11 Re: Sequence moves forward when failover is triggerred