Re: Q on SELECT column list pushdown from view to table - Mailing list pgsql-general

From Tom Lane
Subject Re: Q on SELECT column list pushdown from view to table
Date
Msg-id 1321213.1742943334@sss.pgh.pa.us
Whole thread Raw
In response to Q on SELECT column list pushdown from view to table  (Karsten Hilbert <Karsten.Hilbert@gmx.net>)
Responses Re: Q on SELECT column list pushdown from view to table
List pgsql-general
Karsten Hilbert <Karsten.Hilbert@gmx.net> writes:
> I expected this:

>     set role "restricted-role";
>     -- this works:
>     select public_col from t_partially_private;
>     -- this fails: with "permission denied on table t_partially_private"
>     select public_col from v_partially_private;

> to work but selecting from the view fails.

Works fine if you don't mess with the view's security_invoker
status.

            regards, tom lane



pgsql-general by date:

Previous
From: Karsten Hilbert
Date:
Subject: Q on SELECT column list pushdown from view to table
Next
From: Phillip Diffley
Date:
Subject: Re: Replication slot WAL reservation