From: Karsten Hilbert <Karsten.Hilbert@gmx.net>
To: pgsql-general@lists.postgresql.org
Subject: Re: pg_dump save command in output
Date: Sun, 3 Oct 2021 19:23:17 +0200
Message-ID: <YVnnBTxpVwxOYYy4@hermes.hilbert.loc> (raw)
In-Reply-To: <CALyyT7SosnM2LwRGKW8xCB9jG5QnsvWT_bGWASkUGqWQ1Zvp3g@mail.gmail.com>
References: <CALyyT7ToQfV8R_L6Xo08QtZzGN5_G7B7wfxKu0X_m71Yb-bf3g@mail.gmail.com>
<ceed63b3-64f7-ca43-62f1-abc80a5f4e11@aklaver.com>
<CALyyT7SosnM2LwRGKW8xCB9jG5QnsvWT_bGWASkUGqWQ1Zvp3g@mail.gmail.com>
Am Sun, Oct 03, 2021 at 06:15:54PM +0100 schrieb Joao Miguel Ferreira:
> 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)
Run the dump from a bash script which pre-catenates (Is that
even a word ? it is now :) the command into the plain (SQL)
output after the fact.
Karsten
--
GPG 40BE 5B0E C98E 1713 AFA6 5BC0 3BEA AC80 7D4F C89B
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: Karsten.Hilbert@gmx.net
Subject: Re: pg_dump save command in output
In-Reply-To: <YVnnBTxpVwxOYYy4@hermes.hilbert.loc>
References: <CALyyT7ToQfV8R_L6Xo08QtZzGN5_G7B7wfxKu0X_m71Yb-bf3g@mail.gmail.com> <ceed63b3-64f7-ca43-62f1-abc80a5f4e11@aklaver.com> <CALyyT7SosnM2LwRGKW8xCB9jG5QnsvWT_bGWASkUGqWQ1Zvp3g@mail.gmail.com> <YVnnBTxpVwxOYYy4@hermes.hilbert.loc>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox