Asynchronous Trigger? - Mailing list pgsql-general

From Cory Tucker
Subject Asynchronous Trigger?
Date
Msg-id CAG_=8kAdbc_DoJWy11xh5J8b+v-ZWSt3Ty-1Ffdn4scgq3wK6Q@mail.gmail.com
Whole thread Raw
Responses Re: Asynchronous Trigger?  (Laurenz Albe <laurenz.albe@cybertec.at>)
Re: Asynchronous Trigger?  (Adam Tauno Williams <awilliam@whitemice.org>)
Re: Asynchronous Trigger?  (Merlin Moncure <mmoncure@gmail.com>)
List pgsql-general
Is it possible to have the execution of a trigger (or any function) not block the completion of the statement they are associated with?

A pattern I had hoped to implement was to do a quick update of rows that signaled they needed attention, and then an async per-row trigger would come and do the maintenance (in this case, make an expensive materialized view).

Any suggestions welcome.

thanks!
--Cory

pgsql-general by date:

Previous
From: Thiemo Kellner
Date:
Subject: dblink: could not send query: another command is already in progress
Next
From: Ted Filmore
Date:
Subject: Autovacuum behavior with rapid insert/delete 9.6