pg.ddx.io  pgsql-docs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: David G. Johnston <david.g.johnston@gmail.com>
Cc: stan <stanb@panix.com>
Cc: pgsql-general <pgsql-general@postgresql.org>
Subject: Re: Detecting which columns a query will modify in a function called by a trigger
Date: Tue, 3 Mar 2020 15:11:35 -0800
Message-ID: <19a1796f-8fe0-d2ee-e8a5-809d5eba787c@aklaver.com> (raw)
In-Reply-To: <CAKFQuwbVOiAz7CSZUugmyrdBzdOayDNzUdOGd92TeK2Fhr94HQ@mail.gmail.com>
References: <20200302185904.GA6528@panix.com>
	<30c3c06e-61fa-3210-666d-1696af320a75@aklaver.com>
	<20200302202829.GA19161@panix.com>
	<CAKFQuwaYuvQert-Szy7khu4tB6avCah0wqavsQzPDxX+-vjj_g@mail.gmail.com>
	<20200303174248.GB5019@panix.com>
	<7ac6f67e-f330-1825-02e3-fa5b5a1a2940@aklaver.com>
	<20200303213215.GA2023@panix.com>
	<5574e3a6-2245-42c4-77fd-6e51a7a65e0c@aklaver.com>
	<CAKFQuwbVOiAz7CSZUugmyrdBzdOayDNzUdOGd92TeK2Fhr94HQ@mail.gmail.com>

On 3/3/20 3:06 PM, David G. Johnston wrote:
> On Tue, Mar 3, 2020 at 3:48 PM Adrian Klaver <adrian.klaver@aklaver.com 
> <mailto:adrian.klaver@aklaver.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.

> 
> David J.


-- 
Adrian Klaver
adrian.klaver@aklaver.com





view thread (17+ messages)  latest in thread

Message-ID: <19a1796f-8fe0-d2ee-e8a5-809d5eba787c@aklaver.com>
Permalink:  ../19a1796f-8fe0-d2ee-e8a5-809d5eba787c@aklaver.com/
Also on:    postgresql.org/message-id/19a1796f-8fe0-d2ee-e8a5-809d5eba787c@aklaver.com

 · 

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: pgsql-docs@postgresql.org
  Cc: adrian.klaver@aklaver.com, david.g.johnston@gmail.com, stanb@panix.com, pgsql-general@postgresql.org
  Subject: Re: Detecting which columns a query will modify in a function called by a trigger
  In-Reply-To: <19a1796f-8fe0-d2ee-e8a5-809d5eba787c@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