From: Takashi Suzuki Date: Tue, 6 Aug 2013 04:37:55 +0000 (+0900) Subject: No.S-2-3の試験のPG9.1用予測結果を更新した。 X-Git-Tag: REL91_1_1_1~40 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=7e5da4581c7907414762c10051cae5f1ff1b5066;p=pghintplan%2Fpg_hint_plan.git No.S-2-3の試験のPG9.1用予測結果を更新した。 --- diff --git a/expected/ut-S-9.1.out b/expected/ut-S-9.1.out index ead4ebc..99ea0ce 100644 --- a/expected/ut-S-9.1.out +++ b/expected/ut-S-9.1.out @@ -2863,12 +2863,126 @@ error hint: (62 rows) -- No. S-2-3-4 +EXPLAIN (COSTS false) SELECT * FROM s1.v1 v1, s1.v1 v2 WHERE v1.c1 = v2.c1; + QUERY PLAN +---------------------------------- + Hash Join + Hash Cond: (v1t1.c1 = v1t1.c1) + -> Seq Scan on t1 v1t1 + -> Hash + -> Seq Scan on t1 v1t1 +(5 rows) + +/*+BitmapScan(v1t1)*/ +EXPLAIN (COSTS false) SELECT * FROM s1.v1 v1, s1.v1 v2 WHERE v1.c1 = v2.c1; +LOG: pg_hint_plan: +used hint: +BitmapScan(v1t1) +not used hint: +duplication hint: +error hint: + + QUERY PLAN +------------------------------------------ + Nested Loop + -> Index Scan using t1_i1 on t1 v1t1 + -> Bitmap Heap Scan on t1 v1t1 + Recheck Cond: (c1 = v1t1.c1) + -> Bitmap Index Scan on t1_i1 + Index Cond: (c1 = v1t1.c1) +(6 rows) -- No. S-2-3-5 +EXPLAIN (COSTS false) SELECT * FROM s1.v1 v1, s1.v1_ v2 WHERE v1.c1 = v2.c1; + QUERY PLAN +----------------------------------- + Hash Join + Hash Cond: (v1t1.c1 = v1t1_.c1) + -> Seq Scan on t1 v1t1 + -> Hash + -> Seq Scan on t1 v1t1_ +(5 rows) + +/*+SeqScan(v1t1)BitmapScan(v1t1_)*/ +EXPLAIN (COSTS false) SELECT * FROM s1.v1 v1, s1.v1_ v2 WHERE v1.c1 = v2.c1; +LOG: pg_hint_plan: +used hint: +SeqScan(v1t1) +BitmapScan(v1t1_) +not used hint: +duplication hint: +error hint: + + QUERY PLAN +------------------------------------------ + Nested Loop + -> Seq Scan on t1 v1t1 + -> Bitmap Heap Scan on t1 v1t1_ + Recheck Cond: (c1 = v1t1.c1) + -> Bitmap Index Scan on t1_i1 + Index Cond: (c1 = v1t1.c1) +(6 rows) -- No. S-2-3-6 +EXPLAIN (COSTS false) SELECT * FROM s1.r4 t1, s1.r4 t2 WHERE t1.c1 = t2.c1; + QUERY PLAN +---------------------------------- + Hash Join + Hash Cond: (r4t1.c1 = r4t1.c1) + -> Seq Scan on t1 r4t1 + -> Hash + -> Seq Scan on t1 r4t1 +(5 rows) + +/*+BitmapScan(r4t1)*/ +EXPLAIN (COSTS false) SELECT * FROM s1.r4 t1, s1.r4 t2 WHERE t1.c1 = t2.c1; +LOG: pg_hint_plan: +used hint: +BitmapScan(r4t1) +not used hint: +duplication hint: +error hint: + + QUERY PLAN +------------------------------------------ + Nested Loop + -> Index Scan using t1_i1 on t1 r4t1 + -> Bitmap Heap Scan on t1 r4t1 + Recheck Cond: (c1 = r4t1.c1) + -> Bitmap Index Scan on t1_i1 + Index Cond: (c1 = r4t1.c1) +(6 rows) -- No. S-2-3-7 +EXPLAIN (COSTS false) SELECT * FROM s1.r4 t1, s1.r5 t2 WHERE t1.c1 = t2.c1; + QUERY PLAN +---------------------------------- + Hash Join + Hash Cond: (r4t1.c1 = r5t1.c1) + -> Seq Scan on t1 r4t1 + -> Hash + -> Seq Scan on t1 r5t1 +(5 rows) + +/*+SeqScan(r4t1)BitmapScan(r5t1)*/ +EXPLAIN (COSTS false) SELECT * FROM s1.r4 t1, s1.r5 t2 WHERE t1.c1 = t2.c1; +LOG: pg_hint_plan: +used hint: +SeqScan(r4t1) +BitmapScan(r5t1) +not used hint: +duplication hint: +error hint: + + QUERY PLAN +------------------------------------------ + Nested Loop + -> Seq Scan on t1 r4t1 + -> Bitmap Heap Scan on t1 r5t1 + Recheck Cond: (c1 = r4t1.c1) + -> Bitmap Index Scan on t1_i1 + Index Cond: (c1 = r4t1.c1) +(6 rows) ---- ---- No. S-2-4 VALUES clause