From 800d81bc85da64ff3ef66e12aed1d4e1e54fc006 Mon Sep 17 00:00:00 2001 From: Teodor Sigaev Date: Tue, 3 Mar 2020 18:37:53 +0300 Subject: [PATCH] v13 support --- plantuner.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plantuner.c b/plantuner.c index b22ef9c..f87dcea 100644 --- a/plantuner.c +++ b/plantuner.c @@ -49,6 +49,11 @@ PG_MODULE_MAGIC; +#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 int nDisabledIndexes = 0; static Oid *disabledIndexes = NULL; static char *disableIndexesOutStr = ""; -- 2.46.1