Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitafb30c1

Browse files
committed
License fix
1 parent8749977 commitafb30c1

File tree

13 files changed

+156
-45
lines changed

13 files changed

+156
-45
lines changed

‎aqo.c‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
/*
2+
* aqo.c
3+
*Adaptive query optimization extension
4+
*
5+
* Copyright (c) 2016-2020, Postgres Professional
6+
*
7+
* IDENTIFICATION
8+
* aqo/aqo.c
9+
*/
10+
111
#include"aqo.h"
212

313
PG_MODULE_MAGIC;

‎aqo.h‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,8 @@
108108
* Copyright (c) 2016-2019, Postgres Professional
109109
*
110110
* IDENTIFICATION
111-
* contrib/aqo/aqo.h
111+
* aqo/aqo.h
112+
*
112113
*/
113114
#ifndef__ML_CARD_H__
114115
#define__ML_CARD_H__

‎auto_tuning.c‎

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,21 @@
1-
#include"aqo.h"
2-
3-
/*****************************************************************************
1+
/*
2+
*******************************************************************************
43
*
54
*AUTOMATIC QUERY TUNING
65
*
76
* This module automatically implements basic strategies of tuning AQO for best
87
* PostgreSQL performance.
98
*
10-
*****************************************************************************/
9+
*******************************************************************************
10+
*
11+
* Copyright (c) 2016-2020, Postgres Professional
12+
*
13+
* IDENTIFICATION
14+
* aqo/auto_tuning.c
15+
*
16+
*/
17+
18+
#include"aqo.h"
1119

1220
staticdoubleget_mean(double*elems,intnelems);
1321
staticdoubleget_estimation(double*elems,intnelems);

‎cardinality_estimation.c‎

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,22 @@
1-
#include"aqo.h"
2-
3-
/*****************************************************************************
1+
/*
2+
*******************************************************************************
43
*
54
*CARDINALITY ESTIMATION
65
*
76
* This is the module in which cardinality estimation problem obtained from
87
* cardinality_hooks turns into machine learning problem.
98
*
10-
*****************************************************************************/
9+
*******************************************************************************
10+
*
11+
* Copyright (c) 2016-2020, Postgres Professional
12+
*
13+
* IDENTIFICATION
14+
* aqo/cardinality_estimation.c
15+
*
16+
*/
17+
18+
#include"aqo.h"
19+
#include"optimizer/optimizer.h"
1120

1221
/*
1322
* General method for prediction the cardinality of given relation.

‎cardinality_hooks.c‎

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
#include"aqo.h"
2-
3-
/*****************************************************************************
1+
/*
2+
*******************************************************************************
43
*
54
*CARDINALITY ESTIMATION HOOKS
65
*
@@ -17,7 +16,16 @@
1716
* refusal to predict cardinality. In this case hooks also use default
1817
* postgreSQL cardinality estimator.
1918
*
20-
*****************************************************************************/
19+
*******************************************************************************
20+
*
21+
* Copyright (c) 2016-2020, Postgres Professional
22+
*
23+
* IDENTIFICATION
24+
* aqo/cardinality_hooks.c
25+
*
26+
*/
27+
28+
#include"aqo.h"
2129

2230
staticvoidcall_default_set_baserel_rows_estimate(PlannerInfo*root,
2331
RelOptInfo*rel);

‎hash.c‎

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
#include"aqo.h"
2-
3-
/*****************************************************************************
1+
/*
2+
*******************************************************************************
43
*
54
*HASH FUNCTIONS
65
*
@@ -11,7 +10,16 @@
1110
* only in the values of their constants. We want query_hash, clause_hash and
1211
* fss_hash to satisfy this property.
1312
*
14-
*****************************************************************************/
13+
*******************************************************************************
14+
*
15+
* Copyright (c) 2016-2020, Postgres Professional
16+
*
17+
* IDENTIFICATION
18+
* aqo/hash.c
19+
*
20+
*/
21+
22+
#include"aqo.h"
1523

1624
staticintget_str_hash(constchar*str);
1725
staticintget_node_hash(Node*node);

‎machine_learning.c‎

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
#include"aqo.h"
2-
3-
/*****************************************************************************
1+
/*
2+
*******************************************************************************
43
*
54
*MACHINE LEARNING TECHNIQUES
65
*
@@ -11,7 +10,16 @@
1110
* setting after learning procedure. This property also allows to adapt to
1211
* workloads which properties are slowly changed.
1312
*
14-
*****************************************************************************/
13+
*******************************************************************************
14+
*
15+
* Copyright (c) 2016-2020, Postgres Professional
16+
*
17+
* IDENTIFICATION
18+
* aqo/machine_learning.c
19+
*
20+
*/
21+
22+
#include"aqo.h"
1523

1624
staticdoublefs_distance(double*a,double*b,intlen);
1725
staticdoublefs_similarity(doubledist);

‎path_utils.c‎

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,19 @@
1-
#include"aqo.h"
2-
3-
/*****************************************************************************
1+
/*
2+
*******************************************************************************
43
*
54
*EXTRACTING PATH INFORMATION UTILITIES
65
*
7-
*****************************************************************************/
6+
*******************************************************************************
7+
*
8+
* Copyright (c) 2016-2020, Postgres Professional
9+
*
10+
* IDENTIFICATION
11+
* aqo/path_utils.c
12+
*
13+
*/
14+
15+
#include"aqo.h"
16+
#include"optimizer/optimizer.h"
817

918
/*
1019
* Returns list of marginal selectivities using as an arguments for each clause

‎postprocessing.c‎

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,25 @@
1-
#include"aqo.h"
2-
3-
/*****************************************************************************
1+
/*
2+
*******************************************************************************
43
*
54
*QUERY EXECUTION STATISTICS COLLECTING UTILITIES
65
*
76
* The module which updates data in the feature space linked with executed query
87
* type using obtained query execution statistics.
98
* Works only if aqo_learn is on.
109
*
11-
*****************************************************************************/
10+
*******************************************************************************
11+
*
12+
* Copyright (c) 2016-2020, Postgres Professional
13+
*
14+
* IDENTIFICATION
15+
* aqo/postprocessing.c
16+
*
17+
*/
18+
19+
#include"aqo.h"
20+
#include"access/parallel.h"
21+
#include"optimizer/optimizer.h"
22+
#include"utils/queryenvironment.h"
1223

1324
staticdoublecardinality_sum_errors;
1425
staticintcardinality_num_objects;

‎preprocessing.c‎

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
#include"aqo.h"
2-
3-
/*****************************************************************************
1+
/*
2+
*******************************************************************************
43
*
54
*QUERY PREPROCESSING HOOKS
65
*
@@ -48,7 +47,19 @@
4847
* 4. For given fspace_hash we may use its machine learning settings, but now
4948
*the machine learning setting are fixed for all feature spaces.
5049
*
51-
*****************************************************************************/
50+
*******************************************************************************
51+
*
52+
* Copyright (c) 2016-2020, Postgres Professional
53+
*
54+
* IDENTIFICATION
55+
* aqo/preprocessing.c
56+
*
57+
*/
58+
59+
#include"aqo.h"
60+
#include"access/parallel.h"
61+
#include"access/table.h"
62+
#include"commands/extension.h"
5263

5364
#defineCREATE_EXTENSION_STARTSTRING_0 \
5465
"-- complain if script is sourced in psql, rather than via CREATE EXTENSION"

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp