pgsql: Ignore tablespace ACLs when ignoring schema ACLs.

From: Noah Misch <noah(at)leadboat(dot)com>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Ignore tablespace ACLs when ignoring schema ACLs.
Date: 2017-02-12 21:09:33
Message-ID: E1cd1On-0006LL-Jx@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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.

Branch
------
REL9_6_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/4d43d5d35d544d39ee59e3ef56cd01faf5be3016

Modified Files
--------------
src/backend/commands/indexcmds.c | 9 +++++----
src/test/regress/input/tablespace.source | 7 +++++++
src/test/regress/output/tablespace.source | 9 ++++++++-
3 files changed, 20 insertions(+), 5 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2017-02-13 01:23:05 pgsql: doc: Remove accidental extra table cell
Previous Message Peter Eisentraut 2017-02-10 20:38:57 pgsql: Add CREATE SEQUENCE AS <data type> clause