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

From Nathan Bossart
Subject Re: pg_dump --with-* options
Date
Msg-id aEMLzPQtjRbj2R7X@nathan
Whole thread Raw
In response to pg_dump --with-* options  (Peter Eisentraut <peter@eisentraut.org>)
List pgsql-hackers
On Fri, Jun 06, 2025 at 09:14:32AM +0200, Peter Eisentraut wrote:
> We have
> 
>   -a, --data-only      dump only the data, not the schema or statistics
>   --no-data            do not dump data
>   --with-data          dump the data  # this one is new
> 
> (and there is also --section=data), and then three analogous options for
> "schema" and "statistics".
> 
> What is the purpose of the --with-data option?  Dumping the data is the
> default.  Is this to override an earlier --no-data option?

I believe the idea is that these will allow folks to be explicit about what
they want instead of needing to understand the defaults for every
component.

-- 
nathan



pgsql-hackers by date:

Previous
From: Nathan Bossart
Date:
Subject: Re: CHECKPOINT unlogged data
Next
From: Jacob Champion
Date:
Subject: Re: Unnecessary connection overhead due copy-on-write (mainly openssl)