From: Tom Lane <tgl@sss.pgh.pa.us>
To: Stephen Frost <sfrost@snowman.net>
Cc: Martín Marqués <martin@2ndquadrant.com>
Cc: Michael Paquier <michael.paquier@gmail.com>
Cc: Alvaro Herrera <alvherre@2ndquadrant.com>
Cc: PostgreSQL mailing lists <pgsql-bugs@postgresql.org>
Subject: Re: pg_dump doesn't dump new objects created in schemas from extensions
Date: Wed, 22 Jun 2016 11:12:06 -0400
Message-ID: <30842.1466608326@sss.pgh.pa.us> (raw)
In-Reply-To: <20160622145349.GK21416@tamriel.snowman.net>
References: <409fe594-f4cc-89f5-c0d2-0a921987a864@2ndquadrant.com>
<20160616185547.GA72247@alvherre.pgsql>
<CAPdiE1wgOVvWq3q9W3wAKrin1LnQevwQQet+qGoe_sMnfRbbjA@mail.gmail.com>
<CAB7nPqQJzP1dLCwa9uj-keJafmLd3KXDQbRmsSYZbkNz3nu_uA@mail.gmail.com>
<24a4d9cf-025d-d855-fe76-3af3f878174d@2ndquadrant.com>
<29478.1466605967@sss.pgh.pa.us>
<20160622145349.GK21416@tamriel.snowman.net>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
Stephen Frost <sfrost@snowman.net> 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
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: tgl@sss.pgh.pa.us, sfrost@snowman.net, martin@2ndquadrant.com, michael.paquier@gmail.com, alvherre@2ndquadrant.com
Subject: Re: pg_dump doesn't dump new objects created in schemas from extensions
In-Reply-To: <30842.1466608326@sss.pgh.pa.us>
References: <409fe594-f4cc-89f5-c0d2-0a921987a864@2ndquadrant.com> <20160616185547.GA72247@alvherre.pgsql> <CAPdiE1wgOVvWq3q9W3wAKrin1LnQevwQQet+qGoe_sMnfRbbjA@mail.gmail.com> <CAB7nPqQJzP1dLCwa9uj-keJafmLd3KXDQbRmsSYZbkNz3nu_uA@mail.gmail.com> <24a4d9cf-025d-d855-fe76-3af3f878174d@2ndquadrant.com> <29478.1466605967@sss.pgh.pa.us> <20160622145349.GK21416@tamriel.snowman.net> <30842.1466608326@sss.pgh.pa.us>
* 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