• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

firtst release


Commit MetaInfo

Revisionc8e2c79873d1832717ade54f93cff4fc4424fb7d (tree)
Time2014-01-17 10:52:44
AuthorTakashi Suzuki <suzuki.takashi@metr...>
CommiterTakashi Suzuki

Log Message

Rowsヒント句のメッセージ出力(R-3-6-*)の試験を追加した。

Change Summary

Incremental Difference

--- /dev/null
+++ b/expected/R_3-6-1.out
@@ -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+
--- a/expected/ut-R.out
+++ b/expected/ut-R.out
@@ -2413,3 +2413,23 @@ error hint:
24132413 \o
24142414 \! sed 's/cost=[\.0-9]*/cost=xxx/' results/R_3-5-4.out.log > results/R_3-5-4.out
24152415 \! 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
--- a/sql/ut-R.sql
+++ b/sql/ut-R.sql
@@ -1217,3 +1217,16 @@ EXPLAIN SELECT * FROM s1.t1, s1.t2 WHERE t1.c1 = t2.c1;
12171217 \o
12181218 \! sed 's/cost=[\.0-9]*/cost=xxx/' results/R_3-5-4.out.log > results/R_3-5-4.out
12191219 \! 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