]> granicus.if.org Git - postgresql/blob - src/test/regress/expected/create_table.out
Teach the system how to use hashing for UNION. (INTERSECT/EXCEPT will follow,
[postgresql] / src / test / regress / expected / create_table.out
1 --
2 -- CREATE_TABLE
3 --
4 --
5 -- CLASS DEFINITIONS
6 --
7 CREATE TABLE hobbies_r (
8         name            text, 
9         person          text
10 );
11 CREATE TABLE equipment_r (
12         name            text,
13         hobby           text
14 );
15 CREATE TABLE onek (
16         unique1         int4,
17         unique2         int4,
18         two                     int4,
19         four            int4,
20         ten                     int4,
21         twenty          int4,
22         hundred         int4,
23         thousand        int4,
24         twothousand     int4,
25         fivethous       int4,
26         tenthous        int4,
27         odd                     int4,
28         even            int4,
29         stringu1        name,
30         stringu2        name,
31         string4         name
32 );
33 CREATE TABLE tenk1 (
34         unique1         int4,
35         unique2         int4,
36         two                     int4,
37         four            int4,
38         ten                     int4,
39         twenty          int4,
40         hundred         int4,
41         thousand        int4,
42         twothousand     int4,
43         fivethous       int4,
44         tenthous        int4,
45         odd                     int4,
46         even            int4,
47         stringu1        name,
48         stringu2        name,
49         string4         name
50 ) WITH OIDS;
51 CREATE TABLE tenk2 (
52         unique1         int4,
53         unique2         int4,
54         two             int4,
55         four            int4,
56         ten                     int4,
57         twenty          int4,
58         hundred         int4,
59         thousand        int4,
60         twothousand int4,
61         fivethous       int4,
62         tenthous        int4,
63         odd                     int4,
64         even            int4,
65         stringu1        name,
66         stringu2        name,
67         string4         name
68 );
69 CREATE TABLE person (
70         name            text,
71         age                     int4,
72         location        point
73 );
74 CREATE TABLE emp (
75         salary          int4,
76         manager         name
77 ) INHERITS (person) WITH OIDS;
78 CREATE TABLE student (
79         gpa             float8
80 ) INHERITS (person);
81 CREATE TABLE stud_emp (
82         percent         int4
83 ) INHERITS (emp, student);
84 NOTICE:  merging multiple inherited definitions of column "name"
85 NOTICE:  merging multiple inherited definitions of column "age"
86 NOTICE:  merging multiple inherited definitions of column "location"
87 CREATE TABLE city (
88         name            name,
89         location        box,
90         budget          city_budget
91 );
92 CREATE TABLE dept (
93         dname           name,
94         mgrname         text
95 );
96 CREATE TABLE slow_emp4000 (
97         home_base        box
98 );
99 CREATE TABLE fast_emp4000 (
100         home_base        box
101 );
102 CREATE TABLE road (
103         name            text,
104         thepath         path
105 );
106 CREATE TABLE ihighway () INHERITS (road);
107 CREATE TABLE shighway (
108         surface         text
109 ) INHERITS (road);
110 CREATE TABLE real_city (
111         pop                     int4,
112         cname           text,
113         outline         path
114 );
115 --
116 -- test the "star" operators a bit more thoroughly -- this time,
117 -- throw in lots of NULL fields...
118 --
119 -- a is the type root
120 -- b and c inherit from a (one-level single inheritance)
121 -- d inherits from b and c (two-level multiple inheritance)
122 -- e inherits from c (two-level single inheritance)
123 -- f inherits from e (three-level single inheritance)
124 --
125 CREATE TABLE a_star (
126         class           char, 
127         a                       int4
128 );
129 CREATE TABLE b_star (
130         b                       text
131 ) INHERITS (a_star);
132 CREATE TABLE c_star (
133         c                       name
134 ) INHERITS (a_star);
135 CREATE TABLE d_star (
136         d                       float8
137 ) INHERITS (b_star, c_star);
138 NOTICE:  merging multiple inherited definitions of column "class"
139 NOTICE:  merging multiple inherited definitions of column "a"
140 CREATE TABLE e_star (
141         e                       int2
142 ) INHERITS (c_star);
143 CREATE TABLE f_star (
144         f                       polygon
145 ) INHERITS (e_star);
146 CREATE TABLE aggtest (
147         a                       int2,
148         b                       float4
149 );
150 CREATE TABLE hash_i4_heap (
151         seqno           int4,
152         random          int4
153 );
154 CREATE TABLE hash_name_heap (
155         seqno           int4,
156         random          name
157 );
158 CREATE TABLE hash_txt_heap (
159         seqno           int4,
160         random          text
161 );
162 CREATE TABLE hash_f8_heap (
163         seqno           int4,
164         random          float8
165 );
166 -- don't include the hash_ovfl_heap stuff in the distribution
167 -- the data set is too large for what it's worth
168 -- 
169 -- CREATE TABLE hash_ovfl_heap (
170 --      x                       int4,
171 --      y                       int4
172 -- );
173 CREATE TABLE bt_i4_heap (
174         seqno           int4,
175         random          int4
176 );
177 CREATE TABLE bt_name_heap (
178         seqno           name,
179         random          int4
180 );
181 CREATE TABLE bt_txt_heap (
182         seqno           text,
183         random          int4
184 );
185 CREATE TABLE bt_f8_heap (
186         seqno           float8, 
187         random          int4
188 );
189 CREATE TABLE array_op_test (
190         seqno           int4,
191         i                       int4[],
192         t                       text[]
193 );
194 CREATE TABLE array_index_op_test (
195         seqno           int4,
196         i                       int4[],
197         t                       text[]
198 );
199 CREATE TABLE test_tsvector( 
200         t text, 
201         a tsvector 
202 );