Re: zero (o) return code on failure of pg_dump - Mailing list pgsql-admin

From Tom Lane
Subject Re: zero (o) return code on failure of pg_dump
Date
Msg-id 10857.1057087787@sss.pgh.pa.us
Whole thread Raw
In response to zero (o) return code on failure of pg_dump  (Derek Main <djm@ct.ucs.co.za>)
List pgsql-admin
Derek Main <djm@ct.ucs.co.za> 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

pgsql-admin by date:

Previous
From: Pedro Salazar
Date:
Subject: embed postgresql installation : tuning size/performance [off-topic]
Next
From: "Daniel Seichter"
Date:
Subject: Re: postgreSQL users = LDAP users?