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

From: Srinath Reddy <srinath2133(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, 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:51:42
Message-ID: CAFC+b6q_rraok0w0BspDM1aKuZNWPt9mm2qbmVru34KHUZVxGA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Thanks Tom and Andrew.

Regards,
Srinath Reddy Sadipiralla,
EDB: http://www.enterprisedb.com

On Sat, Jan 25, 2025 at 9:55 PM Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:

> 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

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2025-01-25 17:45:34 Re: Set AUTOCOMMIT to on in script output by pg_dump
Previous Message Andres Freund 2025-01-25 16:44:54 Re: Reorder shutdown sequence, to flush pgstats later