Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Yo2Rq-0001Zm-CI for pgsql-bugs@arkaria.postgresql.org; Fri, 01 May 2015 04:21:10 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Yo2Rp-0008Hq-Sb for pgsql-bugs@arkaria.postgresql.org; Fri, 01 May 2015 04:21:09 +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 1Yo2Ro-0008Gg-IZ for pgsql-bugs@postgresql.org; Fri, 01 May 2015 04:21:08 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1Yo2Rl-00022F-TY for pgsql-bugs@postgresql.org; Fri, 01 May 2015 04:21:07 +0000 Received: from pro.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id t414KlFM021694; Fri, 1 May 2015 00:20:47 -0400 From: Tom Lane To: Bruce Momjian 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 In-reply-to: <20150501005759.GA6342@momjian.us> References: <20150309091242.2544.58018@wrigleys.postgresql.org> <20150501005759.GA6342@momjian.us> Comments: In-reply-to Bruce Momjian message dated "Thu, 30 Apr 2015 20:57:59 -0400" Date: Thu, 30 Apr 2015 21:20:50 -0700 Message-ID: <37327.1430454050@sss.pgh.pa.us> 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 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. regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs