From: Olleg Samoylov <splarv@ya.ru>
To: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: Asynchronous Trigger?
Date: Fri, 27 Apr 2018 13:46:29 +0300
Message-ID: <8172161524825989@web45j.yandex.ru> (raw)
References: <CAG_=8kAdbc_DoJWy11xh5J8b+v-ZWSt3Ty-1Ffdn4scgq3wK6Q@mail.gmail.com>
<div text="#000000" bgcolor="#FFFFFF">
Try to look at PGQ from SkyTools.<br />
<br />
<div>On 2018-03-30 01:29, Cory Tucker wrote:<br />
</div>
<blockquote type="cite" cite="mid:CAG_=8kAdbc_DoJWy11xh5J8b+v-ZWSt3Ty-1Ffdn4scgq3wK6Q@mail.gmail.com">
<div dir="ltr">
<div>Is it possible to have the execution of a trigger (or any
function) not block the completion of the statement they are
associated with?</div>
<div><br />
</div>
<div>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).</div>
<div><br />
</div>
<div>Any suggestions welcome.</div>
<div><br />
</div>
<div>thanks!</div>
<div>--Cory</div>
</div>
</blockquote>
<br />
</div>
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: splarv@ya.ru
Subject: Re: Asynchronous Trigger?
In-Reply-To: <8172161524825989@web45j.yandex.ru>
References: <CAG_=8kAdbc_DoJWy11xh5J8b+v-ZWSt3Ty-1Ffdn4scgq3wK6Q@mail.gmail.com> <8172161524825989@web45j.yandex.ru>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox