Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cRksC-0003pX-HC for pgsql-bugs@arkaria.postgresql.org; Thu, 12 Jan 2017 19:17:20 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cRksB-0006Ey-JZ for pgsql-bugs@arkaria.postgresql.org; Thu, 12 Jan 2017 19:17:19 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cRkrW-0005UB-VH for pgsql-bugs@postgresql.org; Thu, 12 Jan 2017 19:16:39 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cRkrU-0001zO-Er for pgsql-bugs@postgresql.org; Thu, 12 Jan 2017 19:16:37 +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 v0CJGWVZ013550; Thu, 12 Jan 2017 14:16:32 -0500 From: Tom Lane To: Stephen Frost cc: Moshe Jacobson , daniele.varrazzo@gmail.com, pgsql-bugs@postgresql.org Subject: Re: BUG #14456: pg_dump doesn't restore permissions on tables belonging to an extension In-reply-to: <20170112190830.GP18360@tamriel.snowman.net> References: <20161208191642.1407.30751@wrigleys.postgresql.org> <20161208192933.GG23417@tamriel.snowman.net> <20170112183457.GJ18360@tamriel.snowman.net> <12559.1484247701@sss.pgh.pa.us> <20170112190830.GP18360@tamriel.snowman.net> Comments: In-reply-to Stephen Frost message dated "Thu, 12 Jan 2017 14:08:30 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <13548.1484248592.1@sss.pgh.pa.us> Date: Thu, 12 Jan 2017 14:16:32 -0500 Message-ID: <13549.1484248592@sss.pgh.pa.us> X-Pg-Spam-Score: -5.1 (-----) 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 Stephen Frost writes: > * Tom Lane (tgl@sss.pgh.pa.us) wrote: >> Hmm. There's an argument to be made that ALTER EXTENSION ADD should >> absorb whatever the object's current ACLs are into the pg_init_privs >> entries for the extension. (I don't think it does that now, though >> I might be wrong.) However ... > I've not gone and looked yet, but I doubt that it does. I think I can > agree with the argument that it really should add those ACLs to > pg_init_privs. Of course, any furhter manipulation of the ACLs from > that point will cause those ACLs to be included in the pg_dump. > I'll take a look at ALTER EXTENSION ADD and pg_init_privs. By the same token, does ALTER EXTENSION DROP remove those entries? 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