pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Nathan Bossart <nathan@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: pg_dump: Add dumpSchema and dumpData derivative flags.
Date: Mon, 25 Nov 2024 22:38:41 +0000
Message-ID: <E1tFhj7-003WYD-E7@gemulon.postgresql.org> (raw)

pg_dump: Add dumpSchema and dumpData derivative flags.

Various parts of pg_dump consult the --schema-only and --data-only
options to determine whether to run a section of code.  While this
is simple enough for two mutually-exclusive options, it will become
progressively more complicated as more options are added.  In
anticipation of that, this commit introduces new internal flags
called dumpSchema and dumpData, which are derivatives of
--schema-only and --data-only.  This commit also removes the
schemaOnly and dataOnly members from the dump/restore options
structs to prevent their use elsewhere.

Note that this change neither adds new user-facing command-line
options nor changes the existing --schema-only and --data-only
options.

Author: Corey Huinker
Reviewed-by: Jeff Davis
Discussion: https://postgr.es/m/CADkLM%3DcQgghMJOS8EcAVBwRO4s1dUVtxGZv5gLPfZkQ1nL1gzA%40mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/96a81c1be929d122719bd289f6e24824f37e1ff6

Modified Files
--------------
src/bin/pg_dump/pg_backup.h          |  12 +-
src/bin/pg_dump/pg_backup_archiver.c |  34 +++---
src/bin/pg_dump/pg_dump.c            | 208 ++++++++++++++++++-----------------
src/bin/pg_dump/pg_restore.c         |  14 ++-
4 files changed, 144 insertions(+), 124 deletions(-)



Message-ID: <E1tFhj7-003WYD-E7@gemulon.postgresql.org>
Permalink:  ../E1tFhj7-003WYD-E7@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1tFhj7-003WYD-E7@gemulon.postgresql.org

 · 

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-committers@postgresql.org
  Cc: nathan@postgresql.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: pg_dump: Add dumpSchema and dumpData derivative flags.
  In-Reply-To: <E1tFhj7-003WYD-E7@gemulon.postgresql.org>

* 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