Re: Triggers on underlying tables of updatable views

From: Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>
To: max(dot)ziermann(at)htw-dresden(dot)de, pgsql-docs(at)lists(dot)postgresql(dot)org
Subject: Re: Triggers on underlying tables of updatable views
Date: 2021-11-22 15:41:07
Message-ID: 2f54dbb7d59aacacbc4654b0bc56faaebe993e09.camel@cybertec.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-docs by date

  From Date Subject
Next Message PG Doc comments form 2021-11-22 17:41:51 max_slot_wal_keep_size unit is not specified
Previous Message PG Doc comments form 2021-11-22 12:06:59 Triggers on underlying tables of updatable views