Re: BUG #12843: pg_dump -O inserts four unwanted lines to the end of the dump - Mailing list pgsql-bugs

From Bruce Momjian
Subject Re: BUG #12843: pg_dump -O inserts four unwanted lines to the end of the dump
Date
Msg-id 20150501131935.GH6342@momjian.us
Whole thread Raw
In response to Re: BUG #12843: pg_dump -O inserts four unwanted lines to the end of the dump  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-bugs
On Thu, Apr 30, 2015 at 09:20:50PM -0700, Tom Lane wrote:
> Bruce Momjian <bruce@momjian.us> writes:
> > I looked into this and -O says it controls the setting of _ownership_ of
> > objects, but it does not control the _permissions_ on objects.  Is there
> > a use for not restoring permissions too?
>
> Indeed.  --no-privileges seems like the answer to the OP's complaint.

And --no-privileges does suppress the lines he wanted removed.

--
  Bruce Momjian  <bruce@momjian.us>        http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

  + Everyone has their own god. +

pgsql-bugs by date:

Previous
From: Robert Haas
Date:
Subject: Re: Failure to coerce unknown type to specific type
Next
From: Bruce Momjian
Date:
Subject: Re: BUG #12845: The GB18030 encoding doesn't support Unicode characters over 0xFFFF