Skip to content

Commit fa6075e

Browse files
committed
Fix improper usage of 'dump' bitmap
Now that 'dump' is a bitmap, we can't simply set it to 'true'. Noticed while debugging the prior issue.
1 parent 848ef42 commit fa6075e

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/bin/pg_dump/pg_dump_sort.c

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -848,9 +848,14 @@ repairTypeFuncLoop(DumpableObject *typeobj, DumpableObject *funcobj)
848848
if (typeInfo->shellType)
849849
{
850850
addObjectDependency(funcobj, typeInfo->shellType->dobj.dumpId);
851-
/* Mark shell type as to be dumped if any such function is */
851+
/*
852+
* Mark shell type (always including the definition, as we need
853+
* the shell type defined to identify the function fully) as to be
854+
* dumped if any such function is
855+
*/
852856
if (funcobj->dump)
853-
typeInfo->shellType->dobj.dump = true;
857+
typeInfo->shellType->dobj.dump = funcobj->dump |
858+
DUMP_COMPONENT_DEFINITION;
854859
}
855860
}
856861

0 commit comments

Comments
 (0)