OSDN Git Service

試験項目作成中に修正した以下のバグを元に戻した。
[pghintplan/pg_hint_plan.git] / expected / init.out
1 SET search_path TO public;
2 CREATE SCHEMA s1;
3 CREATE TABLE t1 (id int PRIMARY KEY, val int);
4 NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index "t1_pkey" for table "t1"
5 CREATE TABLE t2 (id int PRIMARY KEY, val int);
6 NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index "t2_pkey" for table "t2"
7 CREATE TABLE t3 (id int PRIMARY KEY, val int);
8 NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index "t3_pkey" for table "t3"
9 CREATE TABLE t4 (id int PRIMARY KEY, val int);
10 NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index "t4_pkey" for table "t4"
11 CREATE TABLE p1 (id int PRIMARY KEY, val int);
12 NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index "p1_pkey" for table "p1"
13 CREATE TABLE p1_c1 (LIKE p1 INCLUDING ALL, CHECK (id <= 100)) INHERITS(p1);
14 NOTICE:  merging column "id" with inherited definition
15 NOTICE:  merging column "val" with inherited definition
16 NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index "p1_c1_pkey" for table "p1_c1"
17 CREATE TABLE p1_c2 (LIKE p1 INCLUDING ALL, CHECK (id > 100 AND id <= 200)) INHERITS(p1);
18 NOTICE:  merging column "id" with inherited definition
19 NOTICE:  merging column "val" with inherited definition
20 NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index "p1_c2_pkey" for table "p1_c2"
21 CREATE TABLE p1_c3 (LIKE p1 INCLUDING ALL, CHECK (id > 200 AND id <= 300)) INHERITS(p1);
22 NOTICE:  merging column "id" with inherited definition
23 NOTICE:  merging column "val" with inherited definition
24 NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index "p1_c3_pkey" for table "p1_c3"
25 CREATE TABLE p1_c4 (LIKE p1 INCLUDING ALL, CHECK (id > 300)) INHERITS(p1);
26 NOTICE:  merging column "id" with inherited definition
27 NOTICE:  merging column "val" with inherited definition
28 NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index "p1_c4_pkey" for table "p1_c4"
29 CREATE TABLE p1_c1_c1 (LIKE p1 INCLUDING ALL, CHECK (id <= 50)) INHERITS(p1_c1);
30 NOTICE:  merging column "id" with inherited definition
31 NOTICE:  merging column "val" with inherited definition
32 NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index "p1_c1_c1_pkey" for table "p1_c1_c1"
33 CREATE TABLE p1_c1_c2 (LIKE p1 INCLUDING ALL, CHECK (id > 50 AND id <= 100)) INHERITS(p1_c1);
34 NOTICE:  merging column "id" with inherited definition
35 NOTICE:  merging column "val" with inherited definition
36 NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index "p1_c1_c2_pkey" for table "p1_c1_c2"
37 CREATE TABLE p1_c3_c1 (LIKE p1 INCLUDING ALL, CHECK (id > 200 AND id <= 250)) INHERITS(p1_c3);
38 NOTICE:  merging column "id" with inherited definition
39 NOTICE:  merging column "val" with inherited definition
40 NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index "p1_c3_c1_pkey" for table "p1_c3_c1"
41 CREATE TABLE p1_c3_c2 (LIKE p1 INCLUDING ALL, CHECK (id > 250 AND id <= 300)) INHERITS(p1_c3);
42 NOTICE:  merging column "id" with inherited definition
43 NOTICE:  merging column "val" with inherited definition
44 NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index "p1_c3_c2_pkey" for table "p1_c3_c2"
45 CREATE TABLE s1.t1 (id int PRIMARY KEY, val int);
46 NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index "t1_pkey" for table "t1"
47 INSERT INTO t1 SELECT i, i % 100 FROM (SELECT generate_series(1, 10000) i) t;
48 INSERT INTO t2 SELECT i, i % 10 FROM (SELECT generate_series(1, 1000) i) t;
49 INSERT INTO t3 SELECT i, i FROM (SELECT generate_series(1, 100) i) t;
50 INSERT INTO t4 SELECT i, i FROM (SELECT generate_series(1, 10) i) t;
51 INSERT INTO p1_c1_c1 SELECT i, i % 100 FROM (SELECT generate_series(1, 50) i) t;
52 INSERT INTO p1_c1_c2 SELECT i, i % 100 FROM (SELECT generate_series(51, 100) i) t;
53 INSERT INTO p1_c2 SELECT i, i % 100 FROM (SELECT generate_series(101, 200) i) t;
54 INSERT INTO p1_c3_c1 SELECT i, i % 100 FROM (SELECT generate_series(201, 250) i) t;
55 INSERT INTO p1_c3_c2 SELECT i, i % 100 FROM (SELECT generate_series(251, 300) i) t;
56 INSERT INTO p1_c4 SELECT i, i % 100 FROM (SELECT generate_series(301, 400) i) t;
57 CREATE INDEX t1_val ON t1 (val);
58 CREATE INDEX t2_val ON t2 (val);
59 ANALYZE t1;
60 ANALYZE t2;
61 ANALYZE t3;
62 ANALYZE t4;
63 ANALYZE p1;
64 ANALYZE p1_c1;
65 ANALYZE p1_c2;
66 CREATE VIEW v1 AS SELECT id, val FROM t1;
67 CREATE VIEW v2 AS SELECT t1.id t1_id, t1.val t1_val, t2.id t2_id, t2.val t2_val FROM t1, t2 WHERE t1.id = t2.id;
68 CREATE VIEW v3 AS SELECT t_1.id t1_id, t_1.val t1_val, t_2.id t2_id, t_2.val t2_val FROM t1 t_1, t2 t_2 WHERE t_1.id = t_2.id;
69 CREATE VIEW v4 AS SELECT v_2.t1_id, t_3.id FROM v2 v_2, t3 t_3 WHERE v_2.t1_id = t_3.id;
70 /*
71  * The following GUC parameters need the setting of the default value to
72  * succeed in regression test.
73  */
74 SELECT name, setting, category
75   FROM pg_settings
76  WHERE category LIKE 'Query Tuning%'
77     OR name = 'client_min_messages'
78  ORDER BY category, name;
79            name            |  setting  |                  category                   
80 ---------------------------+-----------+---------------------------------------------
81  geqo                      | on        | Query Tuning / Genetic Query Optimizer
82  geqo_effort               | 5         | Query Tuning / Genetic Query Optimizer
83  geqo_generations          | 0         | Query Tuning / Genetic Query Optimizer
84  geqo_pool_size            | 0         | Query Tuning / Genetic Query Optimizer
85  geqo_seed                 | 0         | Query Tuning / Genetic Query Optimizer
86  geqo_selection_bias       | 2         | Query Tuning / Genetic Query Optimizer
87  geqo_threshold            | 12        | Query Tuning / Genetic Query Optimizer
88  constraint_exclusion      | partition | Query Tuning / Other Planner Options
89  cursor_tuple_fraction     | 0.1       | Query Tuning / Other Planner Options
90  default_statistics_target | 100       | Query Tuning / Other Planner Options
91  from_collapse_limit       | 8         | Query Tuning / Other Planner Options
92  join_collapse_limit       | 8         | Query Tuning / Other Planner Options
93  cpu_index_tuple_cost      | 0.005     | Query Tuning / Planner Cost Constants
94  cpu_operator_cost         | 0.0025    | Query Tuning / Planner Cost Constants
95  cpu_tuple_cost            | 0.01      | Query Tuning / Planner Cost Constants
96  effective_cache_size      | 16384     | Query Tuning / Planner Cost Constants
97  random_page_cost          | 4         | Query Tuning / Planner Cost Constants
98  seq_page_cost             | 1         | Query Tuning / Planner Cost Constants
99  enable_bitmapscan         | on        | Query Tuning / Planner Method Configuration
100  enable_hashagg            | on        | Query Tuning / Planner Method Configuration
101  enable_hashjoin           | on        | Query Tuning / Planner Method Configuration
102  enable_indexscan          | on        | Query Tuning / Planner Method Configuration
103  enable_material           | on        | Query Tuning / Planner Method Configuration
104  enable_mergejoin          | on        | Query Tuning / Planner Method Configuration
105  enable_nestloop           | on        | Query Tuning / Planner Method Configuration
106  enable_seqscan            | on        | Query Tuning / Planner Method Configuration
107  enable_sort               | on        | Query Tuning / Planner Method Configuration
108  enable_tidscan            | on        | Query Tuning / Planner Method Configuration
109  client_min_messages       | notice    | Reporting and Logging / When to Log
110 (29 rows)
111