OSDN Git Service

No.A-8-5の試験のPG9.2用予測結果を更新した。
authorTakashi Suzuki <suzuki.takashi@metrosystems.co.jp>
Tue, 6 Aug 2013 00:56:20 +0000 (09:56 +0900)
committerTakashi Suzuki <suzuki.takashi@metrosystems.co.jp>
Tue, 6 Aug 2013 00:56:20 +0000 (09:56 +0900)
expected/ut-A-9.2.out

index f3ac9b3..1865060 100644 (file)
@@ -2291,15 +2291,65 @@ SHOW pg_hint_plan.parse_messages;
 ----
 ---- No. A-8-5 original GUC parameter pg_hint_plan.enable_hint_table
 ----
-
+INSERT INTO hint_plan.hints VALUES (
+       'EXPLAIN (COSTS false) SELECT * FROM s1.t1 WHERE t1.c1 = ?;',
+       '',
+       'SeqScan(t1)');
 -- No. A-8-5-1
+SET pg_hint_plan.enable_hint_table TO on;
+SHOW pg_hint_plan.enable_hint_table;
+ pg_hint_plan.enable_hint_table 
+--------------------------------
+ on
+(1 row)
+
+EXPLAIN (COSTS false) SELECT * FROM s1.t1 WHERE t1.c1 = 1;
+     QUERY PLAN     
+--------------------
+ Seq Scan on t1
+   Filter: (c1 = 1)
+(2 rows)
 
 -- No. A-8-5-2
+SET pg_hint_plan.enable_hint_table TO off;
+SHOW pg_hint_plan.enable_hint_table;
+ pg_hint_plan.enable_hint_table 
+--------------------------------
+ off
+(1 row)
+
+EXPLAIN (COSTS false) SELECT * FROM s1.t1 WHERE t1.c1 = 1;
+          QUERY PLAN          
+------------------------------
+ Index Scan using t1_i1 on t1
+   Index Cond: (c1 = 1)
+(2 rows)
 
 -- No. A-8-5-3
+SET pg_hint_plan.enable_hint_table TO DEFAULT;
+SHOW pg_hint_plan.enable_hint_table;
+ pg_hint_plan.enable_hint_table 
+--------------------------------
+ off
+(1 row)
+
+EXPLAIN (COSTS false) SELECT * FROM s1.t1 WHERE t1.c1 = 1;
+          QUERY PLAN          
+------------------------------
+ Index Scan using t1_i1 on t1
+   Index Cond: (c1 = 1)
+(2 rows)
 
 -- No. A-8-5-4
+SET pg_hint_plan.enable_hint_table TO enable;
+ERROR:  parameter "pg_hint_plan.enable_hint_table" requires a Boolean value
+SHOW pg_hint_plan.enable_hint_table;
+ pg_hint_plan.enable_hint_table 
+--------------------------------
+ off
+(1 row)
 
+TRUNCATE hint_plan.hints;
 ----
 ---- No. A-9-1 parse error message output
 ----