• R/O
  • HTTP
  • SSH
  • HTTPS

pg_hint_plan: コミット

firtst release


コミットメタ情報

リビジョン63570f9d7be2db5f503f6c928e2b0e74dcc9eb93 (tree)
日時2019-01-17 18:32:57
作者Kyotaro Horiguchi <horiguchi.kyotaro@lab....>
コミッターKyotaro Horiguchi

ログメッセージ

Fix condition to regenerate gather paths

Core has additional condition to determine whether to generate gather
paths and pg_hint_plan forgot it. Fix it.

変更サマリ

差分

--- a/pg_hint_plan.c
+++ b/pg_hint_plan.c
@@ -4723,7 +4723,8 @@ pg_hint_plan_set_rel_pathlist(PlannerInfo * root, RelOptInfo *rel,
47234723 }
47244724
47254725 /* Generate gather paths */
4726- if (rel->reloptkind == RELOPT_BASEREL)
4726+ if (rel->reloptkind == RELOPT_BASEREL &&
4727+ bms_membership(root->all_baserels) != BMS_SINGLETON)
47274728 generate_gather_paths(root, rel, false);
47284729 }
47294730 }
旧リポジトリブラウザで表示