Debian Codegraph @

src/test/isolation/expected/partial-index.out

raw
1 Parsed test spec with 2 sessions
2
3 starting permutation: rxy1 wx1 c1 wy2 rxy2 c2
4 step rxy1: select * from test_t where val2 = 1;
5 id|val1|val2
6 --+----+----
7 0|a | 1
8 1|a | 1
9 2|a | 1
10 3|a | 1
11 4|a | 1
12 5|a | 1
13 6|a | 1
14 7|a | 1
15 8|a | 1
16 9|a | 1
17 10|a | 1
18 (11 rows)
19
20 step wx1: update test_t set val2 = 2 where val2 = 1 and id = 10;
21 step c1: COMMIT;
22 step wy2: update test_t set val2 = 2 where val2 = 1 and id = 9;
23 step rxy2: select * from test_t where val2 = 1;
24 id|val1|val2
25 --+----+----
26 0|a | 1
27 1|a | 1
28 2|a | 1
29 3|a | 1
30 4|a | 1
31 5|a | 1
32 6|a | 1
33 7|a | 1
34 8|a | 1
35 (9 rows)
36
37 step c2: COMMIT;
38
39 starting permutation: rxy1 wx1 wy2 c1 rxy2 c2
40 step rxy1: select * from test_t where val2 = 1;
41 id|val1|val2
42 --+----+----
43 0|a | 1
44 1|a | 1
45 2|a | 1
46 3|a | 1
47 4|a | 1
48 5|a | 1
49 6|a | 1
50 7|a | 1
51 8|a | 1
52 9|a | 1
53 10|a | 1
54 (11 rows)
55
56 step wx1: update test_t set val2 = 2 where val2 = 1 and id = 10;
57 step wy2: update test_t set val2 = 2 where val2 = 1 and id = 9;
58 step c1: COMMIT;
59 step rxy2: select * from test_t where val2 = 1;
60 ERROR: could not serialize access due to read/write dependencies among transactions
61 step c2: COMMIT;
62
63 starting permutation: rxy1 wx1 wy2 rxy2 c1 c2
64 step rxy1: select * from test_t where val2 = 1;
65 id|val1|val2
66 --+----+----
67 0|a | 1
68 1|a | 1
69 2|a | 1
70 3|a | 1
71 4|a | 1
72 5|a | 1
73 6|a | 1
74 7|a | 1
75 8|a | 1
76 9|a | 1
77 10|a | 1
78 (11 rows)
79
80 step wx1: update test_t set val2 = 2 where val2 = 1 and id = 10;
81 step wy2: update test_t set val2 = 2 where val2 = 1 and id = 9;
82 step rxy2: select * from test_t where val2 = 1;
83 id|val1|val2
84 --+----+----
85 0|a | 1
86 1|a | 1
87 2|a | 1
88 3|a | 1
89 4|a | 1
90 5|a | 1
91 6|a | 1
92 7|a | 1
93 8|a | 1
94 10|a | 1
95 (10 rows)
96
97 step c1: COMMIT;
98 step c2: COMMIT;
99 ERROR: could not serialize access due to read/write dependencies among transactions
100
101 starting permutation: rxy1 wx1 wy2 rxy2 c2 c1
102 step rxy1: select * from test_t where val2 = 1;
103 id|val1|val2
104 --+----+----
105 0|a | 1
106 1|a | 1
107 2|a | 1
108 3|a | 1
109 4|a | 1
110 5|a | 1
111 6|a | 1
112 7|a | 1
113 8|a | 1
114 9|a | 1
115 10|a | 1
116 (11 rows)
117
118 step wx1: update test_t set val2 = 2 where val2 = 1 and id = 10;
119 step wy2: update test_t set val2 = 2 where val2 = 1 and id = 9;
120 step rxy2: select * from test_t where val2 = 1;
121 id|val1|val2
122 --+----+----
123 0|a | 1
124 1|a | 1
125 2|a | 1
126 3|a | 1
127 4|a | 1
128 5|a | 1
129 6|a | 1
130 7|a | 1
131 8|a | 1
132 10|a | 1
133 (10 rows)
134
135 step c2: COMMIT;
136 step c1: COMMIT;
137 ERROR: could not serialize access due to read/write dependencies among transactions
138
139 starting permutation: rxy1 wy2 wx1 c1 rxy2 c2
140 step rxy1: select * from test_t where val2 = 1;
141 id|val1|val2
142 --+----+----
143 0|a | 1
144 1|a | 1
145 2|a | 1
146 3|a | 1
147 4|a | 1
148 5|a | 1
149 6|a | 1
150 7|a | 1
151 8|a | 1
152 9|a | 1
153 10|a | 1
154 (11 rows)
155
156 step wy2: update test_t set val2 = 2 where val2 = 1 and id = 9;
157 step wx1: update test_t set val2 = 2 where val2 = 1 and id = 10;
158 step c1: COMMIT;
159 step rxy2: select * from test_t where val2 = 1;
160 ERROR: could not serialize access due to read/write dependencies among transactions
161 step c2: COMMIT;
162
163 starting permutation: rxy1 wy2 wx1 rxy2 c1 c2
164 step rxy1: select * from test_t where val2 = 1;
165 id|val1|val2
166 --+----+----
167 0|a | 1
168 1|a | 1
169 2|a | 1
170 3|a | 1
171 4|a | 1
172 5|a | 1
173 6|a | 1
174 7|a | 1
175 8|a | 1
176 9|a | 1
177 10|a | 1
178 (11 rows)
179
180 step wy2: update test_t set val2 = 2 where val2 = 1 and id = 9;
181 step wx1: update test_t set val2 = 2 where val2 = 1 and id = 10;
182 step rxy2: select * from test_t where val2 = 1;
183 id|val1|val2
184 --+----+----
185 0|a | 1
186 1|a | 1
187 2|a | 1
188 3|a | 1
189 4|a | 1
190 5|a | 1
191 6|a | 1
192 7|a | 1
193 8|a | 1
194 10|a | 1
195 (10 rows)
196
197 step c1: COMMIT;
198 step c2: COMMIT;
199 ERROR: could not serialize access due to read/write dependencies among transactions
200
201 starting permutation: rxy1 wy2 wx1 rxy2 c2 c1
202 step rxy1: select * from test_t where val2 = 1;
203 id|val1|val2
204 --+----+----
205 0|a | 1
206 1|a | 1
207 2|a | 1
208 3|a | 1
209 4|a | 1
210 5|a | 1
211 6|a | 1
212 7|a | 1
213 8|a | 1
214 9|a | 1
215 10|a | 1
216 (11 rows)
217
218 step wy2: update test_t set val2 = 2 where val2 = 1 and id = 9;
219 step wx1: update test_t set val2 = 2 where val2 = 1 and id = 10;
220 step rxy2: select * from test_t where val2 = 1;
221 id|val1|val2
222 --+----+----
223 0|a | 1
224 1|a | 1
225 2|a | 1
226 3|a | 1
227 4|a | 1
228 5|a | 1
229 6|a | 1
230 7|a | 1
231 8|a | 1
232 10|a | 1
233 (10 rows)
234
235 step c2: COMMIT;
236 step c1: COMMIT;
237 ERROR: could not serialize access due to read/write dependencies among transactions
238
239 starting permutation: rxy1 wy2 rxy2 wx1 c1 c2
240 step rxy1: select * from test_t where val2 = 1;
241 id|val1|val2
242 --+----+----
243 0|a | 1
244 1|a | 1
245 2|a | 1
246 3|a | 1
247 4|a | 1
248 5|a | 1
249 6|a | 1
250 7|a | 1
251 8|a | 1
252 9|a | 1
253 10|a | 1
254 (11 rows)
255
256 step wy2: update test_t set val2 = 2 where val2 = 1 and id = 9;
257 step rxy2: select * from test_t where val2 = 1;
258 id|val1|val2
259 --+----+----
260 0|a | 1
261 1|a | 1
262 2|a | 1
263 3|a | 1
264 4|a | 1
265 5|a | 1
266 6|a | 1
267 7|a | 1
268 8|a | 1
269 10|a | 1
270 (10 rows)
271
272 step wx1: update test_t set val2 = 2 where val2 = 1 and id = 10;
273 step c1: COMMIT;
274 step c2: COMMIT;
275 ERROR: could not serialize access due to read/write dependencies among transactions
276
277 starting permutation: rxy1 wy2 rxy2 wx1 c2 c1
278 step rxy1: select * from test_t where val2 = 1;
279 id|val1|val2
280 --+----+----
281 0|a | 1
282 1|a | 1
283 2|a | 1
284 3|a | 1
285 4|a | 1
286 5|a | 1
287 6|a | 1
288 7|a | 1
289 8|a | 1
290 9|a | 1
291 10|a | 1
292 (11 rows)
293
294 step wy2: update test_t set val2 = 2 where val2 = 1 and id = 9;
295 step rxy2: select * from test_t where val2 = 1;
296 id|val1|val2
297 --+----+----
298 0|a | 1
299 1|a | 1
300 2|a | 1
301 3|a | 1
302 4|a | 1
303 5|a | 1
304 6|a | 1
305 7|a | 1
306 8|a | 1
307 10|a | 1
308 (10 rows)
309
310 step wx1: update test_t set val2 = 2 where val2 = 1 and id = 10;
311 step c2: COMMIT;
312 step c1: COMMIT;
313 ERROR: could not serialize access due to read/write dependencies among transactions
314
315 starting permutation: rxy1 wy2 rxy2 c2 wx1 c1
316 step rxy1: select * from test_t where val2 = 1;
317 id|val1|val2
318 --+----+----
319 0|a | 1
320 1|a | 1
321 2|a | 1
322 3|a | 1
323 4|a | 1
324 5|a | 1
325 6|a | 1
326 7|a | 1
327 8|a | 1
328 9|a | 1
329 10|a | 1
330 (11 rows)
331
332 step wy2: update test_t set val2 = 2 where val2 = 1 and id = 9;
333 step rxy2: select * from test_t where val2 = 1;
334 id|val1|val2
335 --+----+----
336 0|a | 1
337 1|a | 1
338 2|a | 1
339 3|a | 1
340 4|a | 1
341 5|a | 1
342 6|a | 1
343 7|a | 1
344 8|a | 1
345 10|a | 1
346 (10 rows)
347
348 step c2: COMMIT;
349 step wx1: update test_t set val2 = 2 where val2 = 1 and id = 10;
350 ERROR: could not serialize access due to read/write dependencies among transactions
351 step c1: COMMIT;
352
353 starting permutation: wy2 rxy1 wx1 c1 rxy2 c2
354 step wy2: update test_t set val2 = 2 where val2 = 1 and id = 9;
355 step rxy1: select * from test_t where val2 = 1;
356 id|val1|val2
357 --+----+----
358 0|a | 1
359 1|a | 1
360 2|a | 1
361 3|a | 1
362 4|a | 1
363 5|a | 1
364 6|a | 1
365 7|a | 1
366 8|a | 1
367 9|a | 1
368 10|a | 1
369 (11 rows)
370
371 step wx1: update test_t set val2 = 2 where val2 = 1 and id = 10;
372 step c1: COMMIT;
373 step rxy2: select * from test_t where val2 = 1;
374 ERROR: could not serialize access due to read/write dependencies among transactions
375 step c2: COMMIT;
376
377 starting permutation: wy2 rxy1 wx1 rxy2 c1 c2
378 step wy2: update test_t set val2 = 2 where val2 = 1 and id = 9;
379 step rxy1: select * from test_t where val2 = 1;
380 id|val1|val2
381 --+----+----
382 0|a | 1
383 1|a | 1
384 2|a | 1
385 3|a | 1
386 4|a | 1
387 5|a | 1
388 6|a | 1
389 7|a | 1
390 8|a | 1
391 9|a | 1
392 10|a | 1
393 (11 rows)
394
395 step wx1: update test_t set val2 = 2 where val2 = 1 and id = 10;
396 step rxy2: select * from test_t where val2 = 1;
397 id|val1|val2
398 --+----+----
399 0|a | 1
400 1|a | 1
401 2|a | 1
402 3|a | 1
403 4|a | 1
404 5|a | 1
405 6|a | 1
406 7|a | 1
407 8|a | 1
408 10|a | 1
409 (10 rows)
410
411 step c1: COMMIT;
412 step c2: COMMIT;
413 ERROR: could not serialize access due to read/write dependencies among transactions
414
415 starting permutation: wy2 rxy1 wx1 rxy2 c2 c1
416 step wy2: update test_t set val2 = 2 where val2 = 1 and id = 9;
417 step rxy1: select * from test_t where val2 = 1;
418 id|val1|val2
419 --+----+----
420 0|a | 1
421 1|a | 1
422 2|a | 1
423 3|a | 1
424 4|a | 1
425 5|a | 1
426 6|a | 1
427 7|a | 1
428 8|a | 1
429 9|a | 1
430 10|a | 1
431 (11 rows)
432
433 step wx1: update test_t set val2 = 2 where val2 = 1 and id = 10;
434 step rxy2: select * from test_t where val2 = 1;
435 id|val1|val2
436 --+----+----
437 0|a | 1
438 1|a | 1
439 2|a | 1
440 3|a | 1
441 4|a | 1
442 5|a | 1
443 6|a | 1
444 7|a | 1
445 8|a | 1
446 10|a | 1
447 (10 rows)
448
449 step c2: COMMIT;
450 step c1: COMMIT;
451 ERROR: could not serialize access due to read/write dependencies among transactions
452
453 starting permutation: wy2 rxy1 rxy2 wx1 c1 c2
454 step wy2: update test_t set val2 = 2 where val2 = 1 and id = 9;
455 step rxy1: select * from test_t where val2 = 1;
456 id|val1|val2
457 --+----+----
458 0|a | 1
459 1|a | 1
460 2|a | 1
461 3|a | 1
462 4|a | 1
463 5|a | 1
464 6|a | 1
465 7|a | 1
466 8|a | 1
467 9|a | 1
468 10|a | 1
469 (11 rows)
470
471 step rxy2: select * from test_t where val2 = 1;
472 id|val1|val2
473 --+----+----
474 0|a | 1
475 1|a | 1
476 2|a | 1
477 3|a | 1
478 4|a | 1
479 5|a | 1
480 6|a | 1
481 7|a | 1
482 8|a | 1
483 10|a | 1
484 (10 rows)
485
486 step wx1: update test_t set val2 = 2 where val2 = 1 and id = 10;
487 step c1: COMMIT;
488 step c2: COMMIT;
489 ERROR: could not serialize access due to read/write dependencies among transactions
490
491 starting permutation: wy2 rxy1 rxy2 wx1 c2 c1
492 step wy2: update test_t set val2 = 2 where val2 = 1 and id = 9;
493 step rxy1: select * from test_t where val2 = 1;
494 id|val1|val2
495 --+----+----
496 0|a | 1
497 1|a | 1
498 2|a | 1
499 3|a | 1
500 4|a | 1
501 5|a | 1
502 6|a | 1
503 7|a | 1
504 8|a | 1
505 9|a | 1
506 10|a | 1
507 (11 rows)
508
509 step rxy2: select * from test_t where val2 = 1;
510 id|val1|val2
511 --+----+----
512 0|a | 1
513 1|a | 1
514 2|a | 1
515 3|a | 1
516 4|a | 1
517 5|a | 1
518 6|a | 1
519 7|a | 1
520 8|a | 1
521 10|a | 1
522 (10 rows)
523
524 step wx1: update test_t set val2 = 2 where val2 = 1 and id = 10;
525 step c2: COMMIT;
526 step c1: COMMIT;
527 ERROR: could not serialize access due to read/write dependencies among transactions
528
529 starting permutation: wy2 rxy1 rxy2 c2 wx1 c1
530 step wy2: update test_t set val2 = 2 where val2 = 1 and id = 9;
531 step rxy1: select * from test_t where val2 = 1;
532 id|val1|val2
533 --+----+----
534 0|a | 1
535 1|a | 1
536 2|a | 1
537 3|a | 1
538 4|a | 1
539 5|a | 1
540 6|a | 1
541 7|a | 1
542 8|a | 1
543 9|a | 1
544 10|a | 1
545 (11 rows)
546
547 step rxy2: select * from test_t where val2 = 1;
548 id|val1|val2
549 --+----+----
550 0|a | 1
551 1|a | 1
552 2|a | 1
553 3|a | 1
554 4|a | 1
555 5|a | 1
556 6|a | 1
557 7|a | 1
558 8|a | 1
559 10|a | 1
560 (10 rows)
561
562 step c2: COMMIT;
563 step wx1: update test_t set val2 = 2 where val2 = 1 and id = 10;
564 ERROR: could not serialize access due to read/write dependencies among transactions
565 step c1: COMMIT;
566
567 starting permutation: wy2 rxy2 rxy1 wx1 c1 c2
568 step wy2: update test_t set val2 = 2 where val2 = 1 and id = 9;
569 step rxy2: select * from test_t where val2 = 1;
570 id|val1|val2
571 --+----+----
572 0|a | 1
573 1|a | 1
574 2|a | 1
575 3|a | 1
576 4|a | 1
577 5|a | 1
578 6|a | 1
579 7|a | 1
580 8|a | 1
581 10|a | 1
582 (10 rows)
583
584 step rxy1: select * from test_t where val2 = 1;
585 id|val1|val2
586 --+----+----
587 0|a | 1
588 1|a | 1
589 2|a | 1
590 3|a | 1
591 4|a | 1
592 5|a | 1
593 6|a | 1
594 7|a | 1
595 8|a | 1
596 9|a | 1
597 10|a | 1
598 (11 rows)
599
600 step wx1: update test_t set val2 = 2 where val2 = 1 and id = 10;
601 step c1: COMMIT;
602 step c2: COMMIT;
603 ERROR: could not serialize access due to read/write dependencies among transactions
604
605 starting permutation: wy2 rxy2 rxy1 wx1 c2 c1
606 step wy2: update test_t set val2 = 2 where val2 = 1 and id = 9;
607 step rxy2: select * from test_t where val2 = 1;
608 id|val1|val2
609 --+----+----
610 0|a | 1
611 1|a | 1
612 2|a | 1
613 3|a | 1
614 4|a | 1
615 5|a | 1
616 6|a | 1
617 7|a | 1
618 8|a | 1
619 10|a | 1
620 (10 rows)
621
622 step rxy1: select * from test_t where val2 = 1;
623 id|val1|val2
624 --+----+----
625 0|a | 1
626 1|a | 1
627 2|a | 1
628 3|a | 1
629 4|a | 1
630 5|a | 1
631 6|a | 1
632 7|a | 1
633 8|a | 1
634 9|a | 1
635 10|a | 1
636 (11 rows)
637
638 step wx1: update test_t set val2 = 2 where val2 = 1 and id = 10;
639 step c2: COMMIT;
640 step c1: COMMIT;
641 ERROR: could not serialize access due to read/write dependencies among transactions
642
643 starting permutation: wy2 rxy2 rxy1 c2 wx1 c1
644 step wy2: update test_t set val2 = 2 where val2 = 1 and id = 9;
645 step rxy2: select * from test_t where val2 = 1;
646 id|val1|val2
647 --+----+----
648 0|a | 1
649 1|a | 1
650 2|a | 1
651 3|a | 1
652 4|a | 1
653 5|a | 1
654 6|a | 1
655 7|a | 1
656 8|a | 1
657 10|a | 1
658 (10 rows)
659
660 step rxy1: select * from test_t where val2 = 1;
661 id|val1|val2
662 --+----+----
663 0|a | 1
664 1|a | 1
665 2|a | 1
666 3|a | 1
667 4|a | 1
668 5|a | 1
669 6|a | 1
670 7|a | 1
671 8|a | 1
672 9|a | 1
673 10|a | 1
674 (11 rows)
675
676 step c2: COMMIT;
677 step wx1: update test_t set val2 = 2 where val2 = 1 and id = 10;
678 ERROR: could not serialize access due to read/write dependencies among transactions
679 step c1: COMMIT;
680
681 starting permutation: wy2 rxy2 c2 rxy1 wx1 c1
682 step wy2: update test_t set val2 = 2 where val2 = 1 and id = 9;
683 step rxy2: select * from test_t where val2 = 1;
684 id|val1|val2
685 --+----+----
686 0|a | 1
687 1|a | 1
688 2|a | 1
689 3|a | 1
690 4|a | 1
691 5|a | 1
692 6|a | 1
693 7|a | 1
694 8|a | 1
695 10|a | 1
696 (10 rows)
697
698 step c2: COMMIT;
699 step rxy1: select * from test_t where val2 = 1;
700 id|val1|val2
701 --+----+----
702 0|a | 1
703 1|a | 1
704 2|a | 1
705 3|a | 1
706 4|a | 1
707 5|a | 1
708 6|a | 1
709 7|a | 1
710 8|a | 1
711 10|a | 1
712 (10 rows)
713
714 step wx1: update test_t set val2 = 2 where val2 = 1 and id = 10;
715 step c1: COMMIT;