• R/O
  • HTTP
  • SSH
  • HTTPS

pg_hint_plan: Commit

firtst release


Commit MetaInfo

Revision356c4f7a6d48e82f89be55cf56387464e00387c6 (tree)
Time2014-01-21 11:43:05
AuthorTakashi Suzuki <suzuki.takashi@metr...>
CommiterTakashi Suzuki

Log Message

コメントやメッセージを修正した。

Change Summary

Incremental Difference

--- a/make_join_rel.c
+++ b/make_join_rel.c
@@ -44,7 +44,7 @@ adjust_rows(double rows, RowsHint *hint)
4444 hint->base.state = HINT_STATE_USED;
4545 if (result < 1.0)
4646 ereport(WARNING,
47- (errmsg("make rows estimation 1 since below 1 : %s",
47+ (errmsg("Force estimate to be at least one row, to avoid possible divide-by-zero when interpolating costs : %s",
4848 hint->base.hint_str)));
4949 result = clamp_row_est(result);
5050 elog(DEBUG1, "adjusted rows %d to %d", (int) rows, (int) result);
@@ -122,12 +122,13 @@ make_join_rel(PlannerInfo *root, RelOptInfo *rel1, RelOptInfo *rel2)
122122 rows_hint = current_hint->rows_hints[i];
123123
124124 /*
125- * This Rows hint specifies aliasname is error, or does not exist in
126- * query.
125+ * This Rows hint is invalid for some reason, or it contains no
126+ * aliasname which exists in the query.
127127 */
128128 if (!rows_hint->joinrelids ||
129129 rows_hint->base.state == HINT_STATE_ERROR)
130130 continue;
131+
131132 if (bms_equal(joinrelids, rows_hint->joinrelids))
132133 {
133134 /*
Show on old repository browser