Re: pg_dump --with-* options - Mailing list pgsql-hackers

From Fujii Masao
Subject Re: pg_dump --with-* options
Date
Msg-id 56f1a5ab-4852-4bec-883f-ea6b2fc437e5@oss.nttdata.com
Whole thread Raw
In response to Re: pg_dump --with-* options  (Corey Huinker <corey.huinker@gmail.com>)
List pgsql-hackers

On 2025/06/17 4:35, Corey Huinker wrote:
>     I noticed that --statistics (i.e., the current --with-statistics) causes
>     statistics to be dumped even when used with --data-only or --schema-only.
>     So, as far as I understand, here are the possible combinations of dump
>     targets and options:
> 
> 
> Those should also be mutually exclusive, and I'll write up a patch to add them to the checks.

--sequence-data behaves similarly, i.e., it still dumps sequence data
even when used with --schema-only. So I've been thinking of both
--statistics and --sequence-data as options that include additional data,
regardless of whether --*-only is specified.

It seems better to keep their behavior consistent to avoid confusing users.

Regards,

-- 
Fujii Masao
NTT DATA Japan Corporation




pgsql-hackers by date:

Previous
From: Nathan Bossart
Date:
Subject: Re: pg_dump --with-* options
Next
From: Fujii Masao
Date:
Subject: Re: pg_dump --with-* options