Skip objects which should be created within initdb while resolving dependencies

velioglu/skip_initdb_objects
Burak Velioglu 2022-02-23 14:00:07 +03:00
parent 9a8f11a086
commit fd39ccf75b
No known key found for this signature in database
GPG Key ID: F6827E620F6549C6
1 changed files with 9 additions and 0 deletions

View File

@ -1006,6 +1006,15 @@ ApplyAddToDependencyList(ObjectAddressCollector *collector,
return;
}
/*
* Objects with the id smaller than FirstNormalObjectId should be created within
* initdb. So, we should skip such objects.
*/
if (address.objectId < FirstNormalObjectId)
{
return;
}
CollectObjectAddress(collector, &address);
}