Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit a9f0e8e

Browse files
committed
In pg_dump, use a bitmap to represent what to include
pg_dump has historically used a simple boolean 'dump' value to indicate if a given object should be included in the dump or not. Instead, use a bitmap which breaks down the components of an object into their distinct pieces and use that bitmap to only include the components requested. This does not include any behavioral change, but is in preperation for the change to dump out just ACLs for objects in pg_catalog. Reviews by Alexander Korotkov, Jose Luis Tallon
1 parent 6c268df commit a9f0e8e

File tree

3 files changed

+833
-685
lines changed

3 files changed

+833
-685
lines changed

src/bin/pg_dump/common.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@ AssignDumpId(DumpableObject *dobj)
443443
dobj->dumpId = ++lastDumpId;
444444
dobj->name = NULL; /* must be set later */
445445
dobj->namespace = NULL; /* may be set later */
446-
dobj->dump = true; /* default assumption */
446+
dobj->dump = DUMP_COMPONENT_ALL; /* default assumption */
447447
dobj->ext_member = false; /* default assumption */
448448
dobj->dependencies = NULL;
449449
dobj->nDeps = 0;

0 commit comments

Comments
 (0)