From: | Joao Miguel Ferreira <joao(dot)miguel(dot)c(dot)ferreira(at)gmail(dot)com> |
---|---|
To: | Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com> |
Cc: | pgsql-general <pgsql-general(at)lists(dot)postgresql(dot)org> |
Subject: | Re: pg_dump save command in output |
Date: | 2021-10-03 17:15:54 |
Message-ID: | CALyyT7SosnM2LwRGKW8xCB9jG5QnsvWT_bGWASkUGqWQ1Zvp3g@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Sun, Oct 3, 2021 at 6:03 PM Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
wrote:
> On 10/3/21 9:56 AM, Joao Miguel Ferreira wrote:
> > Hello all,
> >
> > is there a way to ask pg_dump to save a comment in the output file with
> > the full command it is executing ?
>
> No.
>
> What information is the comment trying to convey?
>
I just wanted to save the command inside the SQL file to be able to
"remember" it later. ideally I would open the file on some text editor and
see the original pg_dump command on the few first lines, as a comment
-- original command was: psql -h some_host -p .....
>
> Are you dumping in plain or custom format?
>
plain (SQL)
>
> >
> > thank you
> > Joao
> >
>
>
> --
> Adrian Klaver
> adrian(dot)klaver(at)aklaver(dot)com
>
From | Date | Subject | |
---|---|---|---|
Next Message | Karsten Hilbert | 2021-10-03 17:23:17 | Re: pg_dump save command in output |
Previous Message | Adrian Klaver | 2021-10-03 17:03:33 | Re: pg_dump save command in output |