Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1daOM6-00073Q-Iu for pgsql-hackers@arkaria.postgresql.org; Wed, 26 Jul 2017 15:36:10 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1daOM5-0003Gl-OC for pgsql-hackers@arkaria.postgresql.org; Wed, 26 Jul 2017 15:36:09 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1daOM4-0003E0-M1 for pgsql-hackers@postgresql.org; Wed, 26 Jul 2017 15:36:08 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1daOM1-0008Uv-MO for pgsql-hackers@postgresql.org; Wed, 26 Jul 2017 15:36:08 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id v6QFZtaf008700; Wed, 26 Jul 2017 11:35:55 -0400 From: Tom Lane To: Jordan Gigov cc: Robert Haas , Stephen Frost , Peter Eisentraut , Michael Banck , Jim Nasby , Kevin Grittner , Pg Hackers Subject: Re: Change in "policy" on dump ordering? In-reply-to: References: <8f64786e-824d-7c0d-33a6-3d9e1c8e9fde@2ndquadrant.com> <33b25c65-94f1-6ff6-c717-61a56294a255@2ndquadrant.com> <75409fb1-bd96-25c2-f6b0-c24e28ed2684@2ndquadrant.com> <65049c27-96bf-317b-b435-931f6041f94c@BlueTreble.com> <67d35333-ef65-074a-b2be-52440f245e43@2ndquadrant.com> <753dcafc-a648-9041-e9ca-e405cd4498f4@2ndquadrant.com> <20170306083342.GA8374@nighthawk.caipicrew.dd-dns.de> <2605f6d0-8444-528e-4e38-6b13968cfeb7@2ndquadrant.com> <20170306140101.GQ9812@tamriel.snowman.net> <28572.1500912583@sss.pgh.pa.us> <18658.1501037135@sss.pgh.pa.us> <22969.1501075830@sss.pgh.pa.us> Comments: In-reply-to Jordan Gigov message dated "Wed, 26 Jul 2017 17:11:11 +0300" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <8698.1501083355.1@sss.pgh.pa.us> Date: Wed, 26 Jul 2017 11:35:55 -0400 Message-ID: <8699.1501083355@sss.pgh.pa.us> List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Jordan Gigov writes: > But why should a superuser need the ACL to be applied before being allowed > access? If you make the permission-checking function check if the user is a > superuser before looking for per-user grants, wouldn't that solve the issue? The superuser's permissions are not relevant, because the materialized view is run with the permissions of its owner, not the superuser. We are not going to consider changing that, either, because it would open trivial-to-exploit security holes (any user could set up a trojan horse matview and just wait for the next pg_upgrade or dump/restore). regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers