pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
To: Kevin Grittner <kgrittn@gmail.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Michael Paquier <michael.paquier@gmail.com>
Cc: marian.krucina@gmail.com, PostgreSQL mailing lists <pgsql-bugs@postgresql.org>
Subject: Re: BUG #13907: Restore materialized view throw permission denied
Date: Mon, 25 Jul 2016 21:37:37 -0400
Message-ID: <9af4bc32-7e55-a21d-47e7-608582a8c48d@2ndquadrant.com> (raw)
In-Reply-To: <CACjxUsNmpQDL58zRm3EFS9atqGT8+X_2+FOCXpYBwWZw5wgi-A@mail.gmail.com>
References: <20160202161407.2778.24659@wrigleys.postgresql.org>
	<CAB7nPqR-r8HMhEtEkGTr-N4kVrAJLqj-OP0wyjVin0U0BWsu5A@mail.gmail.com>
	<22633.1465910990@sss.pgh.pa.us>
	<CAB7nPqTVtZ0vWUSa4sQUFSZvkp0xacw2oojmhYSwi85SP45d9w@mail.gmail.com>
	<CAB7nPqQFLsrHDG=+6R6jw7QG9e9drk5aPsBtzsVpGuaF3VrXtQ@mail.gmail.com>
	<1152.1466094507@sss.pgh.pa.us>
	<CAB7nPqT0WSgO3V31pAL7QvmxMgxUPFsioFFbfON6SYpqEVOzrg@mail.gmail.com>
	<21147.1467052547@sss.pgh.pa.us>
	<CACjxUsNmpQDL58zRm3EFS9atqGT8+X_2+FOCXpYBwWZw5wgi-A@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

On 7/25/16 4:09 PM, Kevin Grittner wrote:
> On Mon, Jun 27, 2016 at 1:35 PM, Tom Lane <tgl@sss.pgh.pa.us> 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



view thread (21+ messages)  latest in thread

Message-ID: <9af4bc32-7e55-a21d-47e7-608582a8c48d@2ndquadrant.com>
Permalink:  ../9af4bc32-7e55-a21d-47e7-608582a8c48d@2ndquadrant.com/
Also on:    postgresql.org/message-id/9af4bc32-7e55-a21d-47e7-608582a8c48d@2ndquadrant.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: peter.eisentraut@2ndquadrant.com, kgrittn@gmail.com, tgl@sss.pgh.pa.us, michael.paquier@gmail.com
  Subject: Re: BUG #13907: Restore materialized view throw permission denied
  In-Reply-To: <9af4bc32-7e55-a21d-47e7-608582a8c48d@2ndquadrant.com>
  References: <20160202161407.2778.24659@wrigleys.postgresql.org> <CAB7nPqR-r8HMhEtEkGTr-N4kVrAJLqj-OP0wyjVin0U0BWsu5A@mail.gmail.com> <22633.1465910990@sss.pgh.pa.us> <CAB7nPqTVtZ0vWUSa4sQUFSZvkp0xacw2oojmhYSwi85SP45d9w@mail.gmail.com> <CAB7nPqQFLsrHDG=+6R6jw7QG9e9drk5aPsBtzsVpGuaF3VrXtQ@mail.gmail.com> <1152.1466094507@sss.pgh.pa.us> <CAB7nPqT0WSgO3V31pAL7QvmxMgxUPFsioFFbfON6SYpqEVOzrg@mail.gmail.com> <21147.1467052547@sss.pgh.pa.us> <CACjxUsNmpQDL58zRm3EFS9atqGT8+X_2+FOCXpYBwWZw5wgi-A@mail.gmail.com> <9af4bc32-7e55-a21d-47e7-608582a8c48d@2ndquadrant.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox