File tree Expand file tree Collapse file tree 4 files changed +57
-10
lines changed Expand file tree Collapse file tree 4 files changed +57
-10
lines changed Original file line number Diff line number Diff line change @@ -204,6 +204,49 @@ SELECT * from clstr_tst ORDER BY c;
204
204
8 | 21 | veintiuno
205
205
(32 rows)
206
206
207
+ -- Verify that inheritance link still works
208
+ INSERT INTO clstr_tst_inh VALUES (0, 100, 'in child table');
209
+ SELECT * from clstr_tst;
210
+ a | b | c
211
+ ----+-----+----------------
212
+ 10 | 14 | catorce
213
+ 18 | 5 | cinco
214
+ 9 | 4 | cuatro
215
+ 26 | 19 | diecinueve
216
+ 12 | 18 | dieciocho
217
+ 30 | 16 | dieciseis
218
+ 24 | 17 | diecisiete
219
+ 2 | 10 | diez
220
+ 23 | 12 | doce
221
+ 11 | 2 | dos
222
+ 25 | 9 | nueve
223
+ 31 | 8 | ocho
224
+ 1 | 11 | once
225
+ 28 | 15 | quince
226
+ 32 | 6 | seis
227
+ 29 | 7 | siete
228
+ 15 | 13 | trece
229
+ 22 | 30 | treinta
230
+ 17 | 32 | treinta y dos
231
+ 3 | 31 | treinta y uno
232
+ 5 | 3 | tres
233
+ 20 | 1 | uno
234
+ 6 | 20 | veinte
235
+ 14 | 25 | veinticinco
236
+ 21 | 24 | veinticuatro
237
+ 4 | 22 | veintidos
238
+ 19 | 29 | veintinueve
239
+ 16 | 28 | veintiocho
240
+ 27 | 26 | veintiseis
241
+ 13 | 27 | veintisiete
242
+ 7 | 23 | veintitres
243
+ 8 | 21 | veintiuno
244
+ 0 | 100 | in child table
245
+ (33 rows)
246
+
247
+ -- Verify that foreign key link still works
248
+ INSERT INTO clstr_tst (b, c) VALUES (1111, 'this should fail');
249
+ ERROR: clstr_tst_con referential integrity violation - key referenced from clstr_tst not found in clstr_tst_s
207
250
SELECT conname FROM pg_constraint WHERE conrelid=(SELECT oid FROM pg_class
208
251
WHERE relname='clstr_tst');
209
252
conname
@@ -228,5 +271,3 @@ SELECT relname FROM pg_class WHERE relname LIKE 'clstr_tst%' ORDER BY relname;
228
271
clstr_tst_s_rf_a_seq
229
272
(11 rows)
230
273
231
- DROP TABLE clstr_tst_inh;
232
- DROP TABLE clstr_tst;
Original file line number Diff line number Diff line change @@ -55,11 +55,11 @@ test: sanity_check
55
55
# ----------
56
56
test: errors
57
57
test: select
58
+ ignore: random
58
59
59
60
# ----------
60
61
# The fourth group of parallel test
61
62
# ----------
62
- ignore: random
63
63
test: select_into select_distinct select_distinct_on select_implicit select_having subselect union case join aggregates transactions random portals arrays btree_index hash_index
64
64
65
65
test: privileges
@@ -68,11 +68,10 @@ test: misc
68
68
# ----------
69
69
# The fifth group of parallel test
70
70
# ----------
71
- test: select_views alter_table portals_p2 rules foreign_key
71
+ test: select_views alter_table portals_p2 rules foreign_key cluster
72
72
73
73
# ----------
74
74
# The sixth group of parallel test
75
75
# ----------
76
76
# "plpgsql" cannot run concurrently with "rules"
77
- test: limit plpgsql temp domain rangefuncs copy2 conversion
78
- test: without_oid
77
+ test: limit plpgsql temp domain rangefuncs copy2 conversion without_oid
Original file line number Diff line number Diff line change 1
- # $Header: /cvsroot/pgsql/src/test/regress/serial_schedule,v 1.14 2002/07/25 10:07:13 ishii Exp $
1
+ # $Header: /cvsroot/pgsql/src/test/regress/serial_schedule,v 1.15 2002/08/11 02:06:32 tgl Exp $
2
2
# This should probably be in an order similar to parallel_schedule.
3
3
test: boolean
4
4
test: char
@@ -79,6 +79,7 @@ test: alter_table
79
79
test: portals_p2
80
80
test: rules
81
81
test: foreign_key
82
+ test: cluster
82
83
test: limit
83
84
test: plpgsql
84
85
test: copy2
Original file line number Diff line number Diff line change @@ -64,9 +64,15 @@ SELECT * from clstr_tst ORDER BY a;
64
64
SELECT * from clstr_tst ORDER BY b;
65
65
SELECT * from clstr_tst ORDER BY c;
66
66
67
+ -- Verify that inheritance link still works
68
+ INSERT INTO clstr_tst_inh VALUES (0 , 100 , ' in child table' );
69
+ SELECT * from clstr_tst;
70
+
71
+ -- Verify that foreign key link still works
72
+ INSERT INTO clstr_tst (b, c) VALUES (1111 , ' this should fail' );
73
+
67
74
SELECT conname FROM pg_constraint WHERE conrelid= (SELECT oid FROM pg_class
68
75
WHERE relname= ' clstr_tst' );
69
- SELECT relname FROM pg_class WHERE relname LIKE ' clstr_tst%' ORDER BY relname;
70
76
71
- DROP TABLE clstr_tst_inh;
72
- DROP TABLE clstr_tst;
77
+
78
+ SELECT relname FROM pg_class WHERE relname LIKE ' clstr_tst% ' ORDER BY relname ;
You can’t perform that action at this time.
0 commit comments