Skip to content

Commit f9d5660

Browse files
author
Oleg Ivanov
committed
Fixes
1 parent 21c755b commit f9d5660

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

contrib/aqo/Makefile

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
# contrib/aqo/Makefile
22

3-
MODULE_big = aqo
3+
EXTENSION = aqo
4+
PGFILEDESC = "AQO - adaptive query optimization"
5+
MODULES = aqo
6+
DATA = aqo--1.0.sql
47
OBJS = aqo.o auto_tuning.o cardinality_estimation.o cardinality_hooks.o \
58
hash.o machine_learning.o path_utils.o postprocessing.o preprocessing.o \
69
selectivity_cache.o storage.o utils.o $(WIN32RES)
7-
EXTENSION = aqo
8-
DATA = aqo--1.0.sql
9-
PGFILEDESC = "aqo - adaptive query optimization"
10+
REGRESS = aqo
1011

12+
MODULE_big = aqo
1113
ifdef USE_PGXS
1214
PG_CONFIG = pg_config
1315
PGXS := $(shell $(PG_CONFIG) --pgxs)

contrib/aqo/aqo.control

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
comment = 'machine learning for cardinality estimation in optimizer'
33
default_version = '1.0'
44
module_pathname = '$libdir/aqo'
5-
relocatable = true
5+
relocatable = false

contrib/aqo/machine_learning.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ fs_distance(double *a, double *b, int len)
4141
double
4242
fs_similarity(double dist)
4343
{
44-
return 1.0 / (0.1 + dist);
44+
return 1.0 / (0.001 + dist);
4545
}
4646

4747
/*

0 commit comments

Comments
 (0)