Re: Rules and Command Status - update/insert/delete rule with series of commands in action

From: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
To: "johnlumby(at)hotmail(dot)com" <johnlumby(at)hotmail(dot)com>, pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: Rules and Command Status - update/insert/delete rule with series of commands in action
Date: 2024-05-30 21:19:52
Message-ID: d9633950-7f00-49c2-9f74-3b2b1ae0fce0@aklaver.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 5/30/24 11:32, johnlumby(at)hotmail(dot)com wrote:

> Any thoughts?      Any rationales one way or the other?    Any interest
> in perhaps providing a choice via a configuration parameter?

1) As to using rules, stop now before you invest the time to find out is
a road you don't want to go down.

2) Use INSTEAD OF triggers:

https://www.postgresql.org/docs/current/sql-createtrigger.html

>
>
> Cheers, John Lumby
>
>
>

--
Adrian Klaver
adrian(dot)klaver(at)aklaver(dot)com

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Wong, Kam Fook (TR Technology) 2024-05-30 21:27:56 How to delete column level Stats/Histogram
Previous Message David G. Johnston 2024-05-30 20:56:06 Re: Rules and Command Status - update/insert/delete rule with series of commands in action