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

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Srinath Reddy <srinath2133(at)gmail(dot)com>
Cc: Andrew Dunstan <andrew(at)dunslane(dot)net>, pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: why -Fdance archive format option works with ./pg_restore but not with ./pg_dump?
Date: 2025-01-25 16:25:01
Message-ID: 732095.1737822301@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Srinath Reddy <srinath2133(at)gmail(dot)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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andres Freund 2025-01-25 16:44:54 Re: Reorder shutdown sequence, to flush pgstats later
Previous Message Andrew Dunstan 2025-01-25 16:18:35 Re: why -Fdance archive format option works with ./pg_restore but not with ./pg_dump?