• R/O
  • HTTP
  • SSH
  • HTTPS

pg_hint_plan: Commit

firtst release


Commit MetaInfo

Revisioned6890a147993c53e54db185840771d20137b96b (tree)
Time2014-09-18 11:41:03
AuthorKyotaro Horiguchi <horiguchi.kyotaro@lab....>
CommiterKyotaro Horiguchi

Log Message

Stabilize regtest

Change Summary

Incremental Difference

--- a/expected/R_1-6-5.out
+++ b/expected/R_1-6-5.out
@@ -1,18 +1,18 @@
1- QUERY PLAN
2-----------------------------------------------------------------------------
3- Hash Join (cost=xxx rows=620 width=406)
1+ QUERY PLAN
2+------------------------------------------------------------------------
3+ Hash Join (cost=xxx rows=100 width=xxx)
44 Hash Cond: (t1.oid = t2.oid)
5- -> Seq Scan on pg_class t1 (cost=xxx rows=620 width=207)
6- -> Hash (cost=xxx rows=620 width=207)
7- -> Seq Scan on pg_class t2 (cost=xxx rows=620 width=207)
5+ -> Seq Scan on tmpcl t1 (cost=xxx rows=100 width=xxx)
6+ -> Hash (cost=xxx rows=100 width=xxx)
7+ -> Seq Scan on tmpcl t2 (cost=xxx rows=100 width=xxx)
88 (5 rows)
99
10- QUERY PLAN
11-----------------------------------------------------------------------------
12- Hash Join (cost=xxx rows=1 width=406)
10+ QUERY PLAN
11+------------------------------------------------------------------------
12+ Hash Join (cost=xxx rows=1 width=xxx)
1313 Hash Cond: (t1.oid = t2.oid)
14- -> Seq Scan on pg_class t1 (cost=xxx rows=620 width=207)
15- -> Hash (cost=xxx rows=620 width=207)
16- -> Seq Scan on pg_class t2 (cost=xxx rows=620 width=207)
14+ -> Seq Scan on tmpcl t1 (cost=xxx rows=100 width=xxx)
15+ -> Hash (cost=xxx rows=100 width=xxx)
16+ -> Seq Scan on tmpcl t2 (cost=xxx rows=100 width=xxx)
1717 (5 rows)
1818
--- a/expected/ut-R.out
+++ b/expected/ut-R.out
@@ -305,9 +305,11 @@ error hint:
305305 \! diff expected/R_1-6-4.out results/R_1-6-4.out
306306 -- No. R-1-6-5
307307 \o results/R_1-6-5.out.log
308-EXPLAIN SELECT * FROM pg_catalog.pg_class t1, pg_catalog.pg_class t2 WHERE t1.oid = t2.oid;
308+CREATE TABLE tmpcl WITH OIDS AS SELECT * from pg_catalog.pg_class LIMIT 100;
309+ANALYZE tmpcl;
310+EXPLAIN SELECT * FROM tmpcl t1, tmpcl t2 WHERE t1.oid = t2.oid;
309311 /*+Rows(t1 t2 #1)*/
310-EXPLAIN SELECT * FROM pg_catalog.pg_class t1, pg_catalog.pg_class t2 WHERE t1.oid = t2.oid;
312+EXPLAIN SELECT * FROM tmpcl t1, tmpcl t2 WHERE t1.oid = t2.oid;
311313 LOG: pg_hint_plan:
312314 used hint:
313315 Rows(t1 t2 #1)
@@ -316,7 +318,7 @@ duplication hint:
316318 error hint:
317319
318320 \o
319-\! sed 's/cost=[\.0-9]*/cost=xxx/' results/R_1-6-5.out.log > results/R_1-6-5.out
321+\! sed -e 's/cost=[\.0-9]*/cost=xxx/' -e 's/width=[0-9]*/width=xxx/' results/R_1-6-5.out.log > results/R_1-6-5.out
320322 \! diff expected/R_1-6-5.out results/R_1-6-5.out
321323 -- No. R-1-6-6
322324 -- refer ut-fdw.sql
--- a/sql/ut-R.sql
+++ b/sql/ut-R.sql
@@ -190,11 +190,13 @@ EXPLAIN SELECT * FROM tm1 t1, tm1 t2 WHERE t1.c1 = t2.c1;
190190
191191 -- No. R-1-6-5
192192 \o results/R_1-6-5.out.log
193-EXPLAIN SELECT * FROM pg_catalog.pg_class t1, pg_catalog.pg_class t2 WHERE t1.oid = t2.oid;
193+CREATE TABLE tmpcl WITH OIDS AS SELECT * from pg_catalog.pg_class LIMIT 100;
194+ANALYZE tmpcl;
195+EXPLAIN SELECT * FROM tmpcl t1, tmpcl t2 WHERE t1.oid = t2.oid;
194196 /*+Rows(t1 t2 #1)*/
195-EXPLAIN SELECT * FROM pg_catalog.pg_class t1, pg_catalog.pg_class t2 WHERE t1.oid = t2.oid;
197+EXPLAIN SELECT * FROM tmpcl t1, tmpcl t2 WHERE t1.oid = t2.oid;
196198 \o
197-\! sed 's/cost=[\.0-9]*/cost=xxx/' results/R_1-6-5.out.log > results/R_1-6-5.out
199+\! sed -e 's/cost=[\.0-9]*/cost=xxx/' -e 's/width=[0-9]*/width=xxx/' results/R_1-6-5.out.log > results/R_1-6-5.out
198200 \! diff expected/R_1-6-5.out results/R_1-6-5.out
199201
200202 -- No. R-1-6-6
Show on old repository browser