Re: pg_dumping extensions having sequences with 9.6beta3

From: Stephen Frost <sfrost(at)snowman(dot)net>
To: Michael Paquier <michael(dot)paquier(at)gmail(dot)com>
Cc: Noah Misch <noah(at)leadboat(dot)com>, Philippe BEAUDOIN <phb(dot)emaj(at)free(dot)fr>, PostgreSQL mailing lists <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: pg_dumping extensions having sequences with 9.6beta3
Date: 2016-07-31 14:59:49
Message-ID: 20160731145949.GC4028@tamriel.snowman.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

Michael,

* Michael Paquier (michael(dot)paquier(at)gmail(dot)com) wrote:
> On Sat, Jul 30, 2016 at 5:47 AM, Stephen Frost <sfrost(at)snowman(dot)net> wrote:
> > What we need to be doing here is combining the set of components that
> > the sequence has been marked with and the set of components that the
> > table has been marked with, not trying to figure out if the sequence is
> > a member of an extension or not and changing what to do in those cases,
> > that's checkExtensionMembership()'s job, really.
>
> OK, thanks for the confirmation. I have been playing a bit with your
> patch and it is correctly dumping ACLs and policies that are modified
> after creating an extension. So that looks good to me.
>
> > Attached is a patch implementing this and which passes the regression
> > tests you added and a couple that I added for the non-extension case.
> > I'm going to look at adding a few more regression tests and if I don't
> > come across any issues then I'll likely push the fix sometime tomorrow.
>
> + * table will be equivilantly marked.
> s/equivilantly/equivalently/.
>
> By the way, I noticed 3 places in dumpProcLang and 1 place in
> dumpSequence where dobj.dump is used in a test but it is not directly
> compared with DUMP_COMPONENT_NONE. Perhaps you'd want to change that
> as well..

Thanks again for the help on this item, I've pushed the fix and updated
the open items wiki.

Stephen

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2016-07-31 15:56:11 Re: Proposal "stack trace" like debugging option in PostgreSQL
Previous Message Jason Dusek 2016-07-31 02:47:17 Re: Uber migrated from Postgres to MySQL

Browse pgsql-hackers by date

  From Date Subject
Next Message Shay Rojansky 2016-07-31 15:05:28 Re: Slowness of extended protocol
Previous Message Tatsuo Ishii 2016-07-31 12:48:15 Re: Slowness of extended protocol