projects
/
online_analyze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
398e710
)
Changed call AllocSetContextCreate in the online_analyze.c
author
Teodor Sigaev
<teodor@sigaev.ru>
Tue, 24 Jul 2018 13:31:42 +0000
(16:31 +0300)
committer
Teodor Sigaev
<teodor@sigaev.ru>
Tue, 24 Jul 2018 13:31:42 +0000
(16:31 +0300)
Victor Spirin
online_analyze.c
patch
|
blob
|
history
diff --git
a/online_analyze.c
b/online_analyze.c
index
4396550
..
77c1f8b
100644
(file)
--- a/
online_analyze.c
+++ b/
online_analyze.c
@@
-947,6
+947,7
@@
onlineAnalyzeHookerUtility(
}
#endif
}
#endif
+
static void
relstatsInit(void)
{
static void
relstatsInit(void)
{
@@
-966,17
+967,20
@@
relstatsInit(void)
else
{
Assert(relstats == NULL);
else
{
Assert(relstats == NULL);
+
+#if PG_VERSION_NUM < 90600
onlineAnalyzeMemoryContext =
AllocSetContextCreate(CacheMemoryContext,
onlineAnalyzeMemoryContext =
AllocSetContextCreate(CacheMemoryContext,
-
"online_analyze storage context",
-#if PG_VERSION_NUM < 90600
-
ALLOCSET_DEFAULT_MIN
SIZE,
- ALLOCSET_DEFAULT_INITSIZE,
- ALLOCSET_DEFAULT_MAXSIZE
+ "online_analyze storage context",
+ ALLOCSET_DEFAULT_MINSIZE,
+
ALLOCSET_DEFAULT_INIT
SIZE,
+ ALLOCSET_DEFAULT_MAXSIZE
+ );
#else
#else
- ALLOCSET_DEFAULT_SIZES
+ onlineAnalyzeMemoryContext =
+ AllocSetContextCreate(CacheMemoryContext,
+ "online_analyze storage context", ALLOCSET_DEFAULT_SIZES);
#endif
#endif
- );
}
hash_ctl.hcxt = onlineAnalyzeMemoryContext;
}
hash_ctl.hcxt = onlineAnalyzeMemoryContext;