firtst release
Revision | c8e2c79873d1832717ade54f93cff4fc4424fb7d (tree) |
---|---|
Time | 2014-01-17 10:52:44 |
Author | Takashi Suzuki <suzuki.takashi@metr...> |
Commiter | Takashi Suzuki |
Rowsヒント句のメッセージ出力(R-3-6-*)の試験を追加した。
@@ -0,0 +1,20 @@ | ||
1 | + QUERY PLAN | |
2 | +--------------------------------------------------------------------------- | |
3 | + Merge Join (cost=xxx rows=100 width=29) | |
4 | + Merge Cond: (t1.c1 = t2.c1) | |
5 | + -> Index Scan using t1_i1 on t1 (cost=xxx rows=1000 width=15) | |
6 | + -> Sort (cost=xxx rows=100 width=14) | |
7 | + Sort Key: t2.c1 | |
8 | + -> Seq Scan on t2 (cost=xxx rows=100 width=14) | |
9 | +(6 rows) | |
10 | + | |
11 | + QUERY PLAN | |
12 | +--------------------------------------------------------------------------- | |
13 | + Merge Join (cost=xxx rows=101 width=29) | |
14 | + Merge Cond: (t1.c1 = t2.c1) | |
15 | + -> Index Scan using t1_i1 on t1 (cost=xxx rows=1000 width=15) | |
16 | + -> Sort (cost=xxx rows=100 width=14) | |
17 | + Sort Key: t2.c1 | |
18 | + -> Seq Scan on t2 (cost=xxx rows=100 width=14) | |
19 | +(6 rows) | |
20 | + |
@@ -2413,3 +2413,23 @@ error hint: | ||
2413 | 2413 | \o |
2414 | 2414 | \! sed 's/cost=[\.0-9]*/cost=xxx/' results/R_3-5-4.out.log > results/R_3-5-4.out |
2415 | 2415 | \! diff expected/R_3-5-4.out results/R_3-5-4.out |
2416 | +---- | |
2417 | +---- No. R-3-6 hint state output | |
2418 | +---- | |
2419 | +-- No. R-3-6-1 | |
2420 | +SET client_min_messages TO DEBUG1; | |
2421 | +\o results/R_3-6-1.out.log | |
2422 | +EXPLAIN SELECT * FROM s1.t1, s1.t2 WHERE t1.c1 = t2.c1; | |
2423 | +/*+Rows(t1 t2 +1)*/ | |
2424 | +EXPLAIN SELECT * FROM s1.t1, s1.t2 WHERE t1.c1 = t2.c1; | |
2425 | +DEBUG: adjusted rows 100 to 101 | |
2426 | +LOG: pg_hint_plan: | |
2427 | +used hint: | |
2428 | +Rows(t1 t2 +1) | |
2429 | +not used hint: | |
2430 | +duplication hint: | |
2431 | +error hint: | |
2432 | + | |
2433 | +\o | |
2434 | +\! sed 's/cost=[\.0-9]*/cost=xxx/' results/R_3-6-1.out.log > results/R_3-6-1.out | |
2435 | +\! diff expected/R_3-6-1.out results/R_3-6-1.out |
@@ -1217,3 +1217,16 @@ EXPLAIN SELECT * FROM s1.t1, s1.t2 WHERE t1.c1 = t2.c1; | ||
1217 | 1217 | \o |
1218 | 1218 | \! sed 's/cost=[\.0-9]*/cost=xxx/' results/R_3-5-4.out.log > results/R_3-5-4.out |
1219 | 1219 | \! diff expected/R_3-5-4.out results/R_3-5-4.out |
1220 | +---- | |
1221 | +---- No. R-3-6 hint state output | |
1222 | +---- | |
1223 | + | |
1224 | +-- No. R-3-6-1 | |
1225 | +SET client_min_messages TO DEBUG1; | |
1226 | +\o results/R_3-6-1.out.log | |
1227 | +EXPLAIN SELECT * FROM s1.t1, s1.t2 WHERE t1.c1 = t2.c1; | |
1228 | +/*+Rows(t1 t2 +1)*/ | |
1229 | +EXPLAIN SELECT * FROM s1.t1, s1.t2 WHERE t1.c1 = t2.c1; | |
1230 | +\o | |
1231 | +\! sed 's/cost=[\.0-9]*/cost=xxx/' results/R_3-6-1.out.log > results/R_3-6-1.out | |
1232 | +\! diff expected/R_3-6-1.out results/R_3-6-1.out |