]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Ignore tablespace ACLs when ignoring schema ACLs.
authorNoah Misch <noah@leadboat.com>
Sun, 12 Feb 2017 21:03:41 +0000 (16:03 -0500)
committerNoah Misch <noah@leadboat.com>
Sun, 12 Feb 2017 21:05:12 +0000 (16:05 -0500)
commitb167d57d5af09527af61952296f1db8761cbee38
treedcfebeaab5608226ac4cf93074429bab5311ca36
parent4dd4e3fe10a9d85d5a1455b2231daae8c00c6b79
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