File tree 4 files changed +7
-8
lines changed
4 files changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ void _PG_init(void);
33
33
#define AQO_MODULE_MAGIC (1234)
34
34
35
35
/* Strategy of determining feature space for new queries. */
36
- int aqo_mode ;
36
+ int aqo_mode = AQO_MODE_CONTROLLED ;
37
37
bool force_collect_stat ;
38
38
39
39
/*
Original file line number Diff line number Diff line change @@ -26,8 +26,8 @@ shmem_startup_hook_type prev_shmem_startup_hook = NULL;
26
26
AQOSharedState * aqo_state = NULL ;
27
27
HTAB * fss_htab = NULL ;
28
28
static int aqo_htab_max_items = 1000 ;
29
- int fs_max_items = 1 ; /* Max number of different feature spaces in ML model */
30
- int fss_max_items = 1 ; /* Max number of different feature subspaces in ML model */
29
+ int fs_max_items = 10000 ; /* Max number of different feature spaces in ML model */
30
+ int fss_max_items = 100000 ; /* Max number of different feature subspaces in ML model */
31
31
static uint32 temp_storage_size = 1024 * 1024 * 10 ; /* Storage size, in bytes */
32
32
static dsm_segment * seg = NULL ;
33
33
Original file line number Diff line number Diff line change 1
1
#ifndef AQO_SHARED_H
2
2
#define AQO_SHARED_H
3
3
4
-
4
+ #include "lib/dshash.h"
5
5
#include "storage/dsm.h"
6
6
#include "storage/ipc.h"
7
7
#include "storage/lwlock.h"
8
8
#include "utils/dsa.h"
9
- #include "lib/dshash.h"
10
9
11
10
#define AQO_SHARED_MAGIC 0x053163
12
11
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ get_mean(double *elems, int nelems)
42
42
double sum = 0 ;
43
43
int i ;
44
44
45
- AssertArg (nelems > 0 );
45
+ Assert (nelems > 0 );
46
46
47
47
for (i = 0 ; i < nelems ; ++ i )
48
48
sum += elems [i ];
@@ -58,7 +58,7 @@ get_estimation(double *elems, int nelems)
58
58
{
59
59
int start ;
60
60
61
- AssertArg (nelems > 0 );
61
+ Assert (nelems > 0 );
62
62
63
63
if (nelems > auto_tuning_window_size )
64
64
start = nelems - auto_tuning_window_size ;
@@ -77,7 +77,7 @@ is_stable(double *elems, int nelems)
77
77
double est ,
78
78
last ;
79
79
80
- AssertArg (nelems > 1 );
80
+ Assert (nelems > 1 );
81
81
82
82
est = get_mean (elems , nelems - 1 );
83
83
last = elems [nelems - 1 ];
You can’t perform that action at this time.
0 commit comments