Re: why -Fdance archive format option works with ./pg_restore but not with ./pg_dump? - Mailing list pgsql-hackers

From Srinath Reddy
Subject Re: why -Fdance archive format option works with ./pg_restore but not with ./pg_dump?
Date
Msg-id CAFC+b6pJt2TSJ5gLihcvAZmoO8XTTTRd2AAR+acuyLWu-jgznA@mail.gmail.com
Whole thread Raw
Responses Re: why -Fdance archive format option works with ./pg_restore but not with ./pg_dump?
Re: why -Fdance archive format option works with ./pg_restore but not with ./pg_dump?
List pgsql-hackers
./pg_dump postgres -Fp -f textdump

./pg_restore -Fp -d postgres textdump
pg_restore: error: unrecognized archive format "p"; please specify "c", "d", or "t"

./pg_restore -d postgres textdump
pg_restore: error: input file appears to be a text format dump. Please use psql.

wouldn't it be nice if we get the error message as same as when we didn't gave format option and pg_restore finds the format using _discoverArchiveFormat there it suggests to try psql ,instead of saying "p/plain text" format is a invalid format,as we are doing currently in pg.

thoughts?

Regards,
Srinath Reddy Sadipiralla,

pgsql-hackers by date:

Previous
From: Robins Tharakan
Date:
Subject: Re: Convert sepgsql tests to TAP
Next
From: Pavel Stehule
Date:
Subject: Re: XMLDocument (SQL/XML X030)