You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Propagate consider_startup flag to compressed chunk table (#9738)
It seems at the moment it's just not set, which might lead to suboptimal
plan choice.
We also have an heuristic to trigger it for queries that might need
SkipScan, so move this to happen earlier. Also update it to work for
multicolumn DISTINCT.
The flag propagation itself doesn't influence anything at the moment,
because the Index paths are still kept based on pathkeys. But logically
it's more correct.
Disable-check: force-changelog-file
Copy file name to clipboardExpand all lines: tsl/test/expected/skip_scan.out
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -2878,6 +2878,10 @@ psql:include/skip_scan_multi_query.sql:44: INFO: SkipScan used on compress_hype
2878
2878
psql:include/skip_scan_multi_query.sql:44: INFO: SkipScan used on compress_hyper_9_76_chunk_status_region_dev_dev_name__ts_me_idx(region NOT NULL, dev NOT NULL)
2879
2879
-- RowCompareExpr
2880
2880
:PREFIX SELECT DISTINCT ON (status, dev) * FROM :TABLE WHERE region = 'reg_1' and (status, dev) > (1,2);
2881
+
psql:include/skip_scan_multi_query.sql:47: INFO: SkipScan used on compress_hyper_9_73_chunk_status_region_dev_dev_name__ts_me_idx(status NOT NULL, dev NOT NULL)
2882
+
psql:include/skip_scan_multi_query.sql:47: INFO: SkipScan used on compress_hyper_9_74_chunk_status_region_dev_dev_name__ts_me_idx(status NOT NULL, dev NOT NULL)
2883
+
psql:include/skip_scan_multi_query.sql:47: INFO: SkipScan used on compress_hyper_9_75_chunk_status_region_dev_dev_name__ts_me_idx(status NOT NULL, dev NOT NULL)
2884
+
psql:include/skip_scan_multi_query.sql:47: INFO: SkipScan used on compress_hyper_9_76_chunk_status_region_dev_dev_name__ts_me_idx(status NOT NULL, dev NOT NULL)
2881
2885
-- always false expr similar to our initial skip qual
2882
2886
:PREFIX SELECT DISTINCT ON (status, region, dev) * FROM :TABLE WHERE dev > NULL and status > NULL and region > NULL;
0 commit comments