From: Tom Lane <tgl@sss.pgh.pa.us>
To: Florents Tselai <florents.tselai@gmail.com>
Cc: pgsql-hackers <pgsql-hackers@lists.postgresql.org>
Subject: Re: Docs pg_restore: Shouldn't there be a note about -n ?
Date: Sat, 21 Sep 2024 14:22:49 -0400
Message-ID: <2745562.1726942969@sss.pgh.pa.us> (raw)
In-Reply-To: <CA+v5N42vcqdCT+yr2CnjjKYoD0aGaJ_ipARSvPitj_U=P0Twqg@mail.gmail.com>
References: <284C4D55-4F90-4AA0-84C8-1E6A28DDF271@gmail.com>
<CA+v5N42vcqdCT+yr2CnjjKYoD0aGaJ_ipARSvPitj_U=P0Twqg@mail.gmail.com>
Florents Tselai <florents.tselai@gmail.com> writes:
> Ah, swapped them by mistake on the previous email:
> They're both available in the pg_dump and note on -n missing in pg_restore.
> The question remains though:
> Shouldn’t there be a note about -n in pg_restore ?
Probably. I see that pg_dump has a third copy of the exact same
note for "-e". pg_restore lacks that switch for some reason,
but this is surely looking mighty duplicative. I propose getting
rid of the per-switch Notes and putting a para into the Notes
section, along the lines of
When -e, -n, or -t is specified, pg_dump makes no attempt to dump
any other database objects that the selected object(s) might
depend upon. Therefore, there is no guarantee that the results of
a selective dump can be successfully restored by themselves into a
clean database.
and mutatis mutandis for pg_restore.
regards, tom lane
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-hackers@postgresql.org
Cc: tgl@sss.pgh.pa.us, florents.tselai@gmail.com
Subject: Re: Docs pg_restore: Shouldn't there be a note about -n ?
In-Reply-To: <2745562.1726942969@sss.pgh.pa.us>
References: <284C4D55-4F90-4AA0-84C8-1E6A28DDF271@gmail.com> <CA+v5N42vcqdCT+yr2CnjjKYoD0aGaJ_ipARSvPitj_U=P0Twqg@mail.gmail.com> <2745562.1726942969@sss.pgh.pa.us>
* 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