Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YoAqz-00021n-7W for pgsql-bugs@arkaria.postgresql.org; Fri, 01 May 2015 13:19:41 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YoAqy-0003sh-Mn for pgsql-bugs@arkaria.postgresql.org; Fri, 01 May 2015 13:19:40 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YoAqy-0003sO-3T for pgsql-bugs@postgresql.org; Fri, 01 May 2015 13:19:40 +0000 Received: from momjian.us ([72.94.173.45]) by magus.postgresql.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1YoAqv-0001JK-44 for pgsql-bugs@postgresql.org; Fri, 01 May 2015 13:19:39 +0000 Received: from bruce by momjian.us with local (Exim 4.72) (envelope-from ) id 1YoAqt-0001Fd-D1; Fri, 01 May 2015 09:19:35 -0400 Date: Fri, 1 May 2015 09:19:35 -0400 From: Bruce Momjian To: Tom Lane Cc: mage@mage.li, pgsql-bugs@postgresql.org Subject: Re: BUG #12843: pg_dump -O inserts four unwanted lines to the end of the dump Message-ID: <20150501131935.GH6342@momjian.us> References: <20150309091242.2544.58018@wrigleys.postgresql.org> <20150501005759.GA6342@momjian.us> <37327.1430454050@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <37327.1430454050@sss.pgh.pa.us> User-Agent: Mutt/1.5.20 (2009-06-14) X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org On Thu, Apr 30, 2015 at 09:20:50PM -0700, Tom Lane wrote: > Bruce Momjian 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 http://momjian.us EnterpriseDB http://enterprisedb.com + Everyone has their own god. + -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs