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

Commit1fb13a5

Browse files
committed
Adapt AQO extension for feature-freezed PostgreSQL v.12
Because of changes in PostgreSQL heap access methods, this version of extension not backward compatible.In addition, we fix the bug on updating aqo_* relations.
1 parentae85caf commit1fb13a5

File tree

7 files changed

+1242
-88
lines changed

7 files changed

+1242
-88
lines changed

‎aqo.c‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ doublelog_selectivity_lower_bound = -30;
5555
*/
5656
MemoryContextAQOMemoryContext;
5757
QueryContextDataquery_context;
58+
/* Additional plan info */
59+
intnjoins;
60+
5861
char*query_text=NULL;
5962

6063
/* Saved hook values */

‎aqo.h‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,8 @@ extern intauto_tuning_max_iterations;
226226
externintauto_tuning_infinite_loop;
227227

228228
/* Machine learning parameters */
229+
230+
/* Max number of matrix rows - max number of possible neighbors. */
229231
#defineaqo_K(30)
230232

231233
externconstdoubleobject_selection_prediction_threshold;
@@ -236,6 +238,7 @@ extern double log_selectivity_lower_bound;
236238

237239
/* Parameters for current query */
238240
externQueryContextDataquery_context;
241+
externintnjoins;
239242
externchar*query_text;
240243

241244
/* Memory context for long-live data */
@@ -298,7 +301,8 @@ PlannedStmt *aqo_planner(Query *parse,
298301
ParamListInfoboundParams);
299302
voidprint_into_explain(PlannedStmt*plannedstmt,IntoClause*into,
300303
ExplainState*es,constchar*queryString,
301-
ParamListInfoparams,constinstr_time*planduration);
304+
ParamListInfoparams,constinstr_time*planduration,
305+
QueryEnvironment*queryEnv);
302306
voiddisable_aqo_for_query(void);
303307

304308
/* Cardinality estimation hooks */

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp