pgsql: pg_dump: Add dumpSchema and dumpData derivative flags. - Mailing list pgsql-committers

From Nathan Bossart
Subject pgsql: pg_dump: Add dumpSchema and dumpData derivative flags.
Date
Msg-id E1tFhj7-003WYD-E7@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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(-)


pgsql-committers by date:

Previous
From: Thomas Munro
Date:
Subject: pgsql: Clean up reference in meson.build.
Next
From: Noah Misch
Date:
Subject: pgsql: Avoid "you don't own a lock of type ExclusiveLock" in GRANT TABL