Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commitfa6075e

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 parent848ef42 commitfa6075e

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)

[8]ページ先頭

©2009-2025 Movatter.jp