Re: Triggers on underlying tables of updatable views - Mailing list pgsql-docs

From Laurenz Albe
Subject Re: Triggers on underlying tables of updatable views
Date
Msg-id 2f54dbb7d59aacacbc4654b0bc56faaebe993e09.camel@cybertec.at
Whole thread Raw
In response to Triggers on underlying tables of updatable views  (PG Doc comments form <noreply@postgresql.org>)
Responses Re: Triggers on underlying tables of updatable views  (Max Ziermann <max.ziermann@htw-dresden.de>)
List pgsql-docs
On Mon, 2021-11-22 at 12:06 +0000, PG Doc comments form wrote:
> "Note that the user performing the insert, update or delete on the view must
> have the corresponding insert, update or delete privilege on the view. In
> addition the view's owner must have the relevant privileges on the
> underlying base relations, but the user performing the update does not need
> any permissions on the underlying base relations (see Section 41.5)."
> 
> Could it be made more clear that triggers on a underlying table of an
> updatable view are still executed with the permissions of the user
> performing an insert/update/delete on the view?

But that is not the case: that trigger will be executed with the permissions
of the owner of the underlying table.

Yours,
Laurenz Albe




pgsql-docs by date:

Previous
From: PG Doc comments form
Date:
Subject: Triggers on underlying tables of updatable views
Next
From: PG Doc comments form
Date:
Subject: max_slot_wal_keep_size unit is not specified