OSDN Git Service

ヒント用テーブルにヒント検索高速化用のインデックスを作成した。
authorTakashi Suzuki <suzuki.takashi@metrosystems.co.jp>
Fri, 9 Aug 2013 07:33:56 +0000 (16:33 +0900)
committerTakashi Suzuki <suzuki.takashi@metrosystems.co.jp>
Fri, 9 Aug 2013 07:33:56 +0000 (16:33 +0900)
expected/ut-A-9.1.out
expected/ut-A-9.2.out
pg_hint_plan--1.0.sql

index 1878c02..246b93d 100644 (file)
@@ -181,6 +181,7 @@ SET pg_hint_plan.enable_hint_table TO on;
  hints             | text    | not null
 Indexes:
     "hints_pkey" PRIMARY KEY, btree (id)
+    "hints_norm_and_app" UNIQUE, btree (norm_query_string, application_name)
 
 ----
 ---- No. A-6-2 search condition
index f1c03a8..e9322e1 100644 (file)
@@ -181,6 +181,7 @@ SET pg_hint_plan.enable_hint_table TO on;
  hints             | text    | not null
 Indexes:
     "hints_pkey" PRIMARY KEY, btree (id)
+    "hints_norm_and_app" UNIQUE, btree (norm_query_string, application_name)
 
 ----
 ---- No. A-6-2 search condition
index d07351a..305baa9 100644 (file)
@@ -10,3 +10,7 @@ CREATE TABLE hint_plan.hints (
        hints                           text    NOT NULL,
        PRIMARY KEY (id)
 );
+CREATE UNIQUE INDEX hints_norm_and_app ON hint_plan.hints (
+       norm_query_string,
+       application_name
+);