[COMMITTERS] pgsql: Teach RemoveRoleFromObjectPolicy() about partitioned tables. - Mailing list pgsql-committers

From Dean Rasheed
Subject [COMMITTERS] pgsql: Teach RemoveRoleFromObjectPolicy() about partitioned tables.
Date
Msg-id E1dL2z9-0002cS-QI@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Teach RemoveRoleFromObjectPolicy() about partitioned tables.

Table partitioning, introduced in commit f0e44751d7, added a new
relkind - RELKIND_PARTITIONED_TABLE. Update
RemoveRoleFromObjectPolicy() to handle it, otherwise DROP OWNED BY
will fail if the role has any RLS policies referring to partitioned
tables.

Dean Rasheed, reviewed by Amit Langote.

Discussion: https://postgr.es/m/CAEZATCUnNOKN8sLML9jUzxecALWpEXK3a3W7y0PgFR4%2Buhgc%3Dg%40mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/f356ec57444e42e53474ad5a029cdf6dca195069

Modified Files
--------------
src/backend/commands/policy.c             | 3 ++-
src/test/regress/expected/rowsecurity.out | 4 ++++
src/test/regress/sql/rowsecurity.sql      | 5 +++++
3 files changed, 11 insertions(+), 1 deletion(-)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: [COMMITTERS] pgsql: Disallow set-returning functions inside CASE or COALESCE.
Next
From: Dean Rasheed
Date:
Subject: [COMMITTERS] pgsql: Teach PL/pgSQL about partitioned tables.