Debian Codegraph @

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

raw
1 Parsed test spec with 3 sessions
2
3 starting permutation: s2snitch s1b s1s s2detach s1cancel s1insert s1c
4 step s2snitch: insert into d4_pid select pg_backend_pid();
5 step s1b: begin;
6 step s1s: select * from d4_primary;
7 a
8 -
9 1
10 2
11 (2 rows)
12
13 step s2detach: alter table d4_primary detach partition d4_primary1 concurrently; <waiting ...>
14 step s1cancel: select pg_cancel_backend(pid) from d4_pid; <waiting ...>
15 step s2detach: <... completed>
16 ERROR: canceling statement due to user request
17 step s1cancel: <... completed>
18 pg_cancel_backend
19 -----------------
20 t
21 (1 row)
22
23 step s1insert: insert into d4_fk values (1);
24 ERROR: insert or update on table "d4_fk" violates foreign key constraint "d4_fk_a_fkey"
25 step s1c: commit;
26
27 starting permutation: s2snitch s1b s1s s2detach s1insert s1c
28 step s2snitch: insert into d4_pid select pg_backend_pid();
29 step s1b: begin;
30 step s1s: select * from d4_primary;
31 a
32 -
33 1
34 2
35 (2 rows)
36
37 step s2detach: alter table d4_primary detach partition d4_primary1 concurrently; <waiting ...>
38 step s1insert: insert into d4_fk values (1);
39 ERROR: insert or update on table "d4_fk" violates foreign key constraint "d4_fk_a_fkey"
40 step s2detach: <... completed>
41 step s1c: commit;
42
43 starting permutation: s2snitch s1brr s1s s2detach s1cancel s1insert s1c
44 step s2snitch: insert into d4_pid select pg_backend_pid();
45 step s1brr: begin isolation level repeatable read;
46 step s1s: select * from d4_primary;
47 a
48 -
49 1
50 2
51 (2 rows)
52
53 step s2detach: alter table d4_primary detach partition d4_primary1 concurrently; <waiting ...>
54 step s1cancel: select pg_cancel_backend(pid) from d4_pid; <waiting ...>
55 step s2detach: <... completed>
56 ERROR: canceling statement due to user request
57 step s1cancel: <... completed>
58 pg_cancel_backend
59 -----------------
60 t
61 (1 row)
62
63 step s1insert: insert into d4_fk values (1);
64 ERROR: insert or update on table "d4_fk" violates foreign key constraint "d4_fk_a_fkey"
65 step s1c: commit;
66
67 starting permutation: s2snitch s1brr s1s s2detach s1insert s1c
68 step s2snitch: insert into d4_pid select pg_backend_pid();
69 step s1brr: begin isolation level repeatable read;
70 step s1s: select * from d4_primary;
71 a
72 -
73 1
74 2
75 (2 rows)
76
77 step s2detach: alter table d4_primary detach partition d4_primary1 concurrently; <waiting ...>
78 step s1insert: insert into d4_fk values (1);
79 ERROR: insert or update on table "d4_fk" violates foreign key constraint "d4_fk_a_fkey"
80 step s2detach: <... completed>
81 step s1c: commit;
82
83 starting permutation: s2snitch s1b s1declare s2detach s1cancel s1fetchall s1insert s1c
84 step s2snitch: insert into d4_pid select pg_backend_pid();
85 step s1b: begin;
86 step s1declare: declare f cursor for select * from d4_primary;
87 step s2detach: alter table d4_primary detach partition d4_primary1 concurrently; <waiting ...>
88 step s1cancel: select pg_cancel_backend(pid) from d4_pid; <waiting ...>
89 step s2detach: <... completed>
90 ERROR: canceling statement due to user request
91 step s1cancel: <... completed>
92 pg_cancel_backend
93 -----------------
94 t
95 (1 row)
96
97 step s1fetchall: fetch all from f;
98 a
99 -
100 1
101 2
102 (2 rows)
103
104 step s1insert: insert into d4_fk values (1);
105 ERROR: insert or update on table "d4_fk" violates foreign key constraint "d4_fk_a_fkey"
106 step s1c: commit;
107
108 starting permutation: s2snitch s1b s1declare s2detach s1fetchall s1insert s1c
109 step s2snitch: insert into d4_pid select pg_backend_pid();
110 step s1b: begin;
111 step s1declare: declare f cursor for select * from d4_primary;
112 step s2detach: alter table d4_primary detach partition d4_primary1 concurrently; <waiting ...>
113 step s1fetchall: fetch all from f;
114 a
115 -
116 1
117 2
118 (2 rows)
119
120 step s1insert: insert into d4_fk values (1);
121 ERROR: insert or update on table "d4_fk" violates foreign key constraint "d4_fk_a_fkey"
122 step s2detach: <... completed>
123 step s1c: commit;
124
125 starting permutation: s2snitch s1b s1declare s2detach s1cancel s1svpt s1insert s1rollback s1fetchall s1c
126 step s2snitch: insert into d4_pid select pg_backend_pid();
127 step s1b: begin;
128 step s1declare: declare f cursor for select * from d4_primary;
129 step s2detach: alter table d4_primary detach partition d4_primary1 concurrently; <waiting ...>
130 step s1cancel: select pg_cancel_backend(pid) from d4_pid; <waiting ...>
131 step s2detach: <... completed>
132 ERROR: canceling statement due to user request
133 step s1cancel: <... completed>
134 pg_cancel_backend
135 -----------------
136 t
137 (1 row)
138
139 step s1svpt: savepoint f;
140 step s1insert: insert into d4_fk values (1);
141 ERROR: insert or update on table "d4_fk" violates foreign key constraint "d4_fk_a_fkey"
142 step s1rollback: rollback to f;
143 step s1fetchall: fetch all from f;
144 a
145 -
146 1
147 2
148 (2 rows)
149
150 step s1c: commit;
151
152 starting permutation: s2snitch s1b s1declare s2detach s1svpt s1insert s1rollback s1fetchall s1c
153 step s2snitch: insert into d4_pid select pg_backend_pid();
154 step s1b: begin;
155 step s1declare: declare f cursor for select * from d4_primary;
156 step s2detach: alter table d4_primary detach partition d4_primary1 concurrently; <waiting ...>
157 step s1svpt: savepoint f;
158 step s1insert: insert into d4_fk values (1);
159 ERROR: insert or update on table "d4_fk" violates foreign key constraint "d4_fk_a_fkey"
160 step s1rollback: rollback to f;
161 step s1fetchall: fetch all from f;
162 a
163 -
164 1
165 2
166 (2 rows)
167
168 step s1c: commit;
169 step s2detach: <... completed>
170
171 starting permutation: s2snitch s1b s2detach s1declare s1cancel s1fetchall s1insert s1c
172 step s2snitch: insert into d4_pid select pg_backend_pid();
173 step s1b: begin;
174 step s2detach: alter table d4_primary detach partition d4_primary1 concurrently;
175 step s1declare: declare f cursor for select * from d4_primary;
176 step s1cancel: select pg_cancel_backend(pid) from d4_pid;
177 pg_cancel_backend
178 -----------------
179 t
180 (1 row)
181
182 step s1fetchall: fetch all from f;
183 a
184 -
185 2
186 (1 row)
187
188 step s1insert: insert into d4_fk values (1);
189 ERROR: insert or update on table "d4_fk" violates foreign key constraint "d4_fk_a_fkey"
190 step s1c: commit;
191
192 starting permutation: s2snitch s1b s2detach s1declare s1fetchall s1insert s1c
193 step s2snitch: insert into d4_pid select pg_backend_pid();
194 step s1b: begin;
195 step s2detach: alter table d4_primary detach partition d4_primary1 concurrently;
196 step s1declare: declare f cursor for select * from d4_primary;
197 step s1fetchall: fetch all from f;
198 a
199 -
200 2
201 (1 row)
202
203 step s1insert: insert into d4_fk values (1);
204 ERROR: insert or update on table "d4_fk" violates foreign key constraint "d4_fk_a_fkey"
205 step s1c: commit;
206
207 starting permutation: s2snitch s1b s2detach s1declare s1cancel s1svpt s1insert s1rollback s1fetchall s1c
208 step s2snitch: insert into d4_pid select pg_backend_pid();
209 step s1b: begin;
210 step s2detach: alter table d4_primary detach partition d4_primary1 concurrently;
211 step s1declare: declare f cursor for select * from d4_primary;
212 step s1cancel: select pg_cancel_backend(pid) from d4_pid;
213 pg_cancel_backend
214 -----------------
215 t
216 (1 row)
217
218 step s1svpt: savepoint f;
219 step s1insert: insert into d4_fk values (1);
220 ERROR: insert or update on table "d4_fk" violates foreign key constraint "d4_fk_a_fkey"
221 step s1rollback: rollback to f;
222 step s1fetchall: fetch all from f;
223 a
224 -
225 2
226 (1 row)
227
228 step s1c: commit;
229
230 starting permutation: s2snitch s1b s2detach s1declare s1svpt s1insert s1rollback s1fetchall s1c
231 step s2snitch: insert into d4_pid select pg_backend_pid();
232 step s1b: begin;
233 step s2detach: alter table d4_primary detach partition d4_primary1 concurrently;
234 step s1declare: declare f cursor for select * from d4_primary;
235 step s1svpt: savepoint f;
236 step s1insert: insert into d4_fk values (1);
237 ERROR: insert or update on table "d4_fk" violates foreign key constraint "d4_fk_a_fkey"
238 step s1rollback: rollback to f;
239 step s1fetchall: fetch all from f;
240 a
241 -
242 2
243 (1 row)
244
245 step s1c: commit;
246
247 starting permutation: s2snitch s1brr s1declare2 s1fetchone s2detach s1cancel s1updcur s1c
248 step s2snitch: insert into d4_pid select pg_backend_pid();
249 step s1brr: begin isolation level repeatable read;
250 step s1declare2: declare f cursor for select * from d4_fk where a = 2;
251 step s1fetchone: fetch 1 from f;
252 a
253 -
254 2
255 (1 row)
256
257 step s2detach: alter table d4_primary detach partition d4_primary1 concurrently; <waiting ...>
258 step s1cancel: select pg_cancel_backend(pid) from d4_pid; <waiting ...>
259 step s2detach: <... completed>
260 ERROR: canceling statement due to user request
261 step s1cancel: <... completed>
262 pg_cancel_backend
263 -----------------
264 t
265 (1 row)
266
267 step s1updcur: update d4_fk set a = 1 where current of f;
268 ERROR: insert or update on table "d4_fk" violates foreign key constraint "d4_fk_a_fkey"
269 step s1c: commit;
270
271 starting permutation: s2snitch s1brr s1declare2 s1fetchone s2detach s1updcur s1c
272 step s2snitch: insert into d4_pid select pg_backend_pid();
273 step s1brr: begin isolation level repeatable read;
274 step s1declare2: declare f cursor for select * from d4_fk where a = 2;
275 step s1fetchone: fetch 1 from f;
276 a
277 -
278 2
279 (1 row)
280
281 step s2detach: alter table d4_primary detach partition d4_primary1 concurrently; <waiting ...>
282 step s1updcur: update d4_fk set a = 1 where current of f;
283 ERROR: insert or update on table "d4_fk" violates foreign key constraint "d4_fk_a_fkey"
284 step s2detach: <... completed>
285 step s1c: commit;
286
287 starting permutation: s2snitch s1brr s1declare2 s1fetchone s1updcur s2detach s1c
288 step s2snitch: insert into d4_pid select pg_backend_pid();
289 step s1brr: begin isolation level repeatable read;
290 step s1declare2: declare f cursor for select * from d4_fk where a = 2;
291 step s1fetchone: fetch 1 from f;
292 a
293 -
294 2
295 (1 row)
296
297 step s1updcur: update d4_fk set a = 1 where current of f;
298 step s2detach: alter table d4_primary detach partition d4_primary1 concurrently; <waiting ...>
299 step s1c: commit;
300 step s2detach: <... completed>
301 ERROR: removing partition "d4_primary1" violates foreign key constraint "d4_fk_a_fkey_1"
302
303 starting permutation: s2snitch s1b s1s s2detach s3insert s1c
304 step s2snitch: insert into d4_pid select pg_backend_pid();
305 step s1b: begin;
306 step s1s: select * from d4_primary;
307 a
308 -
309 1
310 2
311 (2 rows)
312
313 step s2detach: alter table d4_primary detach partition d4_primary1 concurrently; <waiting ...>
314 step s3insert: insert into d4_fk values (1);
315 ERROR: insert or update on table "d4_fk" violates foreign key constraint "d4_fk_a_fkey"
316 step s1c: commit;
317 step s2detach: <... completed>
318
319 starting permutation: s2snitch s1b s1s s2detach s3brr s3insert s3commit s1cancel s1c
320 step s2snitch: insert into d4_pid select pg_backend_pid();
321 step s1b: begin;
322 step s1s: select * from d4_primary;
323 a
324 -
325 1
326 2
327 (2 rows)
328
329 step s2detach: alter table d4_primary detach partition d4_primary1 concurrently; <waiting ...>
330 step s3brr: begin isolation level repeatable read;
331 step s3insert: insert into d4_fk values (1);
332 ERROR: insert or update on table "d4_fk" violates foreign key constraint "d4_fk_a_fkey"
333 step s3commit: commit;
334 step s1cancel: select pg_cancel_backend(pid) from d4_pid; <waiting ...>
335 step s2detach: <... completed>
336 ERROR: canceling statement due to user request
337 step s1cancel: <... completed>
338 pg_cancel_backend
339 -----------------
340 t
341 (1 row)
342
343 step s1c: commit;
344
345 starting permutation: s2snitch s1b s1s s2detach s3brr s3insert s3commit s1c
346 step s2snitch: insert into d4_pid select pg_backend_pid();
347 step s1b: begin;
348 step s1s: select * from d4_primary;
349 a
350 -
351 1
352 2
353 (2 rows)
354
355 step s2detach: alter table d4_primary detach partition d4_primary1 concurrently; <waiting ...>
356 step s3brr: begin isolation level repeatable read;
357 step s3insert: insert into d4_fk values (1);
358 ERROR: insert or update on table "d4_fk" violates foreign key constraint "d4_fk_a_fkey"
359 step s3commit: commit;
360 step s1c: commit;
361 step s2detach: <... completed>
362
363 starting permutation: s2snitch s1brr s1s s2detach s1cancel s1noop s3vacfreeze s1s s1insert s1c
364 step s2snitch: insert into d4_pid select pg_backend_pid();
365 step s1brr: begin isolation level repeatable read;
366 step s1s: select * from d4_primary;
367 a
368 -
369 1
370 2
371 (2 rows)
372
373 step s2detach: alter table d4_primary detach partition d4_primary1 concurrently; <waiting ...>
374 step s1cancel: select pg_cancel_backend(pid) from d4_pid; <waiting ...>
375 step s2detach: <... completed>
376 ERROR: canceling statement due to user request
377 step s1cancel: <... completed>
378 pg_cancel_backend
379 -----------------
380 t
381 (1 row)
382
383 step s1noop:
384 step s3vacfreeze: vacuum freeze pg_catalog.pg_inherits;
385 step s1s: select * from d4_primary;
386 a
387 -
388 1
389 2
390 (2 rows)
391
392 step s1insert: insert into d4_fk values (1);
393 ERROR: insert or update on table "d4_fk" violates foreign key constraint "d4_fk_a_fkey"
394 step s1c: commit;
395
396 starting permutation: s2snitch s1b s1s s2detach s1cancel s1noop s3vacfreeze s1s s1insert s1c
397 step s2snitch: insert into d4_pid select pg_backend_pid();
398 step s1b: begin;
399 step s1s: select * from d4_primary;
400 a
401 -
402 1
403 2
404 (2 rows)
405
406 step s2detach: alter table d4_primary detach partition d4_primary1 concurrently; <waiting ...>
407 step s1cancel: select pg_cancel_backend(pid) from d4_pid; <waiting ...>
408 step s2detach: <... completed>
409 ERROR: canceling statement due to user request
410 step s1cancel: <... completed>
411 pg_cancel_backend
412 -----------------
413 t
414 (1 row)
415
416 step s1noop:
417 step s3vacfreeze: vacuum freeze pg_catalog.pg_inherits;
418 step s1s: select * from d4_primary;
419 a
420 -
421 2
422 (1 row)
423
424 step s1insert: insert into d4_fk values (1);
425 ERROR: insert or update on table "d4_fk" violates foreign key constraint "d4_fk_a_fkey"
426 step s1c: commit;