X-Git-Url: http://sigaev.ru/git/gitweb.cgi?p=plantuner.git;a=blobdiff_plain;f=plantuner.c;h=f87dcea21ffe4202225b5a9a3241d28880e661d1;hp=b22ef9cf00a6a80f84d2cefa23e96b91337ce2d5;hb=800d81bc85da64ff3ef66e12aed1d4e1e54fc006;hpb=7c276460e4a4052e454b9c44148346e7286eb280 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 = "";