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

From Derek Main
Subject zero (o) return code on failure of pg_dump
Date
Msg-id 3F019BA8.1070803@ct.ucs.co.za
Whole thread Raw
Responses Re: zero (o) return code on failure of pg_dump
List pgsql-admin
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! Whether the
pg_dump succeeds or fails, zero is always returned. What is the best way
to check for the successful completion of the pg_dump?

I am running PostgreSQL 7.3 and Redhat Linux 6.2.

Thanks.

Regards,
  Derek Main.


pgsql-admin by date:

Previous
From: weigelt@metux.de
Date:
Subject: Re: replication/redundancy
Next
From: Pedro Salazar
Date:
Subject: embed postgresql installation : tuning size/performance [off-topic]