Re: [PATCH] Add reloption for views to enable RLS

Wolfgang Walther <walther@technowledgy.de>

From: walther@technowledgy.de
To: Laurenz Albe <laurenz.albe@cybertec.at>, Christoph Heiss <christoph.heiss@cybertec.at>, pgsql-hackers@postgresql.org
Cc: Hans-Jürgen Schönig <hs@cybertec.at>
Date: 2022-02-15T15:32:49Z
Lists: pgsql-hackers
Laurenz Albe:
> I'd be happy with "check_as_owner", except it is unclear *what* is checked.

Yeah, that could be associated with WITH CHECK OPTION, too, as in "do 
the CHECK OPTION stuff as the owner".

> "check_permissions_as_owner" is ok with me, but a bit long.

check_permissions_as_owner is exactly what happens. The additional "as" 
shouldn't be a problem in length - but is much better to read. I 
wouldn't associate that with CHECK OPTION either. +1

Best

Wolfgang



Commits

  1. Add support for security invoker views.

  2. Replace use of deprecated Python module distutils.sysconfig