X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.193]) by svr1.postgresql.org (Postfix) with ESMTP id BA38D310D12 for ; Tue, 1 Jul 2003 19:30:46 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (svr1.postgresql.org [64.117.224.193]) (amavisd-new, port 10024) with ESMTP id 13324-02 for ; Tue, 1 Jul 2003 16:30:36 -0300 (ADT) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by svr1.postgresql.org (Postfix) with ESMTP id 255EC310D35 for ; Tue, 1 Jul 2003 16:30:14 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.9/8.12.9) with ESMTP id h61JTlQQ010858; Tue, 1 Jul 2003 15:29:47 -0400 (EDT) To: Derek Main Cc: pgsql-admin@postgresql.org Subject: Re: zero (o) return code on failure of pg_dump In-reply-to: <3F019BA8.1070803@ct.ucs.co.za> References: <3F019BA8.1070803@ct.ucs.co.za> Comments: In-reply-to Derek Main message dated "Tue, 01 Jul 2003 16:33:12 +0200" Date: Tue, 01 Jul 2003 15:29:47 -0400 Message-ID: <10857.1057087787@sss.pgh.pa.us> From: Tom Lane X-Archive-Number: 200307/22 X-Sequence-Number: 9363 Derek Main writes: > I run a pg-dump in one of my scripts and want to send an e-mail on > failure (i.e. non-zero return code). This particular dump ran out of > disk space and failed. However, the return code is zero! That seems like a bug. Looking at current sources, it seems that pg_dump will always exit(1) if it detects a failure --- did it not notice the failure? regards, tom lane