Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bS449-0005oD-Oo for pgsql-bugs@arkaria.postgresql.org; Tue, 26 Jul 2016 15:14:41 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bS449-0002aB-BX for pgsql-bugs@arkaria.postgresql.org; Tue, 26 Jul 2016 15:14:41 +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 1bS43W-0001rm-I8 for pgsql-bugs@postgresql.org; Tue, 26 Jul 2016 15:14:02 +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 1bS43R-0001sM-GN for pgsql-bugs@postgresql.org; Tue, 26 Jul 2016 15:14:02 +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 u6QFDsUb017768; Tue, 26 Jul 2016 11:13:54 -0400 From: Tom Lane To: Kevin Grittner cc: Peter Eisentraut , Michael Paquier , marian.krucina@gmail.com, PostgreSQL mailing lists Subject: Re: BUG #13907: Restore materialized view throw permission denied In-reply-to: References: <20160202161407.2778.24659@wrigleys.postgresql.org> <22633.1465910990@sss.pgh.pa.us> <1152.1466094507@sss.pgh.pa.us> <21147.1467052547@sss.pgh.pa.us> <9af4bc32-7e55-a21d-47e7-608582a8c48d@2ndquadrant.com> <5850.1469541250@sss.pgh.pa.us> Comments: In-reply-to Kevin Grittner message dated "Tue, 26 Jul 2016 09:21:24 -0500" Date: Tue, 26 Jul 2016 11:13:54 -0400 Message-ID: <17767.1469546034@sss.pgh.pa.us> X-Pg-Spam-Score: -3.2 (---) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Kevin Grittner writes: > The problem we're having restoring the matview state is that not > all ACLs needed for *SELECT* permissions are in place in time. I > am not seeing the problem with self-revoke on REFRESH. What am I > missing? Uh ... that the owner might revoke his own SELECT privilege? > One other question about the patch was what I did for testing. It > seemed like a good idea to have dump/restore tests, but I don't see > how to do that without leaving a role or two lingering in the > cluster. Is that allowed? In make installcheck, no, it is absolutely not. I'd suggest thinking about testing this in the pg_dump TAP tests, instead, where we're just creating a private database instance. regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs