Skip to content

Commit 8bd3378

Browse files
committed
Second stage of branches arrangement. Now: from master to the stable
1 parent 4f725b0 commit 8bd3378

File tree

4 files changed

+7
-8
lines changed

4 files changed

+7
-8
lines changed

‎aqo.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ void _PG_init(void);
3333
#define AQO_MODULE_MAGIC (1234)
3434

3535
/* Strategy of determining feature space for new queries. */
36-
int aqo_mode;
36+
int aqo_mode = AQO_MODE_CONTROLLED;
3737
bool force_collect_stat;
3838

3939
/*

‎aqo_shared.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ shmem_startup_hook_type prev_shmem_startup_hook = NULL;
2626
AQOSharedState *aqo_state = NULL;
2727
HTAB *fss_htab = NULL;
2828
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 */
3131
static uint32 temp_storage_size = 1024 * 1024 * 10; /* Storage size, in bytes */
3232
static dsm_segment *seg = NULL;
3333

‎aqo_shared.h

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
#ifndef AQO_SHARED_H
22
#define AQO_SHARED_H
33

4-
4+
#include "lib/dshash.h"
55
#include "storage/dsm.h"
66
#include "storage/ipc.h"
77
#include "storage/lwlock.h"
88
#include "utils/dsa.h"
9-
#include "lib/dshash.h"
109

1110
#define AQO_SHARED_MAGIC 0x053163
1211

‎auto_tuning.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ get_mean(double *elems, int nelems)
4242
double sum = 0;
4343
int i;
4444

45-
AssertArg(nelems > 0);
45+
Assert(nelems > 0);
4646

4747
for (i = 0; i < nelems; ++i)
4848
sum += elems[i];
@@ -58,7 +58,7 @@ get_estimation(double *elems, int nelems)
5858
{
5959
int start;
6060

61-
AssertArg(nelems > 0);
61+
Assert(nelems > 0);
6262

6363
if (nelems > auto_tuning_window_size)
6464
start = nelems - auto_tuning_window_size;
@@ -77,7 +77,7 @@ is_stable(double *elems, int nelems)
7777
double est,
7878
last;
7979

80-
AssertArg(nelems > 1);
80+
Assert(nelems > 1);
8181

8282
est = get_mean(elems, nelems - 1);
8383
last = elems[nelems - 1];

0 commit comments

Comments
 (0)