projects
/
gevel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
bd8b8b0
)
just compile for 10.0
author
Teodor Sigaev
<teodor@sigaev.ru>
Wed, 22 Mar 2017 16:51:17 +0000
(19:51 +0300)
committer
Teodor Sigaev
<teodor@sigaev.ru>
Wed, 22 Mar 2017 16:51:17 +0000
(19:51 +0300)
gevel.c
patch
|
blob
|
history
diff --git
a/gevel.c
b/gevel.c
index
bfadb97
..
f20ec38
100644
(file)
--- a/
gevel.c
+++ b/
gevel.c
@@
-27,6
+27,10
@@
#if PG_VERSION_NUM >= 80300
#include <tsearch/ts_utils.h>
#endif
#if PG_VERSION_NUM >= 80300
#include <tsearch/ts_utils.h>
#endif
+#if PG_VERSION_NUM >= 100000
+#include <utils/regproc.h>
+#include <utils/varlena.h>
+#endif
#include <utils/tqual.h>
#include "utils/builtins.h"
#include "utils/lsyscache.h"
#include <utils/tqual.h>
#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
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];
#else
#define MAXTIDS 1024
ItemPointerData tids[MAXTIDS];