Async triggers

From: Peter <peter(at)greatnowhere(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Async triggers
Date: 2007-03-23 17:30:17
Message-ID: 46040dc7$0$21942$834e42db@reader.greatnowhere.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Is this possible in PG somehow? Basically I need to call web service
whenever new row is inserted in a table - the lookup takes time up to
10-15 seconds. Obviously I cant do this inside trigger proc as that
would delay inserts a lot. I suppose I could do a cron job to do
webservice lookups periodically, but that involves delay and added point
of failure (if cron process stops working for whatever reason). Ideally
async trigger proc would be the solution, but it seems I cant do
asynchronous execution in PG.

Thanks!
Peter

Responses

Browse pgsql-general by date

  From Date Subject
Next Message MargaretGillon 2007-03-23 17:32:28 Re: shell script to SQL statement: `pg_dump | psql -U`
Previous Message Jeff Davis 2007-03-23 17:03:07 Re: multi-row check constraints?