Debian Codegraph @

src/test/isolation/expected/lock-committed-keyupdate.out

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