We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent09c591d commit4429d9dCopy full SHA for 4429d9d
aqo.c
@@ -33,7 +33,7 @@ void _PG_init(void);
33
#defineAQO_MODULE_MAGIC(1234)
34
35
/* Strategy of determining feature space for new queries. */
36
-intaqo_mode;
+intaqo_mode=AQO_MODE_CONTROLLED;
37
boolforce_collect_stat;
38
39
/*
aqo_shared.c
@@ -26,8 +26,8 @@ shmem_startup_hook_type prev_shmem_startup_hook = NULL;
26
AQOSharedState*aqo_state=NULL;
27
HTAB*fss_htab=NULL;
28
staticintaqo_htab_max_items=1000;
29
-intfs_max_items=1;/* Max number of different feature spaces in ML model */
30
-intfss_max_items=1;/* Max number of different feature subspaces in ML model */
+intfs_max_items=10000;/* Max number of different feature spaces in ML model */
+intfss_max_items=100000;/* Max number of different feature subspaces in ML model */
31
staticuint32temp_storage_size=1024*1024*10;/* Storage size, in bytes */
32
staticdsm_segment*seg=NULL;
aqo_shared.h
@@ -1,12 +1,11 @@
1
#ifndefAQO_SHARED_H
2
#defineAQO_SHARED_H
3
4
-
+#include"lib/dshash.h"
5
#include"storage/dsm.h"
6
#include"storage/ipc.h"
7
#include"storage/lwlock.h"
8
#include"utils/dsa.h"
9
-#include"lib/dshash.h"
10
11
#defineAQO_SHARED_MAGIC0x053163
12
auto_tuning.c
@@ -42,7 +42,7 @@ get_mean(double *elems, int nelems)
42
doublesum=0;
43
inti;
44
45
-AssertArg(nelems>0);
+Assert(nelems>0);
46
47
for (i=0;i<nelems;++i)
48
sum+=elems[i];
@@ -58,7 +58,7 @@ get_estimation(double *elems, int nelems)
58
{
59
intstart;
60
61
62
63
if (nelems>auto_tuning_window_size)
64
start=nelems-auto_tuning_window_size;
@@ -77,7 +77,7 @@ is_stable(double *elems, int nelems)
77
doubleest,
78
last;
79
80
-AssertArg(nelems>1);
+Assert(nelems>1);
81
82
est=get_mean(elems,nelems-1);
83
last=elems[nelems-1];