5 -- (any resemblance to real life is purely coincidental)
7 INSERT INTO tenk2 SELECT * FROM tenk1;
8 SELECT * INTO TABLE onek2 FROM onek;
9 INSERT INTO fast_emp4000 SELECT * FROM slow_emp4000;
14 INSERT INTO hobbies_r (name, person)
15 SELECT 'posthacking', p.name
17 WHERE p.name = 'mike' or p.name = 'jeff';
18 INSERT INTO hobbies_r (name, person)
19 SELECT 'basketball', p.name
21 WHERE p.name = 'joe' or p.name = 'sally';
22 INSERT INTO hobbies_r (name) VALUES ('skywalking');
23 INSERT INTO equipment_r (name, hobby) VALUES ('advil', 'posthacking');
24 INSERT INTO equipment_r (name, hobby) VALUES ('peet''s coffee', 'posthacking');
25 INSERT INTO equipment_r (name, hobby) VALUES ('hightops', 'basketball');
26 INSERT INTO equipment_r (name, hobby) VALUES ('guts', 'skywalking');
30 WHERE name ~ '.*Ramp';
38 WHERE name ~ 'State Hwy.*';
40 SET surface = 'asphalt';
41 INSERT INTO a_star (class, a) VALUES ('a', 1);
42 INSERT INTO a_star (class, a) VALUES ('a', 2);
43 INSERT INTO a_star (class) VALUES ('a');
44 INSERT INTO b_star (class, a, b) VALUES ('b', 3, 'mumble'::text);
45 INSERT INTO b_star (class, a) VALUES ('b', 4);
46 INSERT INTO b_star (class, b) VALUES ('b', 'bumble'::text);
47 INSERT INTO b_star (class) VALUES ('b');
48 INSERT INTO c_star (class, a, c) VALUES ('c', 5, 'hi mom'::name);
49 INSERT INTO c_star (class, a) VALUES ('c', 6);
50 INSERT INTO c_star (class, c) VALUES ('c', 'hi paul'::name);
51 INSERT INTO c_star (class) VALUES ('c');
52 INSERT INTO d_star (class, a, b, c, d)
53 VALUES ('d', 7, 'grumble'::text, 'hi sunita'::name, '0.0'::float8);
54 INSERT INTO d_star (class, a, b, c)
55 VALUES ('d', 8, 'stumble'::text, 'hi koko'::name);
56 INSERT INTO d_star (class, a, b, d)
57 VALUES ('d', 9, 'rumble'::text, '1.1'::float8);
58 INSERT INTO d_star (class, a, c, d)
59 VALUES ('d', 10, 'hi kristin'::name, '10.01'::float8);
60 INSERT INTO d_star (class, b, c, d)
61 VALUES ('d', 'crumble'::text, 'hi boris'::name, '100.001'::float8);
62 INSERT INTO d_star (class, a, b)
63 VALUES ('d', 11, 'fumble'::text);
64 INSERT INTO d_star (class, a, c)
65 VALUES ('d', 12, 'hi avi'::name);
66 INSERT INTO d_star (class, a, d)
67 VALUES ('d', 13, '1000.0001'::float8);
68 INSERT INTO d_star (class, b, c)
69 VALUES ('d', 'tumble'::text, 'hi andrew'::name);
70 INSERT INTO d_star (class, b, d)
71 VALUES ('d', 'humble'::text, '10000.00001'::float8);
72 INSERT INTO d_star (class, c, d)
73 VALUES ('d', 'hi ginger'::name, '100000.000001'::float8);
74 INSERT INTO d_star (class, a) VALUES ('d', 14);
75 INSERT INTO d_star (class, b) VALUES ('d', 'jumble'::text);
76 INSERT INTO d_star (class, c) VALUES ('d', 'hi jolly'::name);
77 INSERT INTO d_star (class, d) VALUES ('d', '1000000.0000001'::float8);
78 INSERT INTO d_star (class) VALUES ('d');
79 INSERT INTO e_star (class, a, c, e)
80 VALUES ('e', 15, 'hi carol'::name, '-1'::int2);
81 INSERT INTO e_star (class, a, c)
82 VALUES ('e', 16, 'hi bob'::name);
83 INSERT INTO e_star (class, a, e)
84 VALUES ('e', 17, '-2'::int2);
85 INSERT INTO e_star (class, c, e)
86 VALUES ('e', 'hi michelle'::name, '-3'::int2);
87 INSERT INTO e_star (class, a)
89 INSERT INTO e_star (class, c)
90 VALUES ('e', 'hi elisa'::name);
91 INSERT INTO e_star (class, e)
92 VALUES ('e', '-4'::int2);
93 INSERT INTO f_star (class, a, c, e, f)
94 VALUES ('f', 19, 'hi claire'::name, '-5'::int2, '(1,3),(2,4)'::polygon);
95 INSERT INTO f_star (class, a, c, e)
96 VALUES ('f', 20, 'hi mike'::name, '-6'::int2);
97 INSERT INTO f_star (class, a, c, f)
98 VALUES ('f', 21, 'hi marcel'::name, '(11,44),(22,55),(33,66)'::polygon);
99 INSERT INTO f_star (class, a, e, f)
100 VALUES ('f', 22, '-7'::int2, '(111,555),(222,666),(333,777),(444,888)'::polygon);
101 INSERT INTO f_star (class, c, e, f)
102 VALUES ('f', 'hi keith'::name, '-8'::int2,
103 '(1111,3333),(2222,4444)'::polygon);
104 INSERT INTO f_star (class, a, c)
105 VALUES ('f', 24, 'hi marc'::name);
106 INSERT INTO f_star (class, a, e)
107 VALUES ('f', 25, '-9'::int2);
108 INSERT INTO f_star (class, a, f)
109 VALUES ('f', 26, '(11111,33333),(22222,44444)'::polygon);
110 INSERT INTO f_star (class, c, e)
111 VALUES ('f', 'hi allison'::name, '-10'::int2);
112 INSERT INTO f_star (class, c, f)
113 VALUES ('f', 'hi jeff'::name,
114 '(111111,333333),(222222,444444)'::polygon);
115 INSERT INTO f_star (class, e, f)
116 VALUES ('f', '-11'::int2, '(1111111,3333333),(2222222,4444444)'::polygon);
117 INSERT INTO f_star (class, a) VALUES ('f', 27);
118 INSERT INTO f_star (class, c) VALUES ('f', 'hi carl'::name);
119 INSERT INTO f_star (class, e) VALUES ('f', '-12'::int2);
120 INSERT INTO f_star (class, f)
121 VALUES ('f', '(11111111,33333333),(22222222,44444444)'::polygon);
122 INSERT INTO f_star (class) VALUES ('f');
124 -- for internal portal (cursor) tests
126 CREATE TABLE iportaltest (
131 INSERT INTO iportaltest (i, d, p)
132 VALUES (1, 3.567, '(3.0,1.0),(4.0,2.0)'::polygon);
133 INSERT INTO iportaltest (i, d, p)
134 VALUES (2, 89.05, '(4.0,2.0),(3.0,1.0)'::polygon);