Re: Skip ExecCheckRTPerms in CTAS with no data
Peter Eisentraut <peter.eisentraut@enterprisedb.com>
From: Peter Eisentraut <peter.eisentraut@enterprisedb.com>
To: Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Cc: Michael Paquier <michael@paquier.xyz>,
Anastasia Lubennikova <a.lubennikova@postgrespro.ru>,
Tom Lane <tgl@sss.pgh.pa.us>,
PostgreSQL-development <pgsql-hackers@postgresql.org>
Date: 2020-11-20T07:27:52Z
Lists: pgsql-hackers
On 2020-11-19 17:35, Bharath Rupireddy wrote: > So, should we be doing it this way? > > For CTAS: retain the existing CREATE privilege check and remove the > INSERT privilege check altogether for all the cases i.e. with data, > with no data, explain analyze, plain, with execute? > For CREATE MATERIALIZED VIEW: same as CTAS, that is retain the > existing CREATE privilege check and remove the INSERT privilege check > for with data, with no data, explain analyze, plain? > For REFRESH MATERIALIZED VIEW: retain the existing behaviour i.e. no > privilege check. That sounds reasonable to me.
Commits
-
Remove INSERT privilege check at table creation of CTAS and matview
- 878f3a19c6c8 14.0 landed
-
Relax INSERT privilege requirement for CTAS and matviews WITH NO DATA
- 846005e4f382 14.0 landed