mirror of
				https://github.com/postgres/postgres.git
				synced 2025-11-03 09:13:20 +03:00 
			
		
		
		
	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.
This commit is contained in:
		@@ -848,9 +848,14 @@ repairTypeFuncLoop(DumpableObject *typeobj, DumpableObject *funcobj)
 | 
				
			|||||||
	if (typeInfo->shellType)
 | 
						if (typeInfo->shellType)
 | 
				
			||||||
	{
 | 
						{
 | 
				
			||||||
		addObjectDependency(funcobj, typeInfo->shellType->dobj.dumpId);
 | 
							addObjectDependency(funcobj, typeInfo->shellType->dobj.dumpId);
 | 
				
			||||||
		/* Mark shell type as to be dumped if any such function is */
 | 
							/*
 | 
				
			||||||
 | 
							 * Mark shell type (always including the definition, as we need
 | 
				
			||||||
 | 
							 * the shell type defined to identify the function fully) as to be
 | 
				
			||||||
 | 
							 * dumped if any such function is
 | 
				
			||||||
 | 
							 */
 | 
				
			||||||
		if (funcobj->dump)
 | 
							if (funcobj->dump)
 | 
				
			||||||
			typeInfo->shellType->dobj.dump = true;
 | 
								typeInfo->shellType->dobj.dump = funcobj->dump |
 | 
				
			||||||
 | 
																 DUMP_COMPONENT_DEFINITION;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user