public inbox for [email protected]
help / color / mirror / Atom feedFrom: Roger Mason <[email protected]>
To: pgsql-novice <[email protected]>
Subject: Re: triggers and parameters
Date: Sun, 22 Aug 2021 09:00:26 -0230
Message-ID: <[email protected]> (raw)
In-Reply-To: <CAKFQuwaCBSS0BGyWpk7wNDjnKOmse0JGYnGZgze=Dx4GefWFnw@mail.gmail.com>
References: <[email protected]>
<CAKFQuwaCBSS0BGyWpk7wNDjnKOmse0JGYnGZgze=Dx4GefWFnw@mail.gmail.com>
David G. Johnston writes:
> If jid is on the table "results" then you are good [1]. If not, how
> exactly would expect that to work?
>
> https://www.postgresql.org/docs/current/plpgsql-trigger.html#PLPGSQL-DML-TRIGGER
OK, I think I understand better now. The NEW record holds the new data
and the trigger function can extract the items it needs from that
record.
Thanks - inviting me to read the docs more carefully was just what I
needed.
Roger
view thread (3+ messages)
reply
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 using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected]
Subject: Re: triggers and parameters
In-Reply-To: <[email protected]>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox