Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit a9f0e8e

Browse filesBrowse 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
Copy full SHA for a9f0e8e

File tree

Expand file treeCollapse file tree

3 files changed

+833
-685
lines changed
Filter options
Expand file treeCollapse file tree

3 files changed

+833
-685
lines changed

‎src/bin/pg_dump/common.c

Copy file name to clipboardExpand all lines: src/bin/pg_dump/common.c
+1-1Lines changed: 1 addition & 1 deletion
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.