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

Commit38eafa7

Browse files
committed
Changed the conditions for the statistics collection
1 parentb2fe374 commit38eafa7

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

‎README.md‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -123,10 +123,10 @@ what you do.
123123

124124
##Statistics
125125

126-
For forced and intelligent query modes, and for all tracked queries the
127-
statistics is collected. The statistics iscardinality quality, planning and
128-
execution time. For forced mode the statistics for all untracked query types
129-
isnot stored.
126+
The statistics is collected for a tracked query if auto tuning is enabled
127+
this query. The statistics isnot collected for unknown queries.
128+
129+
The statisticsiscardinality quality, planning and execution time.
130130

131131
One can see the collected statistics in table aqo_query_stat.
132132

‎preprocessing.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,8 +176,8 @@ aqo_planner(Query *parse,
176176
use_aqo=DatumGetBool(query_params[2]);
177177
fspace_hash=DatumGetInt32(query_params[3]);
178178
auto_tuning=DatumGetBool(query_params[4]);
179-
collect_stat=learn_aqo||use_aqo||auto_tuning;
180-
if (!collect_stat)
179+
collect_stat=auto_tuning;
180+
if (!learn_aqo&& !use_aqo&& !auto_tuning)
181181
add_deactivated_query(query_hash);
182182
}
183183
explain_aqo=use_aqo;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp