Skip to content

Commit

Permalink
support build on pg11
Browse files Browse the repository at this point in the history
  • Loading branch information
pramsey committed Dec 18, 2024
1 parent 71d7f91 commit a0a288a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions ogr_fdw.c
Original file line number Diff line number Diff line change
Expand Up @@ -291,9 +291,6 @@ get_extension_nsp_oid(Oid extOid)
ObjectIdGetDatum(extOid));
#endif /* PG_VERSION_NUM */




scandesc = systable_beginscan(rel, ExtensionOidIndexId, true,
NULL, 1, entry);

Expand All @@ -307,7 +304,11 @@ get_extension_nsp_oid(Oid extOid)

systable_endscan(scandesc);

table_close(rel, AccessShareLock);
#if PG_VERSION_NUM < 120
heap_close(rel, AccessShareLock);
#else
table_close(rel, AccessShareLock);
#endif

return result;
}
Expand Down

0 comments on commit a0a288a

Please sign in to comment.