OSDN Git Service

pg_hint_plan.enable_hint_tableをA-6の試験のときだけonにするようにした。
authorTakashi Suzuki <suzuki.takashi@metrosystems.co.jp>
Tue, 6 Aug 2013 01:02:37 +0000 (10:02 +0900)
committerTakashi Suzuki <suzuki.takashi@metrosystems.co.jp>
Tue, 6 Aug 2013 01:02:37 +0000 (10:02 +0900)
他の試験に影響を与えないため。

expected/ut-A-9.2.out
sql/ut-A.sql

index 1865060..bee03e3 100644 (file)
@@ -1,6 +1,5 @@
 LOAD 'pg_hint_plan';
 SET pg_hint_plan.enable_hint TO on;
 LOAD 'pg_hint_plan';
 SET pg_hint_plan.enable_hint TO on;
-SET pg_hint_plan.enable_hint_table TO on;
 SET pg_hint_plan.debug_print TO on;
 SET client_min_messages TO LOG;
 SET search_path TO public;
 SET pg_hint_plan.debug_print TO on;
 SET client_min_messages TO LOG;
 SET search_path TO public;
@@ -170,6 +169,7 @@ EXPLAIN (COSTS false) SELECT * /*+SeqScan(t1)*/ FROM s1.t1 WHERE t1.c1 = 1;
 ----
 ---- No. A-6-1 hint's table definition
 ----
 ----
 ---- No. A-6-1 hint's table definition
 ----
+SET pg_hint_plan.enable_hint_table TO on;
 -- No. A-6-1-1
 \d hint_plan.hints
        Table "hint_plan.hints"
 -- No. A-6-1-1
 \d hint_plan.hints
        Table "hint_plan.hints"
@@ -323,6 +323,7 @@ error hint:
 (2 rows)
 
 TRUNCATE hint_plan.hints;
 (2 rows)
 
 TRUNCATE hint_plan.hints;
+SET pg_hint_plan.enable_hint_table TO off;
 ----
 ---- No. A-7-2 hint delimiter
 ----
 ----
 ---- No. A-7-2 hint delimiter
 ----
index b773a3d..99af9ef 100644 (file)
@@ -1,6 +1,5 @@
 LOAD 'pg_hint_plan';
 SET pg_hint_plan.enable_hint TO on;
 LOAD 'pg_hint_plan';
 SET pg_hint_plan.enable_hint TO on;
-SET pg_hint_plan.enable_hint_table TO on;
 SET pg_hint_plan.debug_print TO on;
 SET client_min_messages TO LOG;
 SET search_path TO public;
 SET pg_hint_plan.debug_print TO on;
 SET client_min_messages TO LOG;
 SET search_path TO public;
@@ -82,6 +81,8 @@ EXPLAIN (COSTS false) SELECT * /*+SeqScan(t1)*/ FROM s1.t1 WHERE t1.c1 = 1;
 ----
 ---- No. A-6-1 hint's table definition
 ----
 ----
 ---- No. A-6-1 hint's table definition
 ----
+
+SET pg_hint_plan.enable_hint_table TO on;
 -- No. A-6-1-1
 \d hint_plan.hints
 
 -- No. A-6-1-1
 \d hint_plan.hints
 
@@ -152,6 +153,7 @@ INSERT INTO hint_plan.hints VALUES (
 );
 EXPLAIN (COSTS false) SELECT * FROM s1.t1 WHERE t1.c1 = 1 OR t1.c1 = 0;
 TRUNCATE hint_plan.hints;
 );
 EXPLAIN (COSTS false) SELECT * FROM s1.t1 WHERE t1.c1 = 1 OR t1.c1 = 0;
 TRUNCATE hint_plan.hints;
+SET pg_hint_plan.enable_hint_table TO off;
 
 ----
 ---- No. A-7-2 hint delimiter
 
 ----
 ---- No. A-7-2 hint delimiter