Re: pg_dump save command in output - Mailing list pgsql-general

From Daniel Gustafsson
Subject Re: pg_dump save command in output
Date
Msg-id 64E0A4EF-46C8-4973-A8EF-2F13BCA13C73@yesql.se
Whole thread Raw
In response to pg_dump save command in output  (Joao Miguel Ferreira <joao.miguel.c.ferreira@gmail.com>)
Responses Re: pg_dump save command in output
List pgsql-general
> On 3 Oct 2021, at 18:56, Joao Miguel Ferreira <joao.miguel.c.ferreira@gmail.com> wrote:

> is there a way to ask pg_dump to save a comment in the output file with the full command it is executing ?

I think this idea has some merit.  Given the amount of switches for tailoring
the dump that pg_dump has there is a point to knowing just which ones were
used.  Connection level parameters should probably be scrubbed, but
object-level filtering etc could be handy.

Would you like to try and propose a patch for pg_dump to implement this?

--
Daniel Gustafsson        https://vmware.com/




pgsql-general by date:

Previous
From: Pavel Stehule
Date:
Subject: Re: type bug?
Next
From: Joao Miguel Ferreira
Date:
Subject: Re: pg_dump save command in output