firtst release
Revision | a7c3fa5dbe4f4068a304a82efc6c44a2bdd2a1bb (tree) |
---|---|
Time | 2014-01-17 16:57:06 |
Author | Takashi Suzuki <suzuki.takashi@metr...> |
Commiter | Takashi Suzuki |
bug fix #3
@@ -42,6 +42,10 @@ adjust_rows(double rows, RowsHint *hint) | ||
42 | 42 | Assert(false); /* unrecognized rows value type */ |
43 | 43 | |
44 | 44 | hint->base.state = HINT_STATE_USED; |
45 | + if (result < 1.0) | |
46 | + ereport(WARNING, | |
47 | + (errmsg("make rows estimation 1 since below 1 : %s", | |
48 | + hint->base.hint_str))); | |
45 | 49 | result = clamp_row_est(result); |
46 | 50 | elog(DEBUG1, "adjusted rows %d to %d", (int) rows, (int) result); |
47 | 51 |