pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Nathan Bossart <nathandbossart@gmail.com>
To: Peter Eisentraut <peter@eisentraut.org>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>
Cc: pgsql@j-davis.com
Subject: Re: pg_dump --with-* options
Date: Fri, 6 Jun 2025 10:39:56 -0500
Message-ID: <aEMLzPQtjRbj2R7X@nathan> (raw)
In-Reply-To: <7cc52488-f876-4ad3-affd-6e4b0ef0cb09@eisentraut.org>
References: <7cc52488-f876-4ad3-affd-6e4b0ef0cb09@eisentraut.org>

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





view thread (72+ messages)  latest in thread

Message-ID: <aEMLzPQtjRbj2R7X@nathan>
Permalink:  ../aEMLzPQtjRbj2R7X@nathan/
Also on:    postgresql.org/message-id/aEMLzPQtjRbj2R7X@nathan

 · 

reply

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: nathandbossart@gmail.com, peter@eisentraut.org, pgsql@j-davis.com
  Subject: Re: pg_dump --with-* options
  In-Reply-To: <aEMLzPQtjRbj2R7X@nathan>

* 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