Debian Codegraph @

src/test/isolation/expected/predicate-gin.out

raw
1 Parsed test spec with 3 sessions
2
3 starting permutation: ra1 ro2 wo1 c1 wa2 c2
4 step ra1: select * from gin_tbl where p @> array[1] limit 1;
5 p
6 ---
7 {1}
8 (1 row)
9
10 step ro2: select count(*) from other_tbl;
11 count
12 -----
13 0
14 (1 row)
15
16 step wo1: insert into other_tbl values (1);
17 step c1: commit;
18 step wa2: insert into gin_tbl values (array[1]);
19 ERROR: could not serialize access due to read/write dependencies among transactions
20 step c2: commit;
21
22 starting permutation: ro2 ra1 wo1 c1 wa2 c2
23 step ro2: select count(*) from other_tbl;
24 count
25 -----
26 0
27 (1 row)
28
29 step ra1: select * from gin_tbl where p @> array[1] limit 1;
30 p
31 ---
32 {1}
33 (1 row)
34
35 step wo1: insert into other_tbl values (1);
36 step c1: commit;
37 step wa2: insert into gin_tbl values (array[1]);
38 ERROR: could not serialize access due to read/write dependencies among transactions
39 step c2: commit;
40
41 starting permutation: ro2 ra1 wo1 wa2 c1 c2
42 step ro2: select count(*) from other_tbl;
43 count
44 -----
45 0
46 (1 row)
47
48 step ra1: select * from gin_tbl where p @> array[1] limit 1;
49 p
50 ---
51 {1}
52 (1 row)
53
54 step wo1: insert into other_tbl values (1);
55 step wa2: insert into gin_tbl values (array[1]);
56 step c1: commit;
57 step c2: commit;
58 ERROR: could not serialize access due to read/write dependencies among transactions
59
60 starting permutation: ra1 ro2 wa2 wo1 c1 c2
61 step ra1: select * from gin_tbl where p @> array[1] limit 1;
62 p
63 ---
64 {1}
65 (1 row)
66
67 step ro2: select count(*) from other_tbl;
68 count
69 -----
70 0
71 (1 row)
72
73 step wa2: insert into gin_tbl values (array[1]);
74 step wo1: insert into other_tbl values (1);
75 step c1: commit;
76 step c2: commit;
77 ERROR: could not serialize access due to read/write dependencies among transactions
78
79 starting permutation: rb1 ro2 wo1 c1 wb2 c2
80 step rb1: select count(*) from gin_tbl where p @> array[2];
81 count
82 -----
83 1
84 (1 row)
85
86 step ro2: select count(*) from other_tbl;
87 count
88 -----
89 0
90 (1 row)
91
92 step wo1: insert into other_tbl values (1);
93 step c1: commit;
94 step wb2: insert into gin_tbl values (array[2]);
95 ERROR: could not serialize access due to read/write dependencies among transactions
96 step c2: commit;
97
98 starting permutation: ro2 rb1 wo1 c1 wb2 c2
99 step ro2: select count(*) from other_tbl;
100 count
101 -----
102 0
103 (1 row)
104
105 step rb1: select count(*) from gin_tbl where p @> array[2];
106 count
107 -----
108 1
109 (1 row)
110
111 step wo1: insert into other_tbl values (1);
112 step c1: commit;
113 step wb2: insert into gin_tbl values (array[2]);
114 ERROR: could not serialize access due to read/write dependencies among transactions
115 step c2: commit;
116
117 starting permutation: ro2 rb1 wo1 wb2 c1 c2
118 step ro2: select count(*) from other_tbl;
119 count
120 -----
121 0
122 (1 row)
123
124 step rb1: select count(*) from gin_tbl where p @> array[2];
125 count
126 -----
127 1
128 (1 row)
129
130 step wo1: insert into other_tbl values (1);
131 step wb2: insert into gin_tbl values (array[2]);
132 step c1: commit;
133 step c2: commit;
134 ERROR: could not serialize access due to read/write dependencies among transactions
135
136 starting permutation: rb1 ro2 wb2 wo1 c1 c2
137 step rb1: select count(*) from gin_tbl where p @> array[2];
138 count
139 -----
140 1
141 (1 row)
142
143 step ro2: select count(*) from other_tbl;
144 count
145 -----
146 0
147 (1 row)
148
149 step wb2: insert into gin_tbl values (array[2]);
150 step wo1: insert into other_tbl values (1);
151 step c1: commit;
152 step c2: commit;
153 ERROR: could not serialize access due to read/write dependencies among transactions
154
155 starting permutation: rc1 ro2 wo1 c1 wc2 c2
156 step rc1: select count(*) from gin_tbl where p @> array[800];
157 count
158 -----
159 1
160 (1 row)
161
162 step ro2: select count(*) from other_tbl;
163 count
164 -----
165 0
166 (1 row)
167
168 step wo1: insert into other_tbl values (1);
169 step c1: commit;
170 step wc2: insert into gin_tbl values (array[800]);
171 ERROR: could not serialize access due to read/write dependencies among transactions
172 step c2: commit;
173
174 starting permutation: ro2 rc1 wo1 c1 wc2 c2
175 step ro2: select count(*) from other_tbl;
176 count
177 -----
178 0
179 (1 row)
180
181 step rc1: select count(*) from gin_tbl where p @> array[800];
182 count
183 -----
184 1
185 (1 row)
186
187 step wo1: insert into other_tbl values (1);
188 step c1: commit;
189 step wc2: insert into gin_tbl values (array[800]);
190 ERROR: could not serialize access due to read/write dependencies among transactions
191 step c2: commit;
192
193 starting permutation: ro2 rc1 wo1 wc2 c1 c2
194 step ro2: select count(*) from other_tbl;
195 count
196 -----
197 0
198 (1 row)
199
200 step rc1: select count(*) from gin_tbl where p @> array[800];
201 count
202 -----
203 1
204 (1 row)
205
206 step wo1: insert into other_tbl values (1);
207 step wc2: insert into gin_tbl values (array[800]);
208 step c1: commit;
209 step c2: commit;
210 ERROR: could not serialize access due to read/write dependencies among transactions
211
212 starting permutation: rc1 ro2 wc2 wo1 c1 c2
213 step rc1: select count(*) from gin_tbl where p @> array[800];
214 count
215 -----
216 1
217 (1 row)
218
219 step ro2: select count(*) from other_tbl;
220 count
221 -----
222 0
223 (1 row)
224
225 step wc2: insert into gin_tbl values (array[800]);
226 step wo1: insert into other_tbl values (1);
227 step c1: commit;
228 step c2: commit;
229 ERROR: could not serialize access due to read/write dependencies among transactions
230
231 starting permutation: ra1 ro2 wo1 c1 wb2 c2
232 step ra1: select * from gin_tbl where p @> array[1] limit 1;
233 p
234 ---
235 {1}
236 (1 row)
237
238 step ro2: select count(*) from other_tbl;
239 count
240 -----
241 0
242 (1 row)
243
244 step wo1: insert into other_tbl values (1);
245 step c1: commit;
246 step wb2: insert into gin_tbl values (array[2]);
247 step c2: commit;
248
249 starting permutation: ro2 ra1 wo1 c1 wc2 c2
250 step ro2: select count(*) from other_tbl;
251 count
252 -----
253 0
254 (1 row)
255
256 step ra1: select * from gin_tbl where p @> array[1] limit 1;
257 p
258 ---
259 {1}
260 (1 row)
261
262 step wo1: insert into other_tbl values (1);
263 step c1: commit;
264 step wc2: insert into gin_tbl values (array[800]);
265 step c2: commit;
266
267 starting permutation: ro2 rb1 wo1 wa2 c1 c2
268 step ro2: select count(*) from other_tbl;
269 count
270 -----
271 0
272 (1 row)
273
274 step rb1: select count(*) from gin_tbl where p @> array[2];
275 count
276 -----
277 1
278 (1 row)
279
280 step wo1: insert into other_tbl values (1);
281 step wa2: insert into gin_tbl values (array[1]);
282 step c1: commit;
283 step c2: commit;
284
285 starting permutation: rc1 ro2 wa2 wo1 c1 c2
286 step rc1: select count(*) from gin_tbl where p @> array[800];
287 count
288 -----
289 1
290 (1 row)
291
292 step ro2: select count(*) from other_tbl;
293 count
294 -----
295 0
296 (1 row)
297
298 step wa2: insert into gin_tbl values (array[1]);
299 step wo1: insert into other_tbl values (1);
300 step c1: commit;
301 step c2: commit;
302
303 starting permutation: rb1 ro2 wo1 c1 wa2 c2
304 step rb1: select count(*) from gin_tbl where p @> array[2];
305 count
306 -----
307 1
308 (1 row)
309
310 step ro2: select count(*) from other_tbl;
311 count
312 -----
313 0
314 (1 row)
315
316 step wo1: insert into other_tbl values (1);
317 step c1: commit;
318 step wa2: insert into gin_tbl values (array[1]);
319 step c2: commit;
320
321 starting permutation: ro2 rb1 wo1 c1 wc2 c2
322 step ro2: select count(*) from other_tbl;
323 count
324 -----
325 0
326 (1 row)
327
328 step rb1: select count(*) from gin_tbl where p @> array[2];
329 count
330 -----
331 1
332 (1 row)
333
334 step wo1: insert into other_tbl values (1);
335 step c1: commit;
336 step wc2: insert into gin_tbl values (array[800]);
337 step c2: commit;
338
339 starting permutation: ro2 ra1 wo1 wb2 c1 c2
340 step ro2: select count(*) from other_tbl;
341 count
342 -----
343 0
344 (1 row)
345
346 step ra1: select * from gin_tbl where p @> array[1] limit 1;
347 p
348 ---
349 {1}
350 (1 row)
351
352 step wo1: insert into other_tbl values (1);
353 step wb2: insert into gin_tbl values (array[2]);
354 step c1: commit;
355 step c2: commit;
356
357 starting permutation: rc1 ro2 wb2 wo1 c1 c2
358 step rc1: select count(*) from gin_tbl where p @> array[800];
359 count
360 -----
361 1
362 (1 row)
363
364 step ro2: select count(*) from other_tbl;
365 count
366 -----
367 0
368 (1 row)
369
370 step wb2: insert into gin_tbl values (array[2]);
371 step wo1: insert into other_tbl values (1);
372 step c1: commit;
373 step c2: commit;
374
375 starting permutation: rc1 ro2 wo1 c1 wa2 c2
376 step rc1: select count(*) from gin_tbl where p @> array[800];
377 count
378 -----
379 1
380 (1 row)
381
382 step ro2: select count(*) from other_tbl;
383 count
384 -----
385 0
386 (1 row)
387
388 step wo1: insert into other_tbl values (1);
389 step c1: commit;
390 step wa2: insert into gin_tbl values (array[1]);
391 step c2: commit;
392
393 starting permutation: ro2 rc1 wo1 c1 wb2 c2
394 step ro2: select count(*) from other_tbl;
395 count
396 -----
397 0
398 (1 row)
399
400 step rc1: select count(*) from gin_tbl where p @> array[800];
401 count
402 -----
403 1
404 (1 row)
405
406 step wo1: insert into other_tbl values (1);
407 step c1: commit;
408 step wb2: insert into gin_tbl values (array[2]);
409 step c2: commit;
410
411 starting permutation: ro2 ra1 wo1 wc2 c1 c2
412 step ro2: select count(*) from other_tbl;
413 count
414 -----
415 0
416 (1 row)
417
418 step ra1: select * from gin_tbl where p @> array[1] limit 1;
419 p
420 ---
421 {1}
422 (1 row)
423
424 step wo1: insert into other_tbl values (1);
425 step wc2: insert into gin_tbl values (array[800]);
426 step c1: commit;
427 step c2: commit;
428
429 starting permutation: rb1 ro2 wc2 wo1 c1 c2
430 step rb1: select count(*) from gin_tbl where p @> array[2];
431 count
432 -----
433 1
434 (1 row)
435
436 step ro2: select count(*) from other_tbl;
437 count
438 -----
439 0
440 (1 row)
441
442 step wc2: insert into gin_tbl values (array[800]);
443 step wo1: insert into other_tbl values (1);
444 step c1: commit;
445 step c2: commit;
446
447 starting permutation: fu ra1 ro2 wo1 c1 wa2 c2
448 step fu: alter index ginidx set (fastupdate = on);
449 step ra1: select * from gin_tbl where p @> array[1] limit 1;
450 p
451 ---
452 {1}
453 (1 row)
454
455 step ro2: select count(*) from other_tbl;
456 count
457 -----
458 0
459 (1 row)
460
461 step wo1: insert into other_tbl values (1);
462 step c1: commit;
463 step wa2: insert into gin_tbl values (array[1]);
464 ERROR: could not serialize access due to read/write dependencies among transactions
465 step c2: commit;
466
467 starting permutation: fu ra1 ro2 wo1 c1 wb2 c2
468 step fu: alter index ginidx set (fastupdate = on);
469 step ra1: select * from gin_tbl where p @> array[1] limit 1;
470 p
471 ---
472 {1}
473 (1 row)
474
475 step ro2: select count(*) from other_tbl;
476 count
477 -----
478 0
479 (1 row)
480
481 step wo1: insert into other_tbl values (1);
482 step c1: commit;
483 step wb2: insert into gin_tbl values (array[2]);
484 ERROR: could not serialize access due to read/write dependencies among transactions
485 step c2: commit;
486
487 starting permutation: ra1 ro2 wo1 c1 fu wa2 c2
488 step ra1: select * from gin_tbl where p @> array[1] limit 1;
489 p
490 ---
491 {1}
492 (1 row)
493
494 step ro2: select count(*) from other_tbl;
495 count
496 -----
497 0
498 (1 row)
499
500 step wo1: insert into other_tbl values (1);
501 step c1: commit;
502 step fu: alter index ginidx set (fastupdate = on);
503 step wa2: insert into gin_tbl values (array[1]);
504 ERROR: could not serialize access due to read/write dependencies among transactions
505 step c2: commit;
506
507 starting permutation: rd1 ro2 wo1 c1 wd2 c2
508 step rd1: select count(*) from gin_tbl where p @> array[2000];
509 count
510 -----
511 0
512 (1 row)
513
514 step ro2: select count(*) from other_tbl;
515 count
516 -----
517 0
518 (1 row)
519
520 step wo1: insert into other_tbl values (1);
521 step c1: commit;
522 step wd2: insert into gin_tbl values (array[2000]);
523 ERROR: could not serialize access due to read/write dependencies among transactions
524 step c2: commit;
525
526 starting permutation: ro2 rd1 wo1 c1 wd2 c2
527 step ro2: select count(*) from other_tbl;
528 count
529 -----
530 0
531 (1 row)
532
533 step rd1: select count(*) from gin_tbl where p @> array[2000];
534 count
535 -----
536 0
537 (1 row)
538
539 step wo1: insert into other_tbl values (1);
540 step c1: commit;
541 step wd2: insert into gin_tbl values (array[2000]);
542 ERROR: could not serialize access due to read/write dependencies among transactions
543 step c2: commit;
544
545 starting permutation: ro2 rd1 wo1 wd2 c1 c2
546 step ro2: select count(*) from other_tbl;
547 count
548 -----
549 0
550 (1 row)
551
552 step rd1: select count(*) from gin_tbl where p @> array[2000];
553 count
554 -----
555 0
556 (1 row)
557
558 step wo1: insert into other_tbl values (1);
559 step wd2: insert into gin_tbl values (array[2000]);
560 step c1: commit;
561 step c2: commit;
562 ERROR: could not serialize access due to read/write dependencies among transactions
563
564 starting permutation: rd1 ro2 wd2 wo1 c1 c2
565 step rd1: select count(*) from gin_tbl where p @> array[2000];
566 count
567 -----
568 0
569 (1 row)
570
571 step ro2: select count(*) from other_tbl;
572 count
573 -----
574 0
575 (1 row)
576
577 step wd2: insert into gin_tbl values (array[2000]);
578 step wo1: insert into other_tbl values (1);
579 step c1: commit;
580 step c2: commit;
581 ERROR: could not serialize access due to read/write dependencies among transactions