Debian Codegraph @

src/test/isolation/expected/two-ids.out

raw
1 Parsed test spec with 3 sessions
2
3 starting permutation: wx1 c1 rxwy2 c2 ry3 c3
4 step wx1: update D1 set id = id + 1;
5 step c1: COMMIT;
6 step rxwy2: update D2 set id = (select id+1 from D1);
7 step c2: COMMIT;
8 step ry3: select id from D2;
9 id
10 --
11 3
12 (1 row)
13
14 step c3: COMMIT;
15
16 starting permutation: wx1 c1 rxwy2 ry3 c2 c3
17 step wx1: update D1 set id = id + 1;
18 step c1: COMMIT;
19 step rxwy2: update D2 set id = (select id+1 from D1);
20 step ry3: select id from D2;
21 id
22 --
23 1
24 (1 row)
25
26 step c2: COMMIT;
27 step c3: COMMIT;
28
29 starting permutation: wx1 c1 rxwy2 ry3 c3 c2
30 step wx1: update D1 set id = id + 1;
31 step c1: COMMIT;
32 step rxwy2: update D2 set id = (select id+1 from D1);
33 step ry3: select id from D2;
34 id
35 --
36 1
37 (1 row)
38
39 step c3: COMMIT;
40 step c2: COMMIT;
41
42 starting permutation: wx1 c1 ry3 rxwy2 c2 c3
43 step wx1: update D1 set id = id + 1;
44 step c1: COMMIT;
45 step ry3: select id from D2;
46 id
47 --
48 1
49 (1 row)
50
51 step rxwy2: update D2 set id = (select id+1 from D1);
52 step c2: COMMIT;
53 step c3: COMMIT;
54
55 starting permutation: wx1 c1 ry3 rxwy2 c3 c2
56 step wx1: update D1 set id = id + 1;
57 step c1: COMMIT;
58 step ry3: select id from D2;
59 id
60 --
61 1
62 (1 row)
63
64 step rxwy2: update D2 set id = (select id+1 from D1);
65 step c3: COMMIT;
66 step c2: COMMIT;
67
68 starting permutation: wx1 c1 ry3 c3 rxwy2 c2
69 step wx1: update D1 set id = id + 1;
70 step c1: COMMIT;
71 step ry3: select id from D2;
72 id
73 --
74 1
75 (1 row)
76
77 step c3: COMMIT;
78 step rxwy2: update D2 set id = (select id+1 from D1);
79 step c2: COMMIT;
80
81 starting permutation: wx1 rxwy2 c1 c2 ry3 c3
82 step wx1: update D1 set id = id + 1;
83 step rxwy2: update D2 set id = (select id+1 from D1);
84 step c1: COMMIT;
85 step c2: COMMIT;
86 step ry3: select id from D2;
87 id
88 --
89 2
90 (1 row)
91
92 step c3: COMMIT;
93
94 starting permutation: wx1 rxwy2 c1 ry3 c2 c3
95 step wx1: update D1 set id = id + 1;
96 step rxwy2: update D2 set id = (select id+1 from D1);
97 step c1: COMMIT;
98 step ry3: select id from D2;
99 id
100 --
101 1
102 (1 row)
103
104 step c2: COMMIT;
105 ERROR: could not serialize access due to read/write dependencies among transactions
106 step c3: COMMIT;
107
108 starting permutation: wx1 rxwy2 c1 ry3 c3 c2
109 step wx1: update D1 set id = id + 1;
110 step rxwy2: update D2 set id = (select id+1 from D1);
111 step c1: COMMIT;
112 step ry3: select id from D2;
113 id
114 --
115 1
116 (1 row)
117
118 step c3: COMMIT;
119 step c2: COMMIT;
120 ERROR: could not serialize access due to read/write dependencies among transactions
121
122 starting permutation: wx1 rxwy2 c2 c1 ry3 c3
123 step wx1: update D1 set id = id + 1;
124 step rxwy2: update D2 set id = (select id+1 from D1);
125 step c2: COMMIT;
126 step c1: COMMIT;
127 step ry3: select id from D2;
128 id
129 --
130 2
131 (1 row)
132
133 step c3: COMMIT;
134
135 starting permutation: wx1 rxwy2 c2 ry3 c1 c3
136 step wx1: update D1 set id = id + 1;
137 step rxwy2: update D2 set id = (select id+1 from D1);
138 step c2: COMMIT;
139 step ry3: select id from D2;
140 id
141 --
142 2
143 (1 row)
144
145 step c1: COMMIT;
146 step c3: COMMIT;
147
148 starting permutation: wx1 rxwy2 c2 ry3 c3 c1
149 step wx1: update D1 set id = id + 1;
150 step rxwy2: update D2 set id = (select id+1 from D1);
151 step c2: COMMIT;
152 step ry3: select id from D2;
153 id
154 --
155 2
156 (1 row)
157
158 step c3: COMMIT;
159 step c1: COMMIT;
160
161 starting permutation: wx1 rxwy2 ry3 c1 c2 c3
162 step wx1: update D1 set id = id + 1;
163 step rxwy2: update D2 set id = (select id+1 from D1);
164 step ry3: select id from D2;
165 id
166 --
167 1
168 (1 row)
169
170 step c1: COMMIT;
171 step c2: COMMIT;
172 ERROR: could not serialize access due to read/write dependencies among transactions
173 step c3: COMMIT;
174
175 starting permutation: wx1 rxwy2 ry3 c1 c3 c2
176 step wx1: update D1 set id = id + 1;
177 step rxwy2: update D2 set id = (select id+1 from D1);
178 step ry3: select id from D2;
179 id
180 --
181 1
182 (1 row)
183
184 step c1: COMMIT;
185 step c3: COMMIT;
186 step c2: COMMIT;
187 ERROR: could not serialize access due to read/write dependencies among transactions
188
189 starting permutation: wx1 rxwy2 ry3 c2 c1 c3
190 step wx1: update D1 set id = id + 1;
191 step rxwy2: update D2 set id = (select id+1 from D1);
192 step ry3: select id from D2;
193 id
194 --
195 1
196 (1 row)
197
198 step c2: COMMIT;
199 step c1: COMMIT;
200 step c3: COMMIT;
201
202 starting permutation: wx1 rxwy2 ry3 c2 c3 c1
203 step wx1: update D1 set id = id + 1;
204 step rxwy2: update D2 set id = (select id+1 from D1);
205 step ry3: select id from D2;
206 id
207 --
208 1
209 (1 row)
210
211 step c2: COMMIT;
212 step c3: COMMIT;
213 step c1: COMMIT;
214
215 starting permutation: wx1 rxwy2 ry3 c3 c1 c2
216 step wx1: update D1 set id = id + 1;
217 step rxwy2: update D2 set id = (select id+1 from D1);
218 step ry3: select id from D2;
219 id
220 --
221 1
222 (1 row)
223
224 step c3: COMMIT;
225 step c1: COMMIT;
226 step c2: COMMIT;
227
228 starting permutation: wx1 rxwy2 ry3 c3 c2 c1
229 step wx1: update D1 set id = id + 1;
230 step rxwy2: update D2 set id = (select id+1 from D1);
231 step ry3: select id from D2;
232 id
233 --
234 1
235 (1 row)
236
237 step c3: COMMIT;
238 step c2: COMMIT;
239 step c1: COMMIT;
240
241 starting permutation: wx1 ry3 c1 rxwy2 c2 c3
242 step wx1: update D1 set id = id + 1;
243 step ry3: select id from D2;
244 id
245 --
246 1
247 (1 row)
248
249 step c1: COMMIT;
250 step rxwy2: update D2 set id = (select id+1 from D1);
251 step c2: COMMIT;
252 step c3: COMMIT;
253
254 starting permutation: wx1 ry3 c1 rxwy2 c3 c2
255 step wx1: update D1 set id = id + 1;
256 step ry3: select id from D2;
257 id
258 --
259 1
260 (1 row)
261
262 step c1: COMMIT;
263 step rxwy2: update D2 set id = (select id+1 from D1);
264 step c3: COMMIT;
265 step c2: COMMIT;
266
267 starting permutation: wx1 ry3 c1 c3 rxwy2 c2
268 step wx1: update D1 set id = id + 1;
269 step ry3: select id from D2;
270 id
271 --
272 1
273 (1 row)
274
275 step c1: COMMIT;
276 step c3: COMMIT;
277 step rxwy2: update D2 set id = (select id+1 from D1);
278 step c2: COMMIT;
279
280 starting permutation: wx1 ry3 rxwy2 c1 c2 c3
281 step wx1: update D1 set id = id + 1;
282 step ry3: select id from D2;
283 id
284 --
285 1
286 (1 row)
287
288 step rxwy2: update D2 set id = (select id+1 from D1);
289 step c1: COMMIT;
290 step c2: COMMIT;
291 ERROR: could not serialize access due to read/write dependencies among transactions
292 step c3: COMMIT;
293
294 starting permutation: wx1 ry3 rxwy2 c1 c3 c2
295 step wx1: update D1 set id = id + 1;
296 step ry3: select id from D2;
297 id
298 --
299 1
300 (1 row)
301
302 step rxwy2: update D2 set id = (select id+1 from D1);
303 step c1: COMMIT;
304 step c3: COMMIT;
305 step c2: COMMIT;
306 ERROR: could not serialize access due to read/write dependencies among transactions
307
308 starting permutation: wx1 ry3 rxwy2 c2 c1 c3
309 step wx1: update D1 set id = id + 1;
310 step ry3: select id from D2;
311 id
312 --
313 1
314 (1 row)
315
316 step rxwy2: update D2 set id = (select id+1 from D1);
317 step c2: COMMIT;
318 step c1: COMMIT;
319 step c3: COMMIT;
320
321 starting permutation: wx1 ry3 rxwy2 c2 c3 c1
322 step wx1: update D1 set id = id + 1;
323 step ry3: select id from D2;
324 id
325 --
326 1
327 (1 row)
328
329 step rxwy2: update D2 set id = (select id+1 from D1);
330 step c2: COMMIT;
331 step c3: COMMIT;
332 step c1: COMMIT;
333
334 starting permutation: wx1 ry3 rxwy2 c3 c1 c2
335 step wx1: update D1 set id = id + 1;
336 step ry3: select id from D2;
337 id
338 --
339 1
340 (1 row)
341
342 step rxwy2: update D2 set id = (select id+1 from D1);
343 step c3: COMMIT;
344 step c1: COMMIT;
345 step c2: COMMIT;
346
347 starting permutation: wx1 ry3 rxwy2 c3 c2 c1
348 step wx1: update D1 set id = id + 1;
349 step ry3: select id from D2;
350 id
351 --
352 1
353 (1 row)
354
355 step rxwy2: update D2 set id = (select id+1 from D1);
356 step c3: COMMIT;
357 step c2: COMMIT;
358 step c1: COMMIT;
359
360 starting permutation: wx1 ry3 c3 c1 rxwy2 c2
361 step wx1: update D1 set id = id + 1;
362 step ry3: select id from D2;
363 id
364 --
365 1
366 (1 row)
367
368 step c3: COMMIT;
369 step c1: COMMIT;
370 step rxwy2: update D2 set id = (select id+1 from D1);
371 step c2: COMMIT;
372
373 starting permutation: wx1 ry3 c3 rxwy2 c1 c2
374 step wx1: update D1 set id = id + 1;
375 step ry3: select id from D2;
376 id
377 --
378 1
379 (1 row)
380
381 step c3: COMMIT;
382 step rxwy2: update D2 set id = (select id+1 from D1);
383 step c1: COMMIT;
384 step c2: COMMIT;
385
386 starting permutation: wx1 ry3 c3 rxwy2 c2 c1
387 step wx1: update D1 set id = id + 1;
388 step ry3: select id from D2;
389 id
390 --
391 1
392 (1 row)
393
394 step c3: COMMIT;
395 step rxwy2: update D2 set id = (select id+1 from D1);
396 step c2: COMMIT;
397 step c1: COMMIT;
398
399 starting permutation: rxwy2 wx1 c1 c2 ry3 c3
400 step rxwy2: update D2 set id = (select id+1 from D1);
401 step wx1: update D1 set id = id + 1;
402 step c1: COMMIT;
403 step c2: COMMIT;
404 step ry3: select id from D2;
405 id
406 --
407 2
408 (1 row)
409
410 step c3: COMMIT;
411
412 starting permutation: rxwy2 wx1 c1 ry3 c2 c3
413 step rxwy2: update D2 set id = (select id+1 from D1);
414 step wx1: update D1 set id = id + 1;
415 step c1: COMMIT;
416 step ry3: select id from D2;
417 id
418 --
419 1
420 (1 row)
421
422 step c2: COMMIT;
423 ERROR: could not serialize access due to read/write dependencies among transactions
424 step c3: COMMIT;
425
426 starting permutation: rxwy2 wx1 c1 ry3 c3 c2
427 step rxwy2: update D2 set id = (select id+1 from D1);
428 step wx1: update D1 set id = id + 1;
429 step c1: COMMIT;
430 step ry3: select id from D2;
431 id
432 --
433 1
434 (1 row)
435
436 step c3: COMMIT;
437 step c2: COMMIT;
438 ERROR: could not serialize access due to read/write dependencies among transactions
439
440 starting permutation: rxwy2 wx1 c2 c1 ry3 c3
441 step rxwy2: update D2 set id = (select id+1 from D1);
442 step wx1: update D1 set id = id + 1;
443 step c2: COMMIT;
444 step c1: COMMIT;
445 step ry3: select id from D2;
446 id
447 --
448 2
449 (1 row)
450
451 step c3: COMMIT;
452
453 starting permutation: rxwy2 wx1 c2 ry3 c1 c3
454 step rxwy2: update D2 set id = (select id+1 from D1);
455 step wx1: update D1 set id = id + 1;
456 step c2: COMMIT;
457 step ry3: select id from D2;
458 id
459 --
460 2
461 (1 row)
462
463 step c1: COMMIT;
464 step c3: COMMIT;
465
466 starting permutation: rxwy2 wx1 c2 ry3 c3 c1
467 step rxwy2: update D2 set id = (select id+1 from D1);
468 step wx1: update D1 set id = id + 1;
469 step c2: COMMIT;
470 step ry3: select id from D2;
471 id
472 --
473 2
474 (1 row)
475
476 step c3: COMMIT;
477 step c1: COMMIT;
478
479 starting permutation: rxwy2 wx1 ry3 c1 c2 c3
480 step rxwy2: update D2 set id = (select id+1 from D1);
481 step wx1: update D1 set id = id + 1;
482 step ry3: select id from D2;
483 id
484 --
485 1
486 (1 row)
487
488 step c1: COMMIT;
489 step c2: COMMIT;
490 ERROR: could not serialize access due to read/write dependencies among transactions
491 step c3: COMMIT;
492
493 starting permutation: rxwy2 wx1 ry3 c1 c3 c2
494 step rxwy2: update D2 set id = (select id+1 from D1);
495 step wx1: update D1 set id = id + 1;
496 step ry3: select id from D2;
497 id
498 --
499 1
500 (1 row)
501
502 step c1: COMMIT;
503 step c3: COMMIT;
504 step c2: COMMIT;
505 ERROR: could not serialize access due to read/write dependencies among transactions
506
507 starting permutation: rxwy2 wx1 ry3 c2 c1 c3
508 step rxwy2: update D2 set id = (select id+1 from D1);
509 step wx1: update D1 set id = id + 1;
510 step ry3: select id from D2;
511 id
512 --
513 1
514 (1 row)
515
516 step c2: COMMIT;
517 step c1: COMMIT;
518 step c3: COMMIT;
519
520 starting permutation: rxwy2 wx1 ry3 c2 c3 c1
521 step rxwy2: update D2 set id = (select id+1 from D1);
522 step wx1: update D1 set id = id + 1;
523 step ry3: select id from D2;
524 id
525 --
526 1
527 (1 row)
528
529 step c2: COMMIT;
530 step c3: COMMIT;
531 step c1: COMMIT;
532
533 starting permutation: rxwy2 wx1 ry3 c3 c1 c2
534 step rxwy2: update D2 set id = (select id+1 from D1);
535 step wx1: update D1 set id = id + 1;
536 step ry3: select id from D2;
537 id
538 --
539 1
540 (1 row)
541
542 step c3: COMMIT;
543 step c1: COMMIT;
544 step c2: COMMIT;
545
546 starting permutation: rxwy2 wx1 ry3 c3 c2 c1
547 step rxwy2: update D2 set id = (select id+1 from D1);
548 step wx1: update D1 set id = id + 1;
549 step ry3: select id from D2;
550 id
551 --
552 1
553 (1 row)
554
555 step c3: COMMIT;
556 step c2: COMMIT;
557 step c1: COMMIT;
558
559 starting permutation: rxwy2 c2 wx1 c1 ry3 c3
560 step rxwy2: update D2 set id = (select id+1 from D1);
561 step c2: COMMIT;
562 step wx1: update D1 set id = id + 1;
563 step c1: COMMIT;
564 step ry3: select id from D2;
565 id
566 --
567 2
568 (1 row)
569
570 step c3: COMMIT;
571
572 starting permutation: rxwy2 c2 wx1 ry3 c1 c3
573 step rxwy2: update D2 set id = (select id+1 from D1);
574 step c2: COMMIT;
575 step wx1: update D1 set id = id + 1;
576 step ry3: select id from D2;
577 id
578 --
579 2
580 (1 row)
581
582 step c1: COMMIT;
583 step c3: COMMIT;
584
585 starting permutation: rxwy2 c2 wx1 ry3 c3 c1
586 step rxwy2: update D2 set id = (select id+1 from D1);
587 step c2: COMMIT;
588 step wx1: update D1 set id = id + 1;
589 step ry3: select id from D2;
590 id
591 --
592 2
593 (1 row)
594
595 step c3: COMMIT;
596 step c1: COMMIT;
597
598 starting permutation: rxwy2 c2 ry3 wx1 c1 c3
599 step rxwy2: update D2 set id = (select id+1 from D1);
600 step c2: COMMIT;
601 step ry3: select id from D2;
602 id
603 --
604 2
605 (1 row)
606
607 step wx1: update D1 set id = id + 1;
608 step c1: COMMIT;
609 step c3: COMMIT;
610
611 starting permutation: rxwy2 c2 ry3 wx1 c3 c1
612 step rxwy2: update D2 set id = (select id+1 from D1);
613 step c2: COMMIT;
614 step ry3: select id from D2;
615 id
616 --
617 2
618 (1 row)
619
620 step wx1: update D1 set id = id + 1;
621 step c3: COMMIT;
622 step c1: COMMIT;
623
624 starting permutation: rxwy2 c2 ry3 c3 wx1 c1
625 step rxwy2: update D2 set id = (select id+1 from D1);
626 step c2: COMMIT;
627 step ry3: select id from D2;
628 id
629 --
630 2
631 (1 row)
632
633 step c3: COMMIT;
634 step wx1: update D1 set id = id + 1;
635 step c1: COMMIT;
636
637 starting permutation: rxwy2 ry3 wx1 c1 c2 c3
638 step rxwy2: update D2 set id = (select id+1 from D1);
639 step ry3: select id from D2;
640 id
641 --
642 1
643 (1 row)
644
645 step wx1: update D1 set id = id + 1;
646 step c1: COMMIT;
647 step c2: COMMIT;
648 ERROR: could not serialize access due to read/write dependencies among transactions
649 step c3: COMMIT;
650
651 starting permutation: rxwy2 ry3 wx1 c1 c3 c2
652 step rxwy2: update D2 set id = (select id+1 from D1);
653 step ry3: select id from D2;
654 id
655 --
656 1
657 (1 row)
658
659 step wx1: update D1 set id = id + 1;
660 step c1: COMMIT;
661 step c3: COMMIT;
662 step c2: COMMIT;
663 ERROR: could not serialize access due to read/write dependencies among transactions
664
665 starting permutation: rxwy2 ry3 wx1 c2 c1 c3
666 step rxwy2: update D2 set id = (select id+1 from D1);
667 step ry3: select id from D2;
668 id
669 --
670 1
671 (1 row)
672
673 step wx1: update D1 set id = id + 1;
674 step c2: COMMIT;
675 step c1: COMMIT;
676 step c3: COMMIT;
677
678 starting permutation: rxwy2 ry3 wx1 c2 c3 c1
679 step rxwy2: update D2 set id = (select id+1 from D1);
680 step ry3: select id from D2;
681 id
682 --
683 1
684 (1 row)
685
686 step wx1: update D1 set id = id + 1;
687 step c2: COMMIT;
688 step c3: COMMIT;
689 step c1: COMMIT;
690
691 starting permutation: rxwy2 ry3 wx1 c3 c1 c2
692 step rxwy2: update D2 set id = (select id+1 from D1);
693 step ry3: select id from D2;
694 id
695 --
696 1
697 (1 row)
698
699 step wx1: update D1 set id = id + 1;
700 step c3: COMMIT;
701 step c1: COMMIT;
702 step c2: COMMIT;
703
704 starting permutation: rxwy2 ry3 wx1 c3 c2 c1
705 step rxwy2: update D2 set id = (select id+1 from D1);
706 step ry3: select id from D2;
707 id
708 --
709 1
710 (1 row)
711
712 step wx1: update D1 set id = id + 1;
713 step c3: COMMIT;
714 step c2: COMMIT;
715 step c1: COMMIT;
716
717 starting permutation: rxwy2 ry3 c2 wx1 c1 c3
718 step rxwy2: update D2 set id = (select id+1 from D1);
719 step ry3: select id from D2;
720 id
721 --
722 1
723 (1 row)
724
725 step c2: COMMIT;
726 step wx1: update D1 set id = id + 1;
727 step c1: COMMIT;
728 step c3: COMMIT;
729
730 starting permutation: rxwy2 ry3 c2 wx1 c3 c1
731 step rxwy2: update D2 set id = (select id+1 from D1);
732 step ry3: select id from D2;
733 id
734 --
735 1
736 (1 row)
737
738 step c2: COMMIT;
739 step wx1: update D1 set id = id + 1;
740 step c3: COMMIT;
741 step c1: COMMIT;
742
743 starting permutation: rxwy2 ry3 c2 c3 wx1 c1
744 step rxwy2: update D2 set id = (select id+1 from D1);
745 step ry3: select id from D2;
746 id
747 --
748 1
749 (1 row)
750
751 step c2: COMMIT;
752 step c3: COMMIT;
753 step wx1: update D1 set id = id + 1;
754 step c1: COMMIT;
755
756 starting permutation: rxwy2 ry3 c3 wx1 c1 c2
757 step rxwy2: update D2 set id = (select id+1 from D1);
758 step ry3: select id from D2;
759 id
760 --
761 1
762 (1 row)
763
764 step c3: COMMIT;
765 step wx1: update D1 set id = id + 1;
766 step c1: COMMIT;
767 step c2: COMMIT;
768
769 starting permutation: rxwy2 ry3 c3 wx1 c2 c1
770 step rxwy2: update D2 set id = (select id+1 from D1);
771 step ry3: select id from D2;
772 id
773 --
774 1
775 (1 row)
776
777 step c3: COMMIT;
778 step wx1: update D1 set id = id + 1;
779 step c2: COMMIT;
780 step c1: COMMIT;
781
782 starting permutation: rxwy2 ry3 c3 c2 wx1 c1
783 step rxwy2: update D2 set id = (select id+1 from D1);
784 step ry3: select id from D2;
785 id
786 --
787 1
788 (1 row)
789
790 step c3: COMMIT;
791 step c2: COMMIT;
792 step wx1: update D1 set id = id + 1;
793 step c1: COMMIT;
794
795 starting permutation: ry3 wx1 c1 rxwy2 c2 c3
796 step ry3: select id from D2;
797 id
798 --
799 1
800 (1 row)
801
802 step wx1: update D1 set id = id + 1;
803 step c1: COMMIT;
804 step rxwy2: update D2 set id = (select id+1 from D1);
805 step c2: COMMIT;
806 step c3: COMMIT;
807
808 starting permutation: ry3 wx1 c1 rxwy2 c3 c2
809 step ry3: select id from D2;
810 id
811 --
812 1
813 (1 row)
814
815 step wx1: update D1 set id = id + 1;
816 step c1: COMMIT;
817 step rxwy2: update D2 set id = (select id+1 from D1);
818 step c3: COMMIT;
819 step c2: COMMIT;
820
821 starting permutation: ry3 wx1 c1 c3 rxwy2 c2
822 step ry3: select id from D2;
823 id
824 --
825 1
826 (1 row)
827
828 step wx1: update D1 set id = id + 1;
829 step c1: COMMIT;
830 step c3: COMMIT;
831 step rxwy2: update D2 set id = (select id+1 from D1);
832 step c2: COMMIT;
833
834 starting permutation: ry3 wx1 rxwy2 c1 c2 c3
835 step ry3: select id from D2;
836 id
837 --
838 1
839 (1 row)
840
841 step wx1: update D1 set id = id + 1;
842 step rxwy2: update D2 set id = (select id+1 from D1);
843 step c1: COMMIT;
844 step c2: COMMIT;
845 ERROR: could not serialize access due to read/write dependencies among transactions
846 step c3: COMMIT;
847
848 starting permutation: ry3 wx1 rxwy2 c1 c3 c2
849 step ry3: select id from D2;
850 id
851 --
852 1
853 (1 row)
854
855 step wx1: update D1 set id = id + 1;
856 step rxwy2: update D2 set id = (select id+1 from D1);
857 step c1: COMMIT;
858 step c3: COMMIT;
859 step c2: COMMIT;
860 ERROR: could not serialize access due to read/write dependencies among transactions
861
862 starting permutation: ry3 wx1 rxwy2 c2 c1 c3
863 step ry3: select id from D2;
864 id
865 --
866 1
867 (1 row)
868
869 step wx1: update D1 set id = id + 1;
870 step rxwy2: update D2 set id = (select id+1 from D1);
871 step c2: COMMIT;
872 step c1: COMMIT;
873 step c3: COMMIT;
874
875 starting permutation: ry3 wx1 rxwy2 c2 c3 c1
876 step ry3: select id from D2;
877 id
878 --
879 1
880 (1 row)
881
882 step wx1: update D1 set id = id + 1;
883 step rxwy2: update D2 set id = (select id+1 from D1);
884 step c2: COMMIT;
885 step c3: COMMIT;
886 step c1: COMMIT;
887
888 starting permutation: ry3 wx1 rxwy2 c3 c1 c2
889 step ry3: select id from D2;
890 id
891 --
892 1
893 (1 row)
894
895 step wx1: update D1 set id = id + 1;
896 step rxwy2: update D2 set id = (select id+1 from D1);
897 step c3: COMMIT;
898 step c1: COMMIT;
899 step c2: COMMIT;
900
901 starting permutation: ry3 wx1 rxwy2 c3 c2 c1
902 step ry3: select id from D2;
903 id
904 --
905 1
906 (1 row)
907
908 step wx1: update D1 set id = id + 1;
909 step rxwy2: update D2 set id = (select id+1 from D1);
910 step c3: COMMIT;
911 step c2: COMMIT;
912 step c1: COMMIT;
913
914 starting permutation: ry3 wx1 c3 c1 rxwy2 c2
915 step ry3: select id from D2;
916 id
917 --
918 1
919 (1 row)
920
921 step wx1: update D1 set id = id + 1;
922 step c3: COMMIT;
923 step c1: COMMIT;
924 step rxwy2: update D2 set id = (select id+1 from D1);
925 step c2: COMMIT;
926
927 starting permutation: ry3 wx1 c3 rxwy2 c1 c2
928 step ry3: select id from D2;
929 id
930 --
931 1
932 (1 row)
933
934 step wx1: update D1 set id = id + 1;
935 step c3: COMMIT;
936 step rxwy2: update D2 set id = (select id+1 from D1);
937 step c1: COMMIT;
938 step c2: COMMIT;
939
940 starting permutation: ry3 wx1 c3 rxwy2 c2 c1
941 step ry3: select id from D2;
942 id
943 --
944 1
945 (1 row)
946
947 step wx1: update D1 set id = id + 1;
948 step c3: COMMIT;
949 step rxwy2: update D2 set id = (select id+1 from D1);
950 step c2: COMMIT;
951 step c1: COMMIT;
952
953 starting permutation: ry3 rxwy2 wx1 c1 c2 c3
954 step ry3: select id from D2;
955 id
956 --
957 1
958 (1 row)
959
960 step rxwy2: update D2 set id = (select id+1 from D1);
961 step wx1: update D1 set id = id + 1;
962 step c1: COMMIT;
963 step c2: COMMIT;
964 ERROR: could not serialize access due to read/write dependencies among transactions
965 step c3: COMMIT;
966
967 starting permutation: ry3 rxwy2 wx1 c1 c3 c2
968 step ry3: select id from D2;
969 id
970 --
971 1
972 (1 row)
973
974 step rxwy2: update D2 set id = (select id+1 from D1);
975 step wx1: update D1 set id = id + 1;
976 step c1: COMMIT;
977 step c3: COMMIT;
978 step c2: COMMIT;
979 ERROR: could not serialize access due to read/write dependencies among transactions
980
981 starting permutation: ry3 rxwy2 wx1 c2 c1 c3
982 step ry3: select id from D2;
983 id
984 --
985 1
986 (1 row)
987
988 step rxwy2: update D2 set id = (select id+1 from D1);
989 step wx1: update D1 set id = id + 1;
990 step c2: COMMIT;
991 step c1: COMMIT;
992 step c3: COMMIT;
993
994 starting permutation: ry3 rxwy2 wx1 c2 c3 c1
995 step ry3: select id from D2;
996 id
997 --
998 1
999 (1 row)
1000
1001 step rxwy2: update D2 set id = (select id+1 from D1);
1002 step wx1: update D1 set id = id + 1;
1003 step c2: COMMIT;
1004 step c3: COMMIT;
1005 step c1: COMMIT;
1006
1007 starting permutation: ry3 rxwy2 wx1 c3 c1 c2
1008 step ry3: select id from D2;
1009 id
1010 --
1011 1
1012 (1 row)
1013
1014 step rxwy2: update D2 set id = (select id+1 from D1);
1015 step wx1: update D1 set id = id + 1;
1016 step c3: COMMIT;
1017 step c1: COMMIT;
1018 step c2: COMMIT;
1019
1020 starting permutation: ry3 rxwy2 wx1 c3 c2 c1
1021 step ry3: select id from D2;
1022 id
1023 --
1024 1
1025 (1 row)
1026
1027 step rxwy2: update D2 set id = (select id+1 from D1);
1028 step wx1: update D1 set id = id + 1;
1029 step c3: COMMIT;
1030 step c2: COMMIT;
1031 step c1: COMMIT;
1032
1033 starting permutation: ry3 rxwy2 c2 wx1 c1 c3
1034 step ry3: select id from D2;
1035 id
1036 --
1037 1
1038 (1 row)
1039
1040 step rxwy2: update D2 set id = (select id+1 from D1);
1041 step c2: COMMIT;
1042 step wx1: update D1 set id = id + 1;
1043 step c1: COMMIT;
1044 step c3: COMMIT;
1045
1046 starting permutation: ry3 rxwy2 c2 wx1 c3 c1
1047 step ry3: select id from D2;
1048 id
1049 --
1050 1
1051 (1 row)
1052
1053 step rxwy2: update D2 set id = (select id+1 from D1);
1054 step c2: COMMIT;
1055 step wx1: update D1 set id = id + 1;
1056 step c3: COMMIT;
1057 step c1: COMMIT;
1058
1059 starting permutation: ry3 rxwy2 c2 c3 wx1 c1
1060 step ry3: select id from D2;
1061 id
1062 --
1063 1
1064 (1 row)
1065
1066 step rxwy2: update D2 set id = (select id+1 from D1);
1067 step c2: COMMIT;
1068 step c3: COMMIT;
1069 step wx1: update D1 set id = id + 1;
1070 step c1: COMMIT;
1071
1072 starting permutation: ry3 rxwy2 c3 wx1 c1 c2
1073 step ry3: select id from D2;
1074 id
1075 --
1076 1
1077 (1 row)
1078
1079 step rxwy2: update D2 set id = (select id+1 from D1);
1080 step c3: COMMIT;
1081 step wx1: update D1 set id = id + 1;
1082 step c1: COMMIT;
1083 step c2: COMMIT;
1084
1085 starting permutation: ry3 rxwy2 c3 wx1 c2 c1
1086 step ry3: select id from D2;
1087 id
1088 --
1089 1
1090 (1 row)
1091
1092 step rxwy2: update D2 set id = (select id+1 from D1);
1093 step c3: COMMIT;
1094 step wx1: update D1 set id = id + 1;
1095 step c2: COMMIT;
1096 step c1: COMMIT;
1097
1098 starting permutation: ry3 rxwy2 c3 c2 wx1 c1
1099 step ry3: select id from D2;
1100 id
1101 --
1102 1
1103 (1 row)
1104
1105 step rxwy2: update D2 set id = (select id+1 from D1);
1106 step c3: COMMIT;
1107 step c2: COMMIT;
1108 step wx1: update D1 set id = id + 1;
1109 step c1: COMMIT;
1110
1111 starting permutation: ry3 c3 wx1 c1 rxwy2 c2
1112 step ry3: select id from D2;
1113 id
1114 --
1115 1
1116 (1 row)
1117
1118 step c3: COMMIT;
1119 step wx1: update D1 set id = id + 1;
1120 step c1: COMMIT;
1121 step rxwy2: update D2 set id = (select id+1 from D1);
1122 step c2: COMMIT;
1123
1124 starting permutation: ry3 c3 wx1 rxwy2 c1 c2
1125 step ry3: select id from D2;
1126 id
1127 --
1128 1
1129 (1 row)
1130
1131 step c3: COMMIT;
1132 step wx1: update D1 set id = id + 1;
1133 step rxwy2: update D2 set id = (select id+1 from D1);
1134 step c1: COMMIT;
1135 step c2: COMMIT;
1136
1137 starting permutation: ry3 c3 wx1 rxwy2 c2 c1
1138 step ry3: select id from D2;
1139 id
1140 --
1141 1
1142 (1 row)
1143
1144 step c3: COMMIT;
1145 step wx1: update D1 set id = id + 1;
1146 step rxwy2: update D2 set id = (select id+1 from D1);
1147 step c2: COMMIT;
1148 step c1: COMMIT;
1149
1150 starting permutation: ry3 c3 rxwy2 wx1 c1 c2
1151 step ry3: select id from D2;
1152 id
1153 --
1154 1
1155 (1 row)
1156
1157 step c3: COMMIT;
1158 step rxwy2: update D2 set id = (select id+1 from D1);
1159 step wx1: update D1 set id = id + 1;
1160 step c1: COMMIT;
1161 step c2: COMMIT;
1162
1163 starting permutation: ry3 c3 rxwy2 wx1 c2 c1
1164 step ry3: select id from D2;
1165 id
1166 --
1167 1
1168 (1 row)
1169
1170 step c3: COMMIT;
1171 step rxwy2: update D2 set id = (select id+1 from D1);
1172 step wx1: update D1 set id = id + 1;
1173 step c2: COMMIT;
1174 step c1: COMMIT;
1175
1176 starting permutation: ry3 c3 rxwy2 c2 wx1 c1
1177 step ry3: select id from D2;
1178 id
1179 --
1180 1
1181 (1 row)
1182
1183 step c3: COMMIT;
1184 step rxwy2: update D2 set id = (select id+1 from D1);
1185 step c2: COMMIT;
1186 step wx1: update D1 set id = id + 1;
1187 step c1: COMMIT;