improve pg_restore warning on text dump input - Mailing list pgsql-hackers

From Andrew Dunstan
Subject improve pg_restore warning on text dump input
Date
Msg-id 4F034C38.4020103@dunslane.net
Whole thread Raw
Responses Re: improve pg_restore warning on text dump input  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
 From time to time there are complaints because people mistakenly feed a
text format dump to pg_restore and get back a somewhat cryptic message
about the file not being a valid archive. It's been suggested that we
should have pg_restore run the file through psql, but that would involve
more work than I at least care to give the problem. However, I think we
should give a nicer message, suggesting the user try feeding the file to
psql instead. The attached small patch does that.

cheers

andrew



Attachment

pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: ALTER TABLE lock strength reduction patch is unsafe
Next
From: Tom Lane
Date:
Subject: Re: improve pg_restore warning on text dump input