Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UAO2g-0007we-JO for pgsql-bugs@arkaria.postgresql.org; Tue, 26 Feb 2013 17:10:14 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1UAO2g-00010t-1N for pgsql-bugs@arkaria.postgresql.org; Tue, 26 Feb 2013 17:10:14 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UA8tG-0001jZ-84 for pgsql-bugs@postgresql.org; Tue, 26 Feb 2013 00:59:30 +0000 Received: from mahout.postgresql.org ([2001:4800:7903:4::123]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UA8tE-00029O-PA for pgsql-bugs@postgresql.org; Tue, 26 Feb 2013 00:59:29 +0000 Received: from [204.145.124.246] (helo=wrigleys.postgresql.org) by mahout.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UA8tE-0005iT-Ge for pgsql-bugs@postgresql.org; Tue, 26 Feb 2013 00:59:28 +0000 Received: from www-data by wrigleys.postgresql.org with local (Exim 4.72) (envelope-from ) id 1UA8tE-0004a6-9K for pgsql-bugs@postgresql.org; Tue, 26 Feb 2013 00:59:28 +0000 Date: Tue, 26 Feb 2013 00:59:28 +0000 Message-Id: Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: BUG #7906: pg_dump exits successfully after an error To: pgsql-bugs@postgresql.org From: adam.tomjack@zuerchertech.com X-Pg-Spam-Score: -2.6 (--) 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 The following bug has been logged on the website: Bug reference: 7906 Logged by: Adam Tomjack Email address: adam.tomjack@zuerchertech.com PostgreSQL version: 9.2.1 Operating system: Linux 2.6.32-39-server #86-Ubuntu SMP x86_64 Description:=20=20=20=20=20=20=20=20 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; --=20 Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs