Debian Codegraph @

src/test/isolation/expected/detach-partition-concurrently-3.out

raw
1 Parsed test spec with 2 sessions
2
3 starting permutation: s2snitch s1b s1s s2detach s1cancel s1c s1describe s1alter
4 step s2snitch: INSERT INTO d3_pid SELECT pg_backend_pid();
5 step s1b: BEGIN;
6 step s1s: SELECT * FROM d3_listp;
7 a
8 -
9 1
10 (1 row)
11
12 step s2detach: ALTER TABLE d3_listp DETACH PARTITION d3_listp1 CONCURRENTLY; <waiting ...>
13 step s1cancel: SELECT pg_cancel_backend(pid) FROM d3_pid; <waiting ...>
14 step s2detach: <... completed>
15 ERROR: canceling statement due to user request
16 step s1cancel: <... completed>
17 pg_cancel_backend
18 -----------------
19 t
20 (1 row)
21
22 step s1c: COMMIT;
23 step s1describe: SELECT 'd3_listp' AS root, * FROM pg_partition_tree('d3_listp')
24 UNION ALL SELECT 'd3_listp1', * FROM pg_partition_tree('d3_listp1');
25 root |relid |parentrelid|isleaf|level
26 ---------+---------+-----------+------+-----
27 d3_listp |d3_listp | |f | 0
28 d3_listp |d3_listp2|d3_listp |t | 1
29 d3_listp1|d3_listp1| |t | 0
30 (3 rows)
31
32 step s1alter: ALTER TABLE d3_listp1 ALTER a DROP NOT NULL;
33 ERROR: cannot alter partition "d3_listp1" with an incomplete detach
34
35 starting permutation: s2snitch s1b s1s s2detach s1cancel s1insert s1c
36 step s2snitch: INSERT INTO d3_pid SELECT pg_backend_pid();
37 step s1b: BEGIN;
38 step s1s: SELECT * FROM d3_listp;
39 a
40 -
41 1
42 (1 row)
43
44 step s2detach: ALTER TABLE d3_listp DETACH PARTITION d3_listp1 CONCURRENTLY; <waiting ...>
45 step s1cancel: SELECT pg_cancel_backend(pid) FROM d3_pid; <waiting ...>
46 step s2detach: <... completed>
47 ERROR: canceling statement due to user request
48 step s1cancel: <... completed>
49 pg_cancel_backend
50 -----------------
51 t
52 (1 row)
53
54 step s1insert: INSERT INTO d3_listp VALUES (1);
55 ERROR: no partition of relation "d3_listp" found for row
56 step s1c: COMMIT;
57
58 starting permutation: s2snitch s1brr s1s s2detach s1cancel s1insert s1c s1spart
59 step s2snitch: INSERT INTO d3_pid SELECT pg_backend_pid();
60 step s1brr: BEGIN ISOLATION LEVEL REPEATABLE READ;
61 step s1s: SELECT * FROM d3_listp;
62 a
63 -
64 1
65 (1 row)
66
67 step s2detach: ALTER TABLE d3_listp DETACH PARTITION d3_listp1 CONCURRENTLY; <waiting ...>
68 step s1cancel: SELECT pg_cancel_backend(pid) FROM d3_pid; <waiting ...>
69 step s2detach: <... completed>
70 ERROR: canceling statement due to user request
71 step s1cancel: <... completed>
72 pg_cancel_backend
73 -----------------
74 t
75 (1 row)
76
77 step s1insert: INSERT INTO d3_listp VALUES (1);
78 step s1c: COMMIT;
79 step s1spart: SELECT * FROM d3_listp1;
80 a
81 -
82 1
83 1
84 (2 rows)
85
86
87 starting permutation: s2snitch s1b s1s s2detach s1cancel s1c s1insertpart
88 step s2snitch: INSERT INTO d3_pid SELECT pg_backend_pid();
89 step s1b: BEGIN;
90 step s1s: SELECT * FROM d3_listp;
91 a
92 -
93 1
94 (1 row)
95
96 step s2detach: ALTER TABLE d3_listp DETACH PARTITION d3_listp1 CONCURRENTLY; <waiting ...>
97 step s1cancel: SELECT pg_cancel_backend(pid) FROM d3_pid; <waiting ...>
98 step s2detach: <... completed>
99 ERROR: canceling statement due to user request
100 step s1cancel: <... completed>
101 pg_cancel_backend
102 -----------------
103 t
104 (1 row)
105
106 step s1c: COMMIT;
107 step s1insertpart: INSERT INTO d3_listp1 VALUES (1);
108
109 starting permutation: s2snitch s1b s1s s2detach2 s1cancel s1c s1brr s1insert s1s s1insert s1c
110 step s2snitch: INSERT INTO d3_pid SELECT pg_backend_pid();
111 step s1b: BEGIN;
112 step s1s: SELECT * FROM d3_listp;
113 a
114 -
115 1
116 (1 row)
117
118 step s2detach2: ALTER TABLE d3_listp DETACH PARTITION d3_listp2 CONCURRENTLY; <waiting ...>
119 step s1cancel: SELECT pg_cancel_backend(pid) FROM d3_pid; <waiting ...>
120 step s2detach2: <... completed>
121 ERROR: canceling statement due to user request
122 step s1cancel: <... completed>
123 pg_cancel_backend
124 -----------------
125 t
126 (1 row)
127
128 step s1c: COMMIT;
129 step s1brr: BEGIN ISOLATION LEVEL REPEATABLE READ;
130 step s1insert: INSERT INTO d3_listp VALUES (1);
131 step s1s: SELECT * FROM d3_listp;
132 a
133 -
134 1
135 1
136 (2 rows)
137
138 step s1insert: INSERT INTO d3_listp VALUES (1);
139 step s1c: COMMIT;
140
141 starting permutation: s2snitch s1b s1s s2detach2 s1cancel s1c s1brr s1s s1insert s1s s1c
142 step s2snitch: INSERT INTO d3_pid SELECT pg_backend_pid();
143 step s1b: BEGIN;
144 step s1s: SELECT * FROM d3_listp;
145 a
146 -
147 1
148 (1 row)
149
150 step s2detach2: ALTER TABLE d3_listp DETACH PARTITION d3_listp2 CONCURRENTLY; <waiting ...>
151 step s1cancel: SELECT pg_cancel_backend(pid) FROM d3_pid; <waiting ...>
152 step s2detach2: <... completed>
153 ERROR: canceling statement due to user request
154 step s1cancel: <... completed>
155 pg_cancel_backend
156 -----------------
157 t
158 (1 row)
159
160 step s1c: COMMIT;
161 step s1brr: BEGIN ISOLATION LEVEL REPEATABLE READ;
162 step s1s: SELECT * FROM d3_listp;
163 a
164 -
165 1
166 (1 row)
167
168 step s1insert: INSERT INTO d3_listp VALUES (1);
169 step s1s: SELECT * FROM d3_listp;
170 a
171 -
172 1
173 1
174 (2 rows)
175
176 step s1c: COMMIT;
177
178 starting permutation: s2snitch s1b s1s s2detach s1cancel s1c s1drop s1list
179 step s2snitch: INSERT INTO d3_pid SELECT pg_backend_pid();
180 step s1b: BEGIN;
181 step s1s: SELECT * FROM d3_listp;
182 a
183 -
184 1
185 (1 row)
186
187 step s2detach: ALTER TABLE d3_listp DETACH PARTITION d3_listp1 CONCURRENTLY; <waiting ...>
188 step s1cancel: SELECT pg_cancel_backend(pid) FROM d3_pid; <waiting ...>
189 step s2detach: <... completed>
190 ERROR: canceling statement due to user request
191 step s1cancel: <... completed>
192 pg_cancel_backend
193 -----------------
194 t
195 (1 row)
196
197 step s1c: COMMIT;
198 step s1drop: DROP TABLE d3_listp;
199 step s1list: SELECT relname FROM pg_catalog.pg_class
200 WHERE relname LIKE 'd3_listp%' ORDER BY 1;
201 relname
202 -------
203 (0 rows)
204
205
206 starting permutation: s2snitch s1b s1s s2detach s1cancel s1c s1trunc s1spart
207 step s2snitch: INSERT INTO d3_pid SELECT pg_backend_pid();
208 step s1b: BEGIN;
209 step s1s: SELECT * FROM d3_listp;
210 a
211 -
212 1
213 (1 row)
214
215 step s2detach: ALTER TABLE d3_listp DETACH PARTITION d3_listp1 CONCURRENTLY; <waiting ...>
216 step s1cancel: SELECT pg_cancel_backend(pid) FROM d3_pid; <waiting ...>
217 step s2detach: <... completed>
218 ERROR: canceling statement due to user request
219 step s1cancel: <... completed>
220 pg_cancel_backend
221 -----------------
222 t
223 (1 row)
224
225 step s1c: COMMIT;
226 step s1trunc: TRUNCATE TABLE d3_listp;
227 step s1spart: SELECT * FROM d3_listp1;
228 a
229 -
230 1
231 (1 row)
232
233
234 starting permutation: s2snitch s1b s1s s2detach s1cancel s1noop s2detach2 s1c
235 step s2snitch: INSERT INTO d3_pid SELECT pg_backend_pid();
236 step s1b: BEGIN;
237 step s1s: SELECT * FROM d3_listp;
238 a
239 -
240 1
241 (1 row)
242
243 step s2detach: ALTER TABLE d3_listp DETACH PARTITION d3_listp1 CONCURRENTLY; <waiting ...>
244 step s1cancel: SELECT pg_cancel_backend(pid) FROM d3_pid; <waiting ...>
245 step s2detach: <... completed>
246 ERROR: canceling statement due to user request
247 step s1cancel: <... completed>
248 pg_cancel_backend
249 -----------------
250 t
251 (1 row)
252
253 step s1noop:
254 step s2detach2: ALTER TABLE d3_listp DETACH PARTITION d3_listp2 CONCURRENTLY;
255 ERROR: partition "d3_listp1" already pending detach in partitioned table "public.d3_listp"
256 step s1c: COMMIT;
257
258 starting permutation: s2snitch s1b s1s s2detach s1cancel s1noop s2detachfinal s1c s2detach2
259 step s2snitch: INSERT INTO d3_pid SELECT pg_backend_pid();
260 step s1b: BEGIN;
261 step s1s: SELECT * FROM d3_listp;
262 a
263 -
264 1
265 (1 row)
266
267 step s2detach: ALTER TABLE d3_listp DETACH PARTITION d3_listp1 CONCURRENTLY; <waiting ...>
268 step s1cancel: SELECT pg_cancel_backend(pid) FROM d3_pid; <waiting ...>
269 step s2detach: <... completed>
270 ERROR: canceling statement due to user request
271 step s1cancel: <... completed>
272 pg_cancel_backend
273 -----------------
274 t
275 (1 row)
276
277 step s1noop:
278 step s2detachfinal: ALTER TABLE d3_listp DETACH PARTITION d3_listp1 FINALIZE; <waiting ...>
279 step s1c: COMMIT;
280 step s2detachfinal: <... completed>
281 step s2detach2: ALTER TABLE d3_listp DETACH PARTITION d3_listp2 CONCURRENTLY;
282
283 starting permutation: s2snitch s1b s1s s2detach s1cancel s1c s1droppart s2detach2
284 step s2snitch: INSERT INTO d3_pid SELECT pg_backend_pid();
285 step s1b: BEGIN;
286 step s1s: SELECT * FROM d3_listp;
287 a
288 -
289 1
290 (1 row)
291
292 step s2detach: ALTER TABLE d3_listp DETACH PARTITION d3_listp1 CONCURRENTLY; <waiting ...>
293 step s1cancel: SELECT pg_cancel_backend(pid) FROM d3_pid; <waiting ...>
294 step s2detach: <... completed>
295 ERROR: canceling statement due to user request
296 step s1cancel: <... completed>
297 pg_cancel_backend
298 -----------------
299 t
300 (1 row)
301
302 step s1c: COMMIT;
303 step s1droppart: DROP TABLE d3_listp1;
304 step s2detach2: ALTER TABLE d3_listp DETACH PARTITION d3_listp2 CONCURRENTLY;
305
306 starting permutation: s2snitch s1b s1s s2detach s1cancel s1c s2begin s2drop s1s s2commit
307 step s2snitch: INSERT INTO d3_pid SELECT pg_backend_pid();
308 step s1b: BEGIN;
309 step s1s: SELECT * FROM d3_listp;
310 a
311 -
312 1
313 (1 row)
314
315 step s2detach: ALTER TABLE d3_listp DETACH PARTITION d3_listp1 CONCURRENTLY; <waiting ...>
316 step s1cancel: SELECT pg_cancel_backend(pid) FROM d3_pid; <waiting ...>
317 step s2detach: <... completed>
318 ERROR: canceling statement due to user request
319 step s1cancel: <... completed>
320 pg_cancel_backend
321 -----------------
322 t
323 (1 row)
324
325 step s1c: COMMIT;
326 step s2begin: BEGIN;
327 step s2drop: DROP TABLE d3_listp1;
328 step s1s: SELECT * FROM d3_listp; <waiting ...>
329 step s2commit: COMMIT;
330 step s1s: <... completed>
331 a
332 -
333 (0 rows)
334
335
336 starting permutation: s2snitch s1b s1s s2detach s1cancel s1c s1b s1spart s2detachfinal s1c
337 step s2snitch: INSERT INTO d3_pid SELECT pg_backend_pid();
338 step s1b: BEGIN;
339 step s1s: SELECT * FROM d3_listp;
340 a
341 -
342 1
343 (1 row)
344
345 step s2detach: ALTER TABLE d3_listp DETACH PARTITION d3_listp1 CONCURRENTLY; <waiting ...>
346 step s1cancel: SELECT pg_cancel_backend(pid) FROM d3_pid; <waiting ...>
347 step s2detach: <... completed>
348 ERROR: canceling statement due to user request
349 step s1cancel: <... completed>
350 pg_cancel_backend
351 -----------------
352 t
353 (1 row)
354
355 step s1c: COMMIT;
356 step s1b: BEGIN;
357 step s1spart: SELECT * FROM d3_listp1;
358 a
359 -
360 1
361 (1 row)
362
363 step s2detachfinal: ALTER TABLE d3_listp DETACH PARTITION d3_listp1 FINALIZE; <waiting ...>
364 step s1c: COMMIT;
365 step s2detachfinal: <... completed>
366
367 starting permutation: s2snitch s1b s1s s2detach s1cancel s1c s1b s1s s2detachfinal s1c
368 step s2snitch: INSERT INTO d3_pid SELECT pg_backend_pid();
369 step s1b: BEGIN;
370 step s1s: SELECT * FROM d3_listp;
371 a
372 -
373 1
374 (1 row)
375
376 step s2detach: ALTER TABLE d3_listp DETACH PARTITION d3_listp1 CONCURRENTLY; <waiting ...>
377 step s1cancel: SELECT pg_cancel_backend(pid) FROM d3_pid; <waiting ...>
378 step s2detach: <... completed>
379 ERROR: canceling statement due to user request
380 step s1cancel: <... completed>
381 pg_cancel_backend
382 -----------------
383 t
384 (1 row)
385
386 step s1c: COMMIT;
387 step s1b: BEGIN;
388 step s1s: SELECT * FROM d3_listp;
389 a
390 -
391 (0 rows)
392
393 step s2detachfinal: ALTER TABLE d3_listp DETACH PARTITION d3_listp1 FINALIZE;
394 step s1c: COMMIT;
395
396 starting permutation: s2snitch s1b s1s s2detach s1cancel s1c s1b s1spart s2detachfinal s1c
397 step s2snitch: INSERT INTO d3_pid SELECT pg_backend_pid();
398 step s1b: BEGIN;
399 step s1s: SELECT * FROM d3_listp;
400 a
401 -
402 1
403 (1 row)
404
405 step s2detach: ALTER TABLE d3_listp DETACH PARTITION d3_listp1 CONCURRENTLY; <waiting ...>
406 step s1cancel: SELECT pg_cancel_backend(pid) FROM d3_pid; <waiting ...>
407 step s2detach: <... completed>
408 ERROR: canceling statement due to user request
409 step s1cancel: <... completed>
410 pg_cancel_backend
411 -----------------
412 t
413 (1 row)
414
415 step s1c: COMMIT;
416 step s1b: BEGIN;
417 step s1spart: SELECT * FROM d3_listp1;
418 a
419 -
420 1
421 (1 row)
422
423 step s2detachfinal: ALTER TABLE d3_listp DETACH PARTITION d3_listp1 FINALIZE; <waiting ...>
424 step s1c: COMMIT;
425 step s2detachfinal: <... completed>
426
427 starting permutation: s2snitch s1b s1s s2detach s1cancel s1c s2begin s2detachfinal s2commit
428 step s2snitch: INSERT INTO d3_pid SELECT pg_backend_pid();
429 step s1b: BEGIN;
430 step s1s: SELECT * FROM d3_listp;
431 a
432 -
433 1
434 (1 row)
435
436 step s2detach: ALTER TABLE d3_listp DETACH PARTITION d3_listp1 CONCURRENTLY; <waiting ...>
437 step s1cancel: SELECT pg_cancel_backend(pid) FROM d3_pid; <waiting ...>
438 step s2detach: <... completed>
439 ERROR: canceling statement due to user request
440 step s1cancel: <... completed>
441 pg_cancel_backend
442 -----------------
443 t
444 (1 row)
445
446 step s1c: COMMIT;
447 step s2begin: BEGIN;
448 step s2detachfinal: ALTER TABLE d3_listp DETACH PARTITION d3_listp1 FINALIZE;
449 step s2commit: COMMIT;
450
451 starting permutation: s2snitch s1b s1s s2detach s1cancel s1c s2begin s2detachfinal s1spart s2commit
452 step s2snitch: INSERT INTO d3_pid SELECT pg_backend_pid();
453 step s1b: BEGIN;
454 step s1s: SELECT * FROM d3_listp;
455 a
456 -
457 1
458 (1 row)
459
460 step s2detach: ALTER TABLE d3_listp DETACH PARTITION d3_listp1 CONCURRENTLY; <waiting ...>
461 step s1cancel: SELECT pg_cancel_backend(pid) FROM d3_pid; <waiting ...>
462 step s2detach: <... completed>
463 ERROR: canceling statement due to user request
464 step s1cancel: <... completed>
465 pg_cancel_backend
466 -----------------
467 t
468 (1 row)
469
470 step s1c: COMMIT;
471 step s2begin: BEGIN;
472 step s2detachfinal: ALTER TABLE d3_listp DETACH PARTITION d3_listp1 FINALIZE;
473 step s1spart: SELECT * FROM d3_listp1; <waiting ...>
474 step s2commit: COMMIT;
475 step s1spart: <... completed>
476 a
477 -
478 1
479 (1 row)
480
481
482 starting permutation: s2snitch s1b s1s s2detach s1cancel s1c s2begin s2detachfinal s1insertpart s2commit
483 step s2snitch: INSERT INTO d3_pid SELECT pg_backend_pid();
484 step s1b: BEGIN;
485 step s1s: SELECT * FROM d3_listp;
486 a
487 -
488 1
489 (1 row)
490
491 step s2detach: ALTER TABLE d3_listp DETACH PARTITION d3_listp1 CONCURRENTLY; <waiting ...>
492 step s1cancel: SELECT pg_cancel_backend(pid) FROM d3_pid; <waiting ...>
493 step s2detach: <... completed>
494 ERROR: canceling statement due to user request
495 step s1cancel: <... completed>
496 pg_cancel_backend
497 -----------------
498 t
499 (1 row)
500
501 step s1c: COMMIT;
502 step s2begin: BEGIN;
503 step s2detachfinal: ALTER TABLE d3_listp DETACH PARTITION d3_listp1 FINALIZE;
504 step s1insertpart: INSERT INTO d3_listp1 VALUES (1); <waiting ...>
505 step s2commit: COMMIT;
506 step s1insertpart: <... completed>