OSDN Git Service

Add forgotten test files
[pghintplan/pg_hint_plan.git] / pg_hint_plan--1.3.4.sql
1 /* pg_hint_plan/pg_hint_plan--1.3.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 GRANT SELECT ON hint_plan.hints TO PUBLIC;
19 GRANT USAGE ON SCHEMA hint_plan TO PUBLIC;