Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bRrJe-0007p7-CB for pgsql-bugs@arkaria.postgresql.org; Tue, 26 Jul 2016 01:37:50 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bRrJd-0008AA-Sd for pgsql-bugs@arkaria.postgresql.org; Tue, 26 Jul 2016 01:37:49 +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 1bRrJc-00089U-Sk for pgsql-bugs@postgresql.org; Tue, 26 Jul 2016 01:37:48 +0000 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bRrJU-000389-1M for pgsql-bugs@postgresql.org; Tue, 26 Jul 2016 01:37:48 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id 3779E2058B; Mon, 25 Jul 2016 21:37:38 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute2.internal (MEProxy); Mon, 25 Jul 2016 21:37:38 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=SL1Czo7w6KsRL7J RFQX4b0vTJzc=; b=O4MfIMfHxuF5iwJQzsgbtm7sVtHHHyNEZgDzgP5aEzjNQPJ M+HjUibiPmMYNpkDJLx2KN1J3cQiFSay9Iguv0cEOvz27GxJ+MIJeHazhOdgzjko 4d2Eh6B52fw+S9qC0Jh2musAxZsc4wprt7e10GitKVyEo2cfMTe2Uhr2bi8w= X-Sasl-enc: a0NPQU8Wp9SxOaPFXX5Pn8flMBAHJEhJhURz4SdmT4qP 1469497058 Received: from april.local (c-73-13-66-39.hsd1.pa.comcast.net [73.13.66.39]) by mail.messagingengine.com (Postfix) with ESMTPA id DE860F29EE; Mon, 25 Jul 2016 21:37:37 -0400 (EDT) Subject: Re: BUG #13907: Restore materialized view throw permission denied To: Kevin Grittner , Tom Lane 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> Cc: Michael Paquier , marian.krucina@gmail.com, PostgreSQL mailing lists From: Peter Eisentraut Organization: 2ndQuadrant Message-ID: <9af4bc32-7e55-a21d-47e7-608582a8c48d@2ndquadrant.com> Date: Mon, 25 Jul 2016 21:37:37 -0400 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.6 (--) 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 On 7/25/16 4:09 PM, Kevin Grittner wrote: > On Mon, Jun 27, 2016 at 1:35 PM, Tom Lane wrote: > >> I'm planning to apply the attached revision as soon as I get done >> back-porting it. > > I'm thinking of applying something like the attached to fix the > rest of this bug. The reason that ACLs are restored last is that they could contain owner self-revokes. So anything that you run after the ACLs could fail because of that. I think a more complete fix would be to split up the ACL restores into the general part, which you would run right after the object is restored, and the owner revokes, which you would run last. -- Peter Eisentraut http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs