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

Commit904ed19

Browse files
committed
Add a foreign relation estimation hook into the core patch and AQO.
Improve the elog panic message introduced in previous commit.Fix ForeignScan estimation logic.
1 parentb4c9c60 commit904ed19

File tree

5 files changed

+132
-78
lines changed

5 files changed

+132
-78
lines changed

‎aqo.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ post_parse_analyze_hook_typeprev_post_parse_analyze_hook;
7676
planner_hook_typeprev_planner_hook;
7777
ExecutorStart_hook_typeprev_ExecutorStart_hook;
7878
ExecutorEnd_hook_typeprev_ExecutorEnd_hook;
79+
set_baserel_rows_estimate_hook_typeprev_set_foreign_rows_estimate_hook;
7980
set_baserel_rows_estimate_hook_typeprev_set_baserel_rows_estimate_hook;
8081
get_parameterized_baserel_size_hook_typeprev_get_parameterized_baserel_size_hook;
8182
set_joinrel_size_estimates_hook_typeprev_set_joinrel_size_estimates_hook;
@@ -126,6 +127,7 @@ _PG_init(void)
126127
prev_ExecutorEnd_hook=ExecutorEnd_hook;
127128
ExecutorEnd_hook=aqo_ExecutorEnd;
128129
prev_set_baserel_rows_estimate_hook=set_baserel_rows_estimate_hook;
130+
set_foreign_rows_estimate_hook=aqo_set_baserel_rows_estimate;
129131
set_baserel_rows_estimate_hook=aqo_set_baserel_rows_estimate;
130132
prev_get_parameterized_baserel_size_hook=get_parameterized_baserel_size_hook;
131133
get_parameterized_baserel_size_hook=aqo_get_parameterized_baserel_size;

‎aqo.h‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,8 @@ extern post_parse_analyze_hook_type prev_post_parse_analyze_hook;
253253
externplanner_hook_typeprev_planner_hook;
254254
externExecutorStart_hook_typeprev_ExecutorStart_hook;
255255
externExecutorEnd_hook_typeprev_ExecutorEnd_hook;
256+
externset_baserel_rows_estimate_hook_type
257+
prev_set_foreign_rows_estimate_hook;
256258
externset_baserel_rows_estimate_hook_type
257259
prev_set_baserel_rows_estimate_hook;
258260
externget_parameterized_baserel_size_hook_type

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp