]> granicus.if.org Git - postgresql/commit
Teach RemoveRoleFromObjectPolicy() about partitioned tables.
authorDean Rasheed <dean.a.rasheed@gmail.com>
Wed, 14 Jun 2017 07:43:40 +0000 (08:43 +0100)
committerDean Rasheed <dean.a.rasheed@gmail.com>
Wed, 14 Jun 2017 07:43:40 +0000 (08:43 +0100)
commitf356ec57444e42e53474ad5a029cdf6dca195069
tree75937969267ceb355a00b0f99122feaec53d2895
parent0436f6bde8848b7135f19dd7f8548b8c2ae89a34
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
src/backend/commands/policy.c
src/test/regress/expected/rowsecurity.out
src/test/regress/sql/rowsecurity.sql