From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Олег Самойлов <splarv@ya.ru>
To: pgsql-generallists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: stable for each row before insert trigger
Date: Thu, 17 Oct 2019 16:41:58 -0700
Message-ID: <e5ab4d39-5ea5-1124-cd05-e6a497fd0311@aklaver.com> (raw)
In-Reply-To: <925B864A-0C60-4A2A-9072-88FB5501323F@ya.ru>
References: <925B864A-0C60-4A2A-9072-88FB5501323F@ya.ru>
On 10/17/19 4:31 PM, Олег Самойлов wrote:
> Hi all.
>
> According to documentation the words "VOLATILE, STABLE, IMMUTABLE" is somehow useful with trigger functions, for instance mentioned that the AFTER INSERT trigger should be VOLATILE. The question is how this words affect a for each row before insert trigger? Can be some optimisation here?
>
>
https://www.postgresql.org/docs/11/xfunc-volatility.html
--
Adrian Klaver
adrian.klaver@aklaver.com
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: adrian.klaver@aklaver.com, splarv@ya.ru
Subject: Re: stable for each row before insert trigger
In-Reply-To: <e5ab4d39-5ea5-1124-cd05-e6a497fd0311@aklaver.com>
References: <925B864A-0C60-4A2A-9072-88FB5501323F@ya.ru> <e5ab4d39-5ea5-1124-cd05-e6a497fd0311@aklaver.com>
* 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