Re: Patch: Add --no-comments to skip COMMENTs with pg_dump
Michael Paquier <michael.paquier@gmail.com>
From: Michael Paquier <michael.paquier@gmail.com>
To: Robert Haas <robertmhaas@gmail.com>
Cc: Simon Riggs <simon@2ndquadrant.com>, Fabrízio Mello <fabriziomello@gmail.com>, Robins Tharakan <tharakan@gmail.com>, "pgsql-hackers@postgresql.org" <pgsql-hackers@postgresql.org>, David Fetter <david@fetter.org>, Tom Lane <tgl@sss.pgh.pa.us>, "David G. Johnston" <david.g.johnston@gmail.com>, Stephen Frost <sfrost@snowman.net>
Date: 2017-09-02T05:08:20Z
Lists: pgsql-hackers
On Sat, Sep 2, 2017 at 1:53 AM, Robert Haas <robertmhaas@gmail.com> wrote: > On Mon, Aug 21, 2017 at 5:30 PM, Simon Riggs <simon@2ndquadrant.com> wrote: >> Thinking ahead, are we going to add a new --no-objecttype switch every >> time someone wants it? > > I'd personally be fine with --no-whatever for any whatever that might > be a subsidiary property of database objects. We've got > --no-security-labels, --no-tablespaces, --no-owner, and > --no-privileges already, so what's wrong with --no-comments? > > (We've also got --no-publications; I think it's arguable whether that > is the same kind of thing.) And --no-subscriptions in the same bucket. -- Michael
Commits
-
Support --no-comments in pg_dump, pg_dumpall, pg_restore.
- 1368e92e16a0 11.0 landed
-
Improve pg_dump's handling of "special" built-in objects.
- 5955d934194c 11.0 landed