From: | "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com> |
---|---|
To: | Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com> |
Cc: | stan <stanb(at)panix(dot)com>, pgsql-general <pgsql-general(at)postgresql(dot)org>, Pg Docs <pgsql-docs(at)lists(dot)postgresql(dot)org> |
Subject: | Re: Detecting which columns a query will modify in a function called by a trigger |
Date: | 2020-10-02 20:33:44 |
Message-ID: | CAKFQuwbtcpu2-7CfuqeRbkRp8t7OPv-U0vif-Uz7sjtJxaB=xQ@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-docs pgsql-general |
On Tue, Mar 3, 2020 at 4:19 PM David G. Johnston <david(dot)g(dot)johnston(at)gmail(dot)com>
wrote:
> On Tue, Mar 3, 2020 at 4:11 PM Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
> wrote:
>
>> On 3/3/20 3:06 PM, David G. Johnston wrote:
>> > On Tue, Mar 3, 2020 at 3:48 PM Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com
>> > <mailto:adrian(dot)klaver(at)aklaver(dot)com>> wrote:
>> >
>> > The link was for automatically updateable views. If you want to do
>> > something more involved then see:
>> >
>> >
>> https://www.postgresql.org/docs/12/rules-views.html#RULES-VIEWS-UPDATE
>> >
>> >
>> > CREATE TRIGGER works with views; I usually see recommendations to start
>> > there and avoid rules if at all possible.
>>
>> The above suggests triggers then rules.
>>
>
> Yeah, I see the buried in there. The link itself and the page itself is
> something like 95% rules coverage so it still seems worth pointing out even
> in hindsight.
>
> Maybe add a link to the CREATE TRIGGER section in there...
>
Minor doc patch for this attached for consideration.
David J.
Attachment | Content-Type | Size |
---|---|---|
v1-notify-doc-fixup.patch | application/octet-stream | 1.6 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | David G. Johnston | 2020-10-02 21:00:26 | Re: Chapter 7. Queries |
Previous Message | Michael Paquier | 2020-10-02 01:39:04 | Re: replication wordsmithing / clarifications |
From | Date | Subject | |
---|---|---|---|
Next Message | Brajendra Pratap Singh | 2020-10-02 20:40:31 | Profile Creation |
Previous Message | David G. Johnston | 2020-10-02 16:45:35 | Re: Rows removed on child table when updating parent partitioned table. |