Skip to content

Commit 2e8bfa4

Browse files
committed
License fix
1 parent 459c588 commit 2e8bfa4

13 files changed

+146
-47
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-2018, 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
static double get_mean(double *elems, int nelems);
1321
static double get_estimation(double *elems, int nelems);

cardinality_estimation.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
* 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"
1119

1220
/*
1321
* 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
static void call_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
static int get_str_hash(const char *str);
1725
static int get_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
static double fs_distance(double *a, double *b, int len);
1725
static double fs_similarity(double dist);

path_utils.c

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,18 @@
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"
816

917
/*
1018
* Returns list of marginal selectivities using as an arguments for each clause

postprocessing.c

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,23 @@
1-
#include "aqo.h"
2-
#include "utils/queryenvironment.h"
3-
4-
/*****************************************************************************
1+
/*
2+
*******************************************************************************
53
*
64
* QUERY EXECUTION STATISTICS COLLECTING UTILITIES
75
*
86
* The module which updates data in the feature space linked with executed query
97
* type using obtained query execution statistics.
108
* Works only if aqo_learn is on.
119
*
12-
*****************************************************************************/
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 "utils/queryenvironment.h"
1321

1422
static double cardinality_sum_errors;
1523
static int cardinality_num_objects;

preprocessing.c

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
#include "aqo.h"
2-
#include "access/parallel.h"
3-
4-
/*****************************************************************************
1+
/*
2+
*******************************************************************************
53
*
64
* QUERY PREPROCESSING HOOKS
75
*
@@ -49,7 +47,17 @@
4947
* 4. For given fspace_hash we may use its machine learning settings, but now
5048
* the machine learning setting are fixed for all feature spaces.
5149
*
52-
*****************************************************************************/
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"
5361

5462
#define CREATE_EXTENSION_STARTSTRING_0 \
5563
"-- complain if script is sourced in psql, rather than via CREATE EXTENSION"

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy