Ignore tablespace ACLs when ignoring schema ACLs.
authorNoah Misch <[email protected]>
Sun, 12 Feb 2017 21:03:41 +0000 (16:03 -0500)
committerNoah Misch <[email protected]>
Sun, 12 Feb 2017 21:03:54 +0000 (16:03 -0500)
commit660e457f5b1c4647ad2d41496840f793c87d9208
tree736c748e3eb15e41045dd9f13622d83417aff250
parentcf73c6bfc7148077cda6ff68dae551c0a2674182
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.
src/backend/commands/indexcmds.c
src/test/regress/input/tablespace.source
src/test/regress/output/tablespace.source