From 44821f12648b655adfd9924b99d40b372c75df5e Mon Sep 17 00:00:00 2001 From: Mehmet Yilmaz Date: Wed, 9 Jul 2025 12:19:11 +0000 Subject: [PATCH] Update GetRelationIdentityOrPK to include deferred_ok parameter for PG18 compatibility --- src/backend/distributed/operations/node_protocol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/distributed/operations/node_protocol.c b/src/backend/distributed/operations/node_protocol.c index 93adcd9e5..680bda22f 100644 --- a/src/backend/distributed/operations/node_protocol.c +++ b/src/backend/distributed/operations/node_protocol.c @@ -748,7 +748,7 @@ GetRelationIdentityOrPK(Relation rel) { /* Determine the index OID of the primary key (PG18 adds a second parameter) */ #if PG_VERSION_NUM >= PG_VERSION_18 - idxoid = RelationGetPrimaryKeyIndex(rel, false); + idxoid = RelationGetPrimaryKeyIndex(rel, false /* deferred_ok */); #else idxoid = RelationGetPrimaryKeyIndex(rel); #endif