Thread: [COMMITTERS] pgsql: Ignore tablespace ACLs when ignoring schema ACLs.

[COMMITTERS] pgsql: Ignore tablespace ACLs when ignoring schema ACLs.

From
Noah Misch
Date:
Ignore tablespace ACLs when ignoring schema ACLs.

The ALTER TABLE ALTER TYPE implementation can issue DROP INDEX and
CREATE INDEX to refit existing indexes for the new column type.  Since
this CREATE INDEX is an implementation detail of an index alteration,
the ensuing DefineIndex() should skip ACL checks specific to index
creation.  It already skips the namespace ACL check.  Make it skip the
tablespace ACL check, too.  Back-patch to 9.2 (all supported versions).

Reviewed by Tom Lane.

Branch
------
REL9_2_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/27a8c8033a67853878335816b486a71477fd833d

Modified Files
--------------
src/backend/commands/indexcmds.c | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)