OSDN Git Service

Change version to 1.3.7.
[pghintplan/pg_hint_plan.git] / pg_hint_plan--1.4.sql
1 /* pg_hint_plan/pg_hint_plan--1.4.sql */
2
3 -- complain if script is sourced in psql, rather than via CREATE EXTENSION
4 \echo Use "CREATE EXTENSION pg_hint_plan" to load this file. \quit
5
6 CREATE TABLE hint_plan.hints (
7         id                                      serial  NOT NULL,
8         norm_query_string       text    NOT NULL,
9         application_name        text    NOT NULL,
10         hints                           text    NOT NULL,
11         PRIMARY KEY (id)
12 );
13 CREATE UNIQUE INDEX hints_norm_and_app ON hint_plan.hints (
14         norm_query_string,
15         application_name
16 );
17
18 SELECT pg_catalog.pg_extension_config_dump('hint_plan.hints','');
19 SELECT pg_catalog.pg_extension_config_dump('hint_plan.hints_id_seq','');
20
21 GRANT SELECT ON hint_plan.hints TO PUBLIC;
22 GRANT USAGE ON SCHEMA hint_plan TO PUBLIC;