mirror of https://github.com/citusdata/citus.git
Merge pull request #2929 from citusdata/fix_pg12_distobject
get_catalog_object_by_oid requires an extra parameter in pg12pull/2911/head
commit
60dc42a3ae
|
@ -94,7 +94,12 @@ ObjectExists(const ObjectAddress *address)
|
|||
HeapTuple objtup;
|
||||
Relation catalog = heap_open(address->classId, AccessShareLock);
|
||||
|
||||
#if PG_VERSION_NUM >= 120000
|
||||
objtup = get_catalog_object_by_oid(catalog, get_object_attnum_oid(
|
||||
address->classId), address->objectId);
|
||||
#else
|
||||
objtup = get_catalog_object_by_oid(catalog, address->objectId);
|
||||
#endif
|
||||
heap_close(catalog, AccessShareLock);
|
||||
if (objtup != NULL)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue