• R/O
  • HTTP
  • SSH
  • HTTPS

pg_hint_plan: コミット

firtst release


コミットメタ情報

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

ログメッセージ

Fix condition to regenerate gather paths

pg_hint_plan forgot about additional condition to postpone generating
gather paths. Fix it.

変更サマリ

差分

--- a/pg_hint_plan.c
+++ b/pg_hint_plan.c
@@ -4720,7 +4720,8 @@ pg_hint_plan_set_rel_pathlist(PlannerInfo * root, RelOptInfo *rel,
47204720 }
47214721
47224722 /* Generate gather paths */
4723- if (rel->reloptkind == RELOPT_BASEREL)
4723+ if (rel->reloptkind == RELOPT_BASEREL &&
4724+ bms_membership(root->all_baserels) != BMS_SINGLETON)
47244725 generate_gather_paths(root, rel, false);
47254726 }
47264727 }
旧リポジトリブラウザで表示