Async triggers - Mailing list pgsql-general

From Peter
Subject Async triggers
Date
Msg-id 46040dc7$0$21942$834e42db@reader.greatnowhere.com
Whole thread Raw
Responses Re: Async triggers  (Martijn van Oosterhout <kleptog@svana.org>)
List 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

pgsql-general by date:

Previous
From: MargaretGillon@chromalloy.com
Date:
Subject: Re: shell script to SQL statement: `pg_dump | psql -U`
Next
From: Martijn van Oosterhout
Date:
Subject: Re: Async triggers