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

From Tom Lane
Subject Re: why -Fdance archive format option works with ./pg_restore but not with ./pg_dump?
Date
Msg-id 732095.1737822301@sss.pgh.pa.us
Whole thread Raw
In response to Re: why -Fdance archive format option works with ./pg_restore but not with ./pg_dump?  (Srinath Reddy <srinath2133@gmail.com>)
Responses Re: why -Fdance archive format option works with ./pg_restore but not with ./pg_dump?
List pgsql-hackers
Srinath Reddy <srinath2133@gmail.com> writes:
> 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.

Good idea.  I pushed your patch with that addition.

            regards, tom lane



pgsql-hackers by date:

Previous
From: Andrew Dunstan
Date:
Subject: Re: why -Fdance archive format option works with ./pg_restore but not with ./pg_dump?
Next
From: Andres Freund
Date:
Subject: Re: Reorder shutdown sequence, to flush pgstats later