Ignore tablespace ACLs when ignoring schema ACLs.

Noah Misch <noah@leadboat.com>

Commit: 660e457f5b1c4647ad2d41496840f793c87d9208
Author: Noah Misch <noah@leadboat.com>
Date: 2017-02-12T21:03:54Z
Releases: 9.5.7
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.

Files