]> 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:03:46 +0000 (16:03 -0500)
commit4d43d5d35d544d39ee59e3ef56cd01faf5be3016
tree6b14fd244123fb6f97d55de2d721224216f2f4de
parentfc96a5fbc69918ad23f5c5afbe8134aa53d397ef
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