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+b6q_rraok0w0BspDM1aKuZNWPt9mm2qbmVru34KHUZVxGA@mail.gmail.com
Whole thread Raw
In response to Re: why -Fdance archive format option works with ./pg_restore but not with ./pg_dump?  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Thanks Tom and Andrew.

Regards,
Srinath Reddy Sadipiralla,

On Sat, Jan 25, 2025 at 9:55 PM Tom Lane <tgl@sss.pgh.pa.us> wrote:
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: Andres Freund
Date:
Subject: Re: Reorder shutdown sequence, to flush pgstats later
Next
From: Tom Lane
Date:
Subject: Re: Set AUTOCOMMIT to on in script output by pg_dump