From: | "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com> |
---|---|
To: | sud <suds1434(at)gmail(dot)com> |
Cc: | Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>, pgsql-general <pgsql-general(at)lists(dot)postgresql(dot)org> |
Subject: | Re: Trigger usecase |
Date: | 2024-07-30 20:28:35 |
Message-ID: | CAKFQuwakdL3D-0wkiou11ahxCtyMkCoraVZFu-bkmJ=NH8cJ2w@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Tue, Jul 30, 2024 at 11:46 AM sud <suds1434(at)gmail(dot)com> wrote:
>
> Not sure of the exact pros and cons, but we were following certain rules
> like , if it's business logic which needs to be implemented in Database,
> then it should not be done using triggers but rather should be done through
> database procedure/functions. Hope this understanding correct.
>
That is my personal take. For process-oriented stuff you can follow the
trail of calls all the way through to the end of the process and its final
result. With triggers you follow the trail to the insert/update/delete
then stop thinking that's it, while in reality it continues because you
have triggers performing yet more work.
David J.
From | Date | Subject | |
---|---|---|---|
Next Message | Adrian Klaver | 2024-07-30 21:11:28 | Re: Trigger usecase |
Previous Message | Adrian Klaver | 2024-07-30 18:50:48 | Re: Trigger usecase |