Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cRmvM-0001M0-M6 for pgsql-bugs@arkaria.postgresql.org; Thu, 12 Jan 2017 21:28:44 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cRmvM-000740-1W for pgsql-bugs@arkaria.postgresql.org; Thu, 12 Jan 2017 21:28:44 +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 1cRmuh-0006IC-Hf for pgsql-bugs@postgresql.org; Thu, 12 Jan 2017 21:28:03 +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 1cRmud-0003p9-Vb for pgsql-bugs@postgresql.org; Thu, 12 Jan 2017 21:28:03 +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 v0CLRurT019311; Thu, 12 Jan 2017 16:27:56 -0500 From: Tom Lane To: Alvaro Herrera cc: Moshe Jacobson , Stephen Frost , 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: <20170112212208.2icg45ejn3hup5ts@alvherre.pgsql> References: <20170112212208.2icg45ejn3hup5ts@alvherre.pgsql> Comments: In-reply-to Alvaro Herrera message dated "Thu, 12 Jan 2017 18:22:08 -0300" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <19309.1484256476.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Thu, 12 Jan 2017 16:27:56 -0500 Message-ID: <19310.1484256476@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 Alvaro Herrera writes: > Tom Lane wrote: >> Moshe Jacobson writes: >>> The reason I add the dynamically-created tables to the extension is so = that >>> they are never included in the pg_dump output. >> The extension mechanism definitely isn't meant to do that ;-). Maybe >> you could put these not-to-dump tables in their own schema and exclude >> that schema from pg_dump with -N? > Is this related to this commit? > https://git.postgresql.org/gitweb/?p=3Dpostgresql.git;a=3Dcommitdiff;h=3D= f2fcad27d59c8e5c48f8fa0a96c8355e40f24273 Seems like it doesn't quite match Moshe's use case --- he *doesn't* want those tables dumped. I'm not sure if he cares whether they have dependencies on the extension. regards, tom lane --=20 Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs