From: Teodor Sigaev Date: Wed, 22 Mar 2017 16:51:17 +0000 (+0300) Subject: just compile for 10.0 X-Git-Url: http://www.sigaev.ru/git/gitweb.cgi?p=gevel.git;a=commitdiff_plain;h=1c698a5b55e360c5e5863c9e0d5b3fe9fd6e23ec just compile for 10.0 --- diff --git a/gevel.c b/gevel.c index bfadb97..f20ec38 100644 --- a/gevel.c +++ b/gevel.c @@ -27,6 +27,10 @@ #if PG_VERSION_NUM >= 80300 #include #endif +#if PG_VERSION_NUM >= 100000 +#include +#include +#endif #include #include "utils/builtins.h" #include "utils/lsyscache.h" @@ -842,7 +846,11 @@ gin_count_estimate(PG_FUNCTION_ARGS) { char *relname=t2c(name); ScanKeyData key; #if PG_VERSION_NUM >= 80400 - TIDBitmap *bitmap = tbm_create(work_mem * 1024L); + TIDBitmap *bitmap = tbm_create(work_mem * 1024L +#if PG_VERSION_NUM >= 100000 + , NULL +#endif + ); #else #define MAXTIDS 1024 ItemPointerData tids[MAXTIDS];