firtst release
Revision | 356c4f7a6d48e82f89be55cf56387464e00387c6 (tree) |
---|---|
Time | 2014-01-21 11:43:05 |
Author | Takashi Suzuki <suzuki.takashi@metr...> |
Commiter | Takashi Suzuki |
コメントやメッセージを修正した。
@@ -44,7 +44,7 @@ adjust_rows(double rows, RowsHint *hint) | ||
44 | 44 | hint->base.state = HINT_STATE_USED; |
45 | 45 | if (result < 1.0) |
46 | 46 | 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", | |
48 | 48 | hint->base.hint_str))); |
49 | 49 | result = clamp_row_est(result); |
50 | 50 | elog(DEBUG1, "adjusted rows %d to %d", (int) rows, (int) result); |
@@ -122,12 +122,13 @@ make_join_rel(PlannerInfo *root, RelOptInfo *rel1, RelOptInfo *rel2) | ||
122 | 122 | rows_hint = current_hint->rows_hints[i]; |
123 | 123 | |
124 | 124 | /* |
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. | |
127 | 127 | */ |
128 | 128 | if (!rows_hint->joinrelids || |
129 | 129 | rows_hint->base.state == HINT_STATE_ERROR) |
130 | 130 | continue; |
131 | + | |
131 | 132 | if (bms_equal(joinrelids, rows_hint->joinrelids)) |
132 | 133 | { |
133 | 134 | /* |