Re: zero (o) return code on failure of pg_dump

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Derek Main <djm(at)ct(dot)ucs(dot)co(dot)za>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: zero (o) return code on failure of pg_dump
Date: 2003-07-01 19:29:47
Message-ID: 10857.1057087787@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Derek Main <djm(at)ct(dot)ucs(dot)co(dot)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

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Daniel Seichter 2003-07-02 07:18:11 Advantages and disadvantages of more than one dbserver on one server
Previous Message Pedro Salazar 2003-07-01 18:38:52 embed postgresql installation : tuning size/performance [off-topic]