Re: Clarification on View Privileges and Operator Execution in PostgreSQL

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: Ayush Vatsa <ayushvatsa1810(at)gmail(dot)com>
Cc: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: Clarification on View Privileges and Operator Execution in PostgreSQL
Date: 2024-04-07 16:25:23
Message-ID: CAKFQuwbMkum2q05EvhVNWXC4ij-HL-Nv=3d5yDPfZsEhNTrJbQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Sun, Apr 7, 2024 at 9:10 AM Ayush Vatsa <ayushvatsa1810(at)gmail(dot)com> wrote:

>
> but what about the view which contains inbuilt operators or inbuilt
> functions with whose privileges those will be executed. Eg.
>

From the create view documentation:
Functions called in the view are treated the same as if they had been
called directly from the query using the view. Therefore, the user of a
view must have permissions to call all functions used by the view.
Functions in the view are executed with the privileges of the user
executing the query or the function owner, depending on whether the
functions are defined as SECURITY INVOKER or SECURITY DEFINER.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Ayush Vatsa 2024-04-07 16:32:21 Re: Clarification on View Privileges and Operator Execution in PostgreSQL
Previous Message Ayush Vatsa 2024-04-07 16:10:05 Clarification on View Privileges and Operator Execution in PostgreSQL