Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Xv8ho-0008QE-Ln for pgsql-bugs@arkaria.postgresql.org; Sun, 30 Nov 2014 17:54:44 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Xv8ho-0004SK-6j for pgsql-bugs@arkaria.postgresql.org; Sun, 30 Nov 2014 17:54:44 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Xv8hn-0004SE-IS for pgsql-bugs@postgresql.org; Sun, 30 Nov 2014 17:54:43 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Xv8hk-0006T3-06 for pgsql-bugs@postgresql.org; Sun, 30 Nov 2014 17:54:42 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id sAUHsbSU021685; Sun, 30 Nov 2014 12:54:37 -0500 From: Tom Lane To: David G Johnston cc: pgsql-bugs@postgresql.org Subject: Re: BUG #12106: pg_dump does not resolve circular dependency In-reply-to: <1417369131702-5828698.post@n5.nabble.com> References: <20141130153705.5731.4615@wrigleys.postgresql.org> <9283.1417365074@sss.pgh.pa.us> <1417369131702-5828698.post@n5.nabble.com> Comments: In-reply-to David G Johnston message dated "Sun, 30 Nov 2014 10:38:51 -0700" Date: Sun, 30 Nov 2014 12:54:37 -0500 Message-ID: <21684.1417370077@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 David G Johnston writes: > Tom Lane-2 wrote >> Unless you can demonstrate a credible use-case for this, I don't think >> it's worth adding complexity to pg_dump for. > Assuming: "Even worse, pg_dump returns 0 as the exit code, even though > the dump is not usable. It merely issues a warning on output." is > confirmed I would assume that it would need to be fixed. "Not usable" is hyperbole. The actual effect would be that the particular function would fail to restore, but the rest of it would be fine. I should note that it's not like we've never seen any other cases of pg_dump failing to deal with circular dependencies. Issuing a warning and pushing on is *way* better than refusing the dump entirely. 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