v13 support
[smlar.git] / smlar.c
diff --git a/smlar.c b/smlar.c
index ce7e2ad..672e453 100644 (file)
--- a/smlar.c
+++ b/smlar.c
@@ -30,6 +30,10 @@ PG_MODULE_MAGIC;
 #define SNAPSHOT SnapshotNow
 #endif
 
+#if PG_VERSION_NUM >= 130000
+#define heap_open(r, l)                        table_open((r), (l))
+#define heap_close(r, l)               table_close((r), (l))
+#endif
 
 static Oid
 getDefaultOpclass(Oid amoid, Oid typid)