Update GetRelationIdentityOrPK to include deferred_ok parameter for PG18 compatibility

pull/8041/merge
Mehmet Yilmaz 2025-07-09 12:19:11 +00:00
parent b4ec0292ea
commit 44821f1264
1 changed files with 1 additions and 1 deletions

View File

@ -748,7 +748,7 @@ GetRelationIdentityOrPK(Relation rel)
{ {
/* Determine the index OID of the primary key (PG18 adds a second parameter) */ /* Determine the index OID of the primary key (PG18 adds a second parameter) */
#if PG_VERSION_NUM >= PG_VERSION_18 #if PG_VERSION_NUM >= PG_VERSION_18
idxoid = RelationGetPrimaryKeyIndex(rel, false); idxoid = RelationGetPrimaryKeyIndex(rel, false /* deferred_ok */);
#else #else
idxoid = RelationGetPrimaryKeyIndex(rel); idxoid = RelationGetPrimaryKeyIndex(rel);
#endif #endif