Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UAlkb-0000Vn-Ks for pgsql-bugs@arkaria.postgresql.org; Wed, 27 Feb 2013 18:29:10 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1UAlkb-0001vH-1i for pgsql-bugs@arkaria.postgresql.org; Wed, 27 Feb 2013 18:29:09 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UAlkZ-0001uZ-On for pgsql-bugs@postgresql.org; Wed, 27 Feb 2013 18:29:07 +0000 Received: from eisentraut.org ([85.214.91.16] helo=gattler.pezone.net) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UAlkY-0008SB-GT for pgsql-bugs@postgresql.org; Wed, 27 Feb 2013 18:29:07 +0000 Received: from jesse.mybdev.com (unknown [204.145.120.11]) by gattler.pezone.net (Postfix) with ESMTPSA id 93DE75A83A0; Wed, 27 Feb 2013 18:29:04 +0000 (UTC) Message-ID: <512E509C.8030300@gmx.net> Date: Wed, 27 Feb 2013 13:29:48 -0500 From: Peter Eisentraut User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:17.0) Gecko/20130216 Thunderbird/17.0.3 MIME-Version: 1.0 To: adam.tomjack@zuerchertech.com CC: pgsql-bugs@postgresql.org Subject: Re: BUG #7906: pg_dump exits successfully after an error References: In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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 2/25/13 7:59 PM, adam.tomjack@zuerchertech.com wrote: > I have a database that uses a user-defined datatype. If the .so file > implementing that type is missing, pg_dump will fail when dumping a table > which uses that type, but it will still exit with status 0. The dump file > will be truncated and invalid. > > Output: > > pg_dump: Dumping the contents of table "foo" failed: PQgetResult() failed. > pg_dump: Error message from server: ERROR: could not access file > "bar-type": No such file or directory > pg_dump: The command was: COPY public.foo (baz) TO stdout; I can reproduce exactly this output, but the exit status is 1. Can we see the exact pg_dump command that you are executing? -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs