--- /dev/null
+ QUERY PLAN
+---------------------------------------------------------------------------
+ Merge Join (cost=xxx rows=1 width=29)
+ Merge Cond: (t1.c1 = t2.c1)
+ -> Index Scan using t1_i1 on t1 (cost=xxx rows=1000 width=15)
+ -> Sort (cost=xxx rows=100 width=14)
+ Sort Key: t2.c1
+ -> Seq Scan on t2 (cost=xxx rows=100 width=14)
+(6 rows)
+
--- /dev/null
+ QUERY PLAN
+---------------------------------------------------------------------------
+ Merge Join (cost=xxx rows=5 width=29)
+ Merge Cond: (t1.c1 = t2.c1)
+ -> Index Scan using t1_i1 on t1 (cost=xxx rows=1000 width=15)
+ -> Sort (cost=xxx rows=100 width=14)
+ Sort Key: t2.c1
+ -> Seq Scan on t2 (cost=xxx rows=100 width=14)
+(6 rows)
+
\o
\! sed 's/cost=[\.0-9]*/cost=xxx/' results/R_2-5-3.out.log > results/R_2-5-3.out
\! diff expected/R_2-5-3.out results/R_2-5-3.out
+----
+---- No. R-3-1 abusolute value
+----
+-- No. R-3-1-1
+\o results/R_3-1-1.out.log
+/*+Rows(t1 t2 #0)*/
+EXPLAIN SELECT * FROM s1.t1, s1.t2 WHERE t1.c1 = t2.c1;
+WARNING: make rows estimation 1 since below 1 : Rows(t1 t2 #0)
+LOG: pg_hint_plan:
+used hint:
+Rows(t1 t2 #0)
+not used hint:
+duplication hint:
+error hint:
+
+\o
+\! sed 's/cost=[\.0-9]*/cost=xxx/' results/R_3-1-1.out.log > results/R_3-1-1.out
+\! diff expected/R_3-1-1.out results/R_3-1-1.out
+-- No. R-3-1-2
+\o results/R_3-1-2.out.log
+/*+Rows(t1 t2 #5)*/
+EXPLAIN SELECT * FROM s1.t1, s1.t2 WHERE t1.c1 = t2.c1;
+LOG: pg_hint_plan:
+used hint:
+Rows(t1 t2 #5)
+not used hint:
+duplication hint:
+error hint:
+
+\o
+\! sed 's/cost=[\.0-9]*/cost=xxx/' results/R_3-1-2.out.log > results/R_3-1-2.out
+\! diff expected/R_3-1-2.out results/R_3-1-2.out
\! sed 's/cost=[\.0-9]*/cost=xxx/' results/R_2-5-3.out.log > results/R_2-5-3.out
\! diff expected/R_2-5-3.out results/R_2-5-3.out
+----
+---- No. R-3-1 abusolute value
+----
+
+-- No. R-3-1-1
+\o results/R_3-1-1.out.log
+/*+Rows(t1 t2 #0)*/
+EXPLAIN SELECT * FROM s1.t1, s1.t2 WHERE t1.c1 = t2.c1;
+\o
+\! sed 's/cost=[\.0-9]*/cost=xxx/' results/R_3-1-1.out.log > results/R_3-1-1.out
+\! diff expected/R_3-1-1.out results/R_3-1-1.out
+
+-- No. R-3-1-2
+\o results/R_3-1-2.out.log
+/*+Rows(t1 t2 #5)*/
+EXPLAIN SELECT * FROM s1.t1, s1.t2 WHERE t1.c1 = t2.c1;
+\o
+\! sed 's/cost=[\.0-9]*/cost=xxx/' results/R_3-1-2.out.log > results/R_3-1-2.out
+\! diff expected/R_3-1-2.out results/R_3-1-2.out
+