On Sat, May 6, 2017 at 12:01 AM, Peter Eisentraut <peter.eisentr...@2ndquadrant.com> wrote: > On 5/2/17 21:44, Noah Misch wrote: >>> I wonder if we should have an --no-subscriptions option, now that they >>> are dumped by default, just like we have --no-blobs, --no-owner, >>> --no-password, --no-privileges, --no-acl, --no-tablespaces, and >>> --no-security-labels. It seems like there is probably a fairly large >>> use case for excluding subscriptions even if you have sufficient >>> permissions to dump them.
Reading the thread for the first time, I am +1 on that. It feels more natural to have subscriptions by default when taking a dump, and it is useful as well to be able to override the default so as they are not included. On Tue, May 9, 2017 at 1:26 AM, Peter Eisentraut <peter.eisentr...@2ndquadrant.com> wrote: > On 5/6/17 14:50, Noah Misch wrote: >>> I consider this item low priority and don't plan to work on it before >>> all the other open items under logical replication are addressed. >>> >>> (Here, working on it would include thinking further about whether it is >>> necessary at all or what alternatives might look like.) >> >> That's informative, but it's not a valid status update. This PostgreSQL 10 >> open item is past due for your status update. Kindly send a valid status >> update within 24 hours. Refer to the policy on open item ownership: >> https://www.postgresql.org/message-id/20170404140717.GA2675809%40tornado.leadboat.com > > Fair enough. I have set myself a reminder to report back on May 30. I think that it would be nice to fix that even before beta, so attached is a patch to add --no-subscriptions to pg_dump, pg_dumpall and pg_restore. -- Michael
dump-no-subs.patch
Description: Binary data
-- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers