From: Jeff Davis <pgsql@j-davis.com>
To: Corey Huinker <corey.huinker@gmail.com>
To: Álvaro Herrera <alvherre@kurilemu.de>
Cc: Fujii Masao <masao.fujii@oss.nttdata.com>
Cc: Robert Haas <robertmhaas@gmail.com>
Cc: Nathan Bossart <nathandbossart@gmail.com>
Cc: Peter Eisentraut <peter@eisentraut.org>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>
Subject: Re: pg_dump --with-* options
Date: Fri, 01 Aug 2025 13:02:22 -0700
Message-ID: <959aacf5c6b102e1541205dc7a30f688d2ddbaec.camel@j-davis.com> (raw)
In-Reply-To: <CADkLM=fw9cbnjTAg8YoS_Rzo8Ohy4TgVzevSZ8g2WoF2Nx0JJQ@mail.gmail.com>
References: <cf21ea99caa39e89d26b8d83d78610db8938bdba.camel@j-davis.com>
<202507302004.bjwvd3jk6rh6@alvherre.pgsql>
<CADkLM=fw9cbnjTAg8YoS_Rzo8Ohy4TgVzevSZ8g2WoF2Nx0JJQ@mail.gmail.com>
On Thu, 2025-07-31 at 16:28 -0400, Corey Huinker wrote:
>
> In general, I like the idea of --include, but it would need to be
> consistent in behavior across pg_dump/pg_restore/pg_upgrade(if
> applicable).
How should you exclude stats when doing pg_restore? Presumably, --
include=data,schema. But it's a bit strange if "--include" is the only
way to exclude something.
There are enough nuances and details here that I think the next step is
for someone to turn the idea for --include into a reviewable patch, so
that we can compare it to what we have now and see if people generally
think it's an improvement over what we have now.
Otherwise, we should just proceed with:
https://www.postgresql.org/message-id/40cedfc22da152928a74d472708aaadb8855d8d9.camel@j-davis.com
and close the open item.
Regards,
Jeff Davis
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 using the --to and --cc options:
reply via email
To: pgsql-hackers@postgresql.org
Cc: pgsql@j-davis.com, corey.huinker@gmail.com, alvherre@kurilemu.de, masao.fujii@oss.nttdata.com, robertmhaas@gmail.com, nathandbossart@gmail.com, peter@eisentraut.org
Subject: Re: pg_dump --with-* options
In-Reply-To: <959aacf5c6b102e1541205dc7a30f688d2ddbaec.camel@j-davis.com>
* 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