Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bFjpk-0004PD-EV for pgsql-bugs@arkaria.postgresql.org; Wed, 22 Jun 2016 15:12:52 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bFjpk-0002aZ-0a for pgsql-bugs@arkaria.postgresql.org; Wed, 22 Jun 2016 15:12:52 +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 1bFjp6-0001pc-9l for pgsql-bugs@postgresql.org; Wed, 22 Jun 2016 15:12:12 +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 1bFjp3-0001pK-8Y for pgsql-bugs@postgresql.org; Wed, 22 Jun 2016 15:12:11 +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 u5MFC6rY030843; Wed, 22 Jun 2016 11:12:06 -0400 From: Tom Lane To: Stephen Frost cc: =?iso-8859-1?Q?Mart=EDn_Marqu=E9s?= , Michael Paquier , Alvaro Herrera , PostgreSQL mailing lists Subject: Re: pg_dump doesn't dump new objects created in schemas from extensions In-reply-to: <20160622145349.GK21416@tamriel.snowman.net> References: <409fe594-f4cc-89f5-c0d2-0a921987a864@2ndquadrant.com> <20160616185547.GA72247@alvherre.pgsql> <24a4d9cf-025d-d855-fe76-3af3f878174d@2ndquadrant.com> <29478.1466605967@sss.pgh.pa.us> <20160622145349.GK21416@tamriel.snowman.net> Comments: In-reply-to Stephen Frost message dated "Wed, 22 Jun 2016 10:53:49 -0400" Date: Wed, 22 Jun 2016 11:12:06 -0400 Message-ID: <30842.1466608326@sss.pgh.pa.us> X-Pg-Spam-Score: -3.3 (---) 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: >> In HEAD, this should be a pretty straightforward change since Stephen >> Frost has already created infrastructure that allows distinguishing which >> "components" of an object to dump. There doesn't seem to be a bit that >> corresponds to "objects within this schema", but that shouldn't be hard >> to add. > In HEAD, this already exists in the form of 'dump_contains', which sits > next to 'dump' in the DumpableObject struct. I added that independent > field as it allows us to say things like "dump components X, Y, Z of > this object, and components A, B, C of objects *contained* by this > object." What that means is that we can dump, say, just the privileges > of a namespace, but dump all of the components of objects which live > inside of that namespace. Ah. So maybe we just need to rearrange selectDumpableNamespace. Offhand, it seems like we want checkExtensionMembership to adjust the namespace's dump bits, but not its dump_contained bits (which indeed it already doesn't, which until just now I would have said is an oversight). So maybe just moving the checkExtensionMembership call to after the other stuff would be enough in HEAD? 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