v13 support master
authorTeodor Sigaev <teodor@sigaev.ru>
Wed, 8 Apr 2020 09:53:09 +0000 (12:53 +0300)
committerTeodor Sigaev <teodor@sigaev.ru>
Wed, 8 Apr 2020 09:53:09 +0000 (12:53 +0300)
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)