pg_dump doesn't report failure - Mailing list pgsql-hackers

From Christopher Kings-Lynne
Subject pg_dump doesn't report failure
Date
Msg-id GNELIHDDFBOCMGBFGEFOKEKMCBAA.chriskl@familyhealth.com.au
Whole thread Raw
Responses Re: pg_dump doesn't report failure  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
I was just bitten by an issue in pg_dump where if the table it is to dump
doesn't exist, it doesn't return an error or anything!  We only just
realised that a dump script we wrote had a typo in it, and all our 'backups'
are invalid...

This is the current CVS behaviour:

bash-2.05$ pg_dump -a -t badtable mydb
--
-- Selected TOC Entries:
--

Where 'badtable' is the name of a table that doesn't exist.

Should this beheaviour be at least modified to write something to stderr?

Chris



pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: new module contrib/tree for 7.2 ?
Next
From: Brent Verner
Date:
Subject: Re: [PATCHES] system catalog relation of a table and a serial sequence