Ignore tablespace ACLs when ignoring schema ACLs

From: Noah Misch <noah(at)leadboat(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Ignore tablespace ACLs when ignoring schema ACLs
Date: 2017-02-05 00:06:21
Message-ID: 20170205000621.GA822663@tornado.leadboat.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

DefineIndex() has a check_rights argument that determines whether to perform a
namespace ACL check. When ALTER TABLE ALTER TYPE rebuilds an index, it sets
that flag. The theory goes that use of DROP INDEX and CREATE INDEX is a mere
implementation detail of ALTER TABLE ALTER TYPE; the operation is logically like
an alteration of the existing index. I think the same treatment should extend
to the tablespace ACL check, as attached.

Attachment Content-Type Size
tablespace-acl-skip-v1.patch text/plain 4.1 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Rod Taylor 2017-02-05 01:08:30 Re: PoC: Make it possible to disallow WHERE-less UPDATE and DELETE
Previous Message Masahiko Sawada 2017-02-04 23:05:46 Variable name typo in launcher.c