Content-Length: 271381 | pFad | http://github.com/postgrespro/postgres_cluster/commit/fa6075e5515c6878b2c1fe1c6435dd7ed847857d

0A Fix improper usage of 'dump' bitmap · postgrespro/postgres_cluster@fa6075e · GitHub
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres_cluster/commit/fa6075e5515c6878b2c1fe1c6435dd7ed847857d

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy