]> granicus.if.org Git - postgresql/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:23 +0000 (16:05 -0500)
commit27a8c8033a67853878335816b486a71477fd833d
tree79dd18d04a1361a3224deaf7a3f45fccbc9cd5cd
parent903bfef382f286a75e82b8b9edd93b2bdc6cfd96
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