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