Debian Codegraph @

src/test/isolation/expected/stats_1.out

raw
1 Parsed test spec with 2 sessions
2
3 starting permutation: s1_track_funcs_none s1_func_stats s1_func_call s1_func_call s1_ff s1_func_stats
4 pg_stat_force_next_flush
5 ------------------------
6
7 (1 row)
8
9 step s1_track_funcs_none: SET track_functions = 'none';
10 step s1_func_stats:
11 SELECT
12 tso.name,
13 pg_stat_get_function_calls(tso.oid),
14 pg_stat_get_function_total_time(tso.oid) > 0 total_above_zero,
15 pg_stat_get_function_self_time(tso.oid) > 0 self_above_zero
16 FROM test_stat_oid AS tso
17 WHERE tso.name = 'test_stat_func'
18
19 name |pg_stat_get_function_calls|total_above_zero|self_above_zero
20 --------------+--------------------------+----------------+---------------
21 test_stat_func| | |
22 (1 row)
23
24 step s1_func_call: SELECT test_stat_func();
25 test_stat_func
26 --------------
27
28 (1 row)
29
30 step s1_func_call: SELECT test_stat_func();
31 test_stat_func
32 --------------
33
34 (1 row)
35
36 step s1_ff: SELECT pg_stat_force_next_flush();
37 pg_stat_force_next_flush
38 ------------------------
39
40 (1 row)
41
42 step s1_func_stats:
43 SELECT
44 tso.name,
45 pg_stat_get_function_calls(tso.oid),
46 pg_stat_get_function_total_time(tso.oid) > 0 total_above_zero,
47 pg_stat_get_function_self_time(tso.oid) > 0 self_above_zero
48 FROM test_stat_oid AS tso
49 WHERE tso.name = 'test_stat_func'
50
51 name |pg_stat_get_function_calls|total_above_zero|self_above_zero
52 --------------+--------------------------+----------------+---------------
53 test_stat_func| | |
54 (1 row)
55
56
57 starting permutation: s1_track_funcs_all s1_func_stats s1_func_call s1_func_call s1_ff s1_func_stats
58 pg_stat_force_next_flush
59 ------------------------
60
61 (1 row)
62
63 step s1_track_funcs_all: SET track_functions = 'all';
64 step s1_func_stats:
65 SELECT
66 tso.name,
67 pg_stat_get_function_calls(tso.oid),
68 pg_stat_get_function_total_time(tso.oid) > 0 total_above_zero,
69 pg_stat_get_function_self_time(tso.oid) > 0 self_above_zero
70 FROM test_stat_oid AS tso
71 WHERE tso.name = 'test_stat_func'
72
73 name |pg_stat_get_function_calls|total_above_zero|self_above_zero
74 --------------+--------------------------+----------------+---------------
75 test_stat_func| | |
76 (1 row)
77
78 step s1_func_call: SELECT test_stat_func();
79 test_stat_func
80 --------------
81
82 (1 row)
83
84 step s1_func_call: SELECT test_stat_func();
85 test_stat_func
86 --------------
87
88 (1 row)
89
90 step s1_ff: SELECT pg_stat_force_next_flush();
91 pg_stat_force_next_flush
92 ------------------------
93
94 (1 row)
95
96 step s1_func_stats:
97 SELECT
98 tso.name,
99 pg_stat_get_function_calls(tso.oid),
100 pg_stat_get_function_total_time(tso.oid) > 0 total_above_zero,
101 pg_stat_get_function_self_time(tso.oid) > 0 self_above_zero
102 FROM test_stat_oid AS tso
103 WHERE tso.name = 'test_stat_func'
104
105 name |pg_stat_get_function_calls|total_above_zero|self_above_zero
106 --------------+--------------------------+----------------+---------------
107 test_stat_func| 2|t |t
108 (1 row)
109
110
111 starting permutation: s1_track_funcs_all s2_track_funcs_all s1_func_stats s2_func_stats s1_func_call s2_func_call s1_func_call s2_func_call s2_func_call s1_ff s2_ff s1_func_stats s2_func_stats
112 pg_stat_force_next_flush
113 ------------------------
114
115 (1 row)
116
117 step s1_track_funcs_all: SET track_functions = 'all';
118 step s2_track_funcs_all: SET track_functions = 'all';
119 step s1_func_stats:
120 SELECT
121 tso.name,
122 pg_stat_get_function_calls(tso.oid),
123 pg_stat_get_function_total_time(tso.oid) > 0 total_above_zero,
124 pg_stat_get_function_self_time(tso.oid) > 0 self_above_zero
125 FROM test_stat_oid AS tso
126 WHERE tso.name = 'test_stat_func'
127
128 name |pg_stat_get_function_calls|total_above_zero|self_above_zero
129 --------------+--------------------------+----------------+---------------
130 test_stat_func| | |
131 (1 row)
132
133 step s2_func_stats:
134 SELECT
135 tso.name,
136 pg_stat_get_function_calls(tso.oid),
137 pg_stat_get_function_total_time(tso.oid) > 0 total_above_zero,
138 pg_stat_get_function_self_time(tso.oid) > 0 self_above_zero
139 FROM test_stat_oid AS tso
140 WHERE tso.name = 'test_stat_func'
141
142 name |pg_stat_get_function_calls|total_above_zero|self_above_zero
143 --------------+--------------------------+----------------+---------------
144 test_stat_func| | |
145 (1 row)
146
147 step s1_func_call: SELECT test_stat_func();
148 test_stat_func
149 --------------
150
151 (1 row)
152
153 step s2_func_call: SELECT test_stat_func()
154 test_stat_func
155 --------------
156
157 (1 row)
158
159 step s1_func_call: SELECT test_stat_func();
160 test_stat_func
161 --------------
162
163 (1 row)
164
165 step s2_func_call: SELECT test_stat_func()
166 test_stat_func
167 --------------
168
169 (1 row)
170
171 step s2_func_call: SELECT test_stat_func()
172 test_stat_func
173 --------------
174
175 (1 row)
176
177 step s1_ff: SELECT pg_stat_force_next_flush();
178 pg_stat_force_next_flush
179 ------------------------
180
181 (1 row)
182
183 step s2_ff: SELECT pg_stat_force_next_flush();
184 pg_stat_force_next_flush
185 ------------------------
186
187 (1 row)
188
189 step s1_func_stats:
190 SELECT
191 tso.name,
192 pg_stat_get_function_calls(tso.oid),
193 pg_stat_get_function_total_time(tso.oid) > 0 total_above_zero,
194 pg_stat_get_function_self_time(tso.oid) > 0 self_above_zero
195 FROM test_stat_oid AS tso
196 WHERE tso.name = 'test_stat_func'
197
198 name |pg_stat_get_function_calls|total_above_zero|self_above_zero
199 --------------+--------------------------+----------------+---------------
200 test_stat_func| 5|t |t
201 (1 row)
202
203 step s2_func_stats:
204 SELECT
205 tso.name,
206 pg_stat_get_function_calls(tso.oid),
207 pg_stat_get_function_total_time(tso.oid) > 0 total_above_zero,
208 pg_stat_get_function_self_time(tso.oid) > 0 self_above_zero
209 FROM test_stat_oid AS tso
210 WHERE tso.name = 'test_stat_func'
211
212 name |pg_stat_get_function_calls|total_above_zero|self_above_zero
213 --------------+--------------------------+----------------+---------------
214 test_stat_func| 5|t |t
215 (1 row)
216
217
218 starting permutation: s1_track_funcs_all s2_track_funcs_all s1_func_stats s2_func_stats s1_func_call s1_ff s2_func_call s2_func_call s2_ff s1_func_stats s2_func_stats
219 pg_stat_force_next_flush
220 ------------------------
221
222 (1 row)
223
224 step s1_track_funcs_all: SET track_functions = 'all';
225 step s2_track_funcs_all: SET track_functions = 'all';
226 step s1_func_stats:
227 SELECT
228 tso.name,
229 pg_stat_get_function_calls(tso.oid),
230 pg_stat_get_function_total_time(tso.oid) > 0 total_above_zero,
231 pg_stat_get_function_self_time(tso.oid) > 0 self_above_zero
232 FROM test_stat_oid AS tso
233 WHERE tso.name = 'test_stat_func'
234
235 name |pg_stat_get_function_calls|total_above_zero|self_above_zero
236 --------------+--------------------------+----------------+---------------
237 test_stat_func| | |
238 (1 row)
239
240 step s2_func_stats:
241 SELECT
242 tso.name,
243 pg_stat_get_function_calls(tso.oid),
244 pg_stat_get_function_total_time(tso.oid) > 0 total_above_zero,
245 pg_stat_get_function_self_time(tso.oid) > 0 self_above_zero
246 FROM test_stat_oid AS tso
247 WHERE tso.name = 'test_stat_func'
248
249 name |pg_stat_get_function_calls|total_above_zero|self_above_zero
250 --------------+--------------------------+----------------+---------------
251 test_stat_func| | |
252 (1 row)
253
254 step s1_func_call: SELECT test_stat_func();
255 test_stat_func
256 --------------
257
258 (1 row)
259
260 step s1_ff: SELECT pg_stat_force_next_flush();
261 pg_stat_force_next_flush
262 ------------------------
263
264 (1 row)
265
266 step s2_func_call: SELECT test_stat_func()
267 test_stat_func
268 --------------
269
270 (1 row)
271
272 step s2_func_call: SELECT test_stat_func()
273 test_stat_func
274 --------------
275
276 (1 row)
277
278 step s2_ff: SELECT pg_stat_force_next_flush();
279 pg_stat_force_next_flush
280 ------------------------
281
282 (1 row)
283
284 step s1_func_stats:
285 SELECT
286 tso.name,
287 pg_stat_get_function_calls(tso.oid),
288 pg_stat_get_function_total_time(tso.oid) > 0 total_above_zero,
289 pg_stat_get_function_self_time(tso.oid) > 0 self_above_zero
290 FROM test_stat_oid AS tso
291 WHERE tso.name = 'test_stat_func'
292
293 name |pg_stat_get_function_calls|total_above_zero|self_above_zero
294 --------------+--------------------------+----------------+---------------
295 test_stat_func| 3|t |t
296 (1 row)
297
298 step s2_func_stats:
299 SELECT
300 tso.name,
301 pg_stat_get_function_calls(tso.oid),
302 pg_stat_get_function_total_time(tso.oid) > 0 total_above_zero,
303 pg_stat_get_function_self_time(tso.oid) > 0 self_above_zero
304 FROM test_stat_oid AS tso
305 WHERE tso.name = 'test_stat_func'
306
307 name |pg_stat_get_function_calls|total_above_zero|self_above_zero
308 --------------+--------------------------+----------------+---------------
309 test_stat_func| 3|t |t
310 (1 row)
311
312
313 starting permutation: s1_track_funcs_all s2_track_funcs_all s1_func_stats s2_func_stats s1_begin s1_func_call s1_func_call s1_commit s1_ff s1_func_stats s2_func_stats
314 pg_stat_force_next_flush
315 ------------------------
316
317 (1 row)
318
319 step s1_track_funcs_all: SET track_functions = 'all';
320 step s2_track_funcs_all: SET track_functions = 'all';
321 step s1_func_stats:
322 SELECT
323 tso.name,
324 pg_stat_get_function_calls(tso.oid),
325 pg_stat_get_function_total_time(tso.oid) > 0 total_above_zero,
326 pg_stat_get_function_self_time(tso.oid) > 0 self_above_zero
327 FROM test_stat_oid AS tso
328 WHERE tso.name = 'test_stat_func'
329
330 name |pg_stat_get_function_calls|total_above_zero|self_above_zero
331 --------------+--------------------------+----------------+---------------
332 test_stat_func| | |
333 (1 row)
334
335 step s2_func_stats:
336 SELECT
337 tso.name,
338 pg_stat_get_function_calls(tso.oid),
339 pg_stat_get_function_total_time(tso.oid) > 0 total_above_zero,
340 pg_stat_get_function_self_time(tso.oid) > 0 self_above_zero
341 FROM test_stat_oid AS tso
342 WHERE tso.name = 'test_stat_func'
343
344 name |pg_stat_get_function_calls|total_above_zero|self_above_zero
345 --------------+--------------------------+----------------+---------------
346 test_stat_func| | |
347 (1 row)
348
349 step s1_begin: BEGIN;
350 step s1_func_call: SELECT test_stat_func();
351 test_stat_func
352 --------------
353
354 (1 row)
355
356 step s1_func_call: SELECT test_stat_func();
357 test_stat_func
358 --------------
359
360 (1 row)
361
362 step s1_commit: COMMIT;
363 step s1_ff: SELECT pg_stat_force_next_flush();
364 pg_stat_force_next_flush
365 ------------------------
366
367 (1 row)
368
369 step s1_func_stats:
370 SELECT
371 tso.name,
372 pg_stat_get_function_calls(tso.oid),
373 pg_stat_get_function_total_time(tso.oid) > 0 total_above_zero,
374 pg_stat_get_function_self_time(tso.oid) > 0 self_above_zero
375 FROM test_stat_oid AS tso
376 WHERE tso.name = 'test_stat_func'
377
378 name |pg_stat_get_function_calls|total_above_zero|self_above_zero
379 --------------+--------------------------+----------------+---------------
380 test_stat_func| 2|t |t
381 (1 row)
382
383 step s2_func_stats:
384 SELECT
385 tso.name,
386 pg_stat_get_function_calls(tso.oid),
387 pg_stat_get_function_total_time(tso.oid) > 0 total_above_zero,
388 pg_stat_get_function_self_time(tso.oid) > 0 self_above_zero
389 FROM test_stat_oid AS tso
390 WHERE tso.name = 'test_stat_func'
391
392 name |pg_stat_get_function_calls|total_above_zero|self_above_zero
393 --------------+--------------------------+----------------+---------------
394 test_stat_func| 2|t |t
395 (1 row)
396
397
398 starting permutation: s1_track_funcs_all s2_track_funcs_all s1_func_stats s2_func_stats s1_begin s1_func_call s2_func_call s1_func_drop s2_func_call s2_ff s2_func_stats s1_commit s1_ff s1_func_stats s2_func_stats
399 pg_stat_force_next_flush
400 ------------------------
401
402 (1 row)
403
404 step s1_track_funcs_all: SET track_functions = 'all';
405 step s2_track_funcs_all: SET track_functions = 'all';
406 step s1_func_stats:
407 SELECT
408 tso.name,
409 pg_stat_get_function_calls(tso.oid),
410 pg_stat_get_function_total_time(tso.oid) > 0 total_above_zero,
411 pg_stat_get_function_self_time(tso.oid) > 0 self_above_zero
412 FROM test_stat_oid AS tso
413 WHERE tso.name = 'test_stat_func'
414
415 name |pg_stat_get_function_calls|total_above_zero|self_above_zero
416 --------------+--------------------------+----------------+---------------
417 test_stat_func| | |
418 (1 row)
419
420 step s2_func_stats:
421 SELECT
422 tso.name,
423 pg_stat_get_function_calls(tso.oid),
424 pg_stat_get_function_total_time(tso.oid) > 0 total_above_zero,
425 pg_stat_get_function_self_time(tso.oid) > 0 self_above_zero
426 FROM test_stat_oid AS tso
427 WHERE tso.name = 'test_stat_func'
428
429 name |pg_stat_get_function_calls|total_above_zero|self_above_zero
430 --------------+--------------------------+----------------+---------------
431 test_stat_func| | |
432 (1 row)
433
434 step s1_begin: BEGIN;
435 step s1_func_call: SELECT test_stat_func();
436 test_stat_func
437 --------------
438
439 (1 row)
440
441 step s2_func_call: SELECT test_stat_func()
442 test_stat_func
443 --------------
444
445 (1 row)
446
447 step s1_func_drop: DROP FUNCTION test_stat_func();
448 step s2_func_call: SELECT test_stat_func()
449 test_stat_func
450 --------------
451
452 (1 row)
453
454 step s2_ff: SELECT pg_stat_force_next_flush();
455 pg_stat_force_next_flush
456 ------------------------
457
458 (1 row)
459
460 step s2_func_stats:
461 SELECT
462 tso.name,
463 pg_stat_get_function_calls(tso.oid),
464 pg_stat_get_function_total_time(tso.oid) > 0 total_above_zero,
465 pg_stat_get_function_self_time(tso.oid) > 0 self_above_zero
466 FROM test_stat_oid AS tso
467 WHERE tso.name = 'test_stat_func'
468
469 name |pg_stat_get_function_calls|total_above_zero|self_above_zero
470 --------------+--------------------------+----------------+---------------
471 test_stat_func| 2|t |t
472 (1 row)
473
474 step s1_commit: COMMIT;
475 step s1_ff: SELECT pg_stat_force_next_flush();
476 pg_stat_force_next_flush
477 ------------------------
478
479 (1 row)
480
481 step s1_func_stats:
482 SELECT
483 tso.name,
484 pg_stat_get_function_calls(tso.oid),
485 pg_stat_get_function_total_time(tso.oid) > 0 total_above_zero,
486 pg_stat_get_function_self_time(tso.oid) > 0 self_above_zero
487 FROM test_stat_oid AS tso
488 WHERE tso.name = 'test_stat_func'
489
490 name |pg_stat_get_function_calls|total_above_zero|self_above_zero
491 --------------+--------------------------+----------------+---------------
492 test_stat_func| | |
493 (1 row)
494
495 step s2_func_stats:
496 SELECT
497 tso.name,
498 pg_stat_get_function_calls(tso.oid),
499 pg_stat_get_function_total_time(tso.oid) > 0 total_above_zero,
500 pg_stat_get_function_self_time(tso.oid) > 0 self_above_zero
501 FROM test_stat_oid AS tso
502 WHERE tso.name = 'test_stat_func'
503
504 name |pg_stat_get_function_calls|total_above_zero|self_above_zero
505 --------------+--------------------------+----------------+---------------
506 test_stat_func| | |
507 (1 row)
508
509
510 starting permutation: s1_track_funcs_all s2_track_funcs_all s1_func_stats s2_func_stats s1_begin s1_func_call s2_func_call s1_func_drop s2_func_call s2_ff s2_func_stats s1_rollback s1_ff s1_func_stats s2_func_stats
511 pg_stat_force_next_flush
512 ------------------------
513
514 (1 row)
515
516 step s1_track_funcs_all: SET track_functions = 'all';
517 step s2_track_funcs_all: SET track_functions = 'all';
518 step s1_func_stats:
519 SELECT
520 tso.name,
521 pg_stat_get_function_calls(tso.oid),
522 pg_stat_get_function_total_time(tso.oid) > 0 total_above_zero,
523 pg_stat_get_function_self_time(tso.oid) > 0 self_above_zero
524 FROM test_stat_oid AS tso
525 WHERE tso.name = 'test_stat_func'
526
527 name |pg_stat_get_function_calls|total_above_zero|self_above_zero
528 --------------+--------------------------+----------------+---------------
529 test_stat_func| | |
530 (1 row)
531
532 step s2_func_stats:
533 SELECT
534 tso.name,
535 pg_stat_get_function_calls(tso.oid),
536 pg_stat_get_function_total_time(tso.oid) > 0 total_above_zero,
537 pg_stat_get_function_self_time(tso.oid) > 0 self_above_zero
538 FROM test_stat_oid AS tso
539 WHERE tso.name = 'test_stat_func'
540
541 name |pg_stat_get_function_calls|total_above_zero|self_above_zero
542 --------------+--------------------------+----------------+---------------
543 test_stat_func| | |
544 (1 row)
545
546 step s1_begin: BEGIN;
547 step s1_func_call: SELECT test_stat_func();
548 test_stat_func
549 --------------
550
551 (1 row)
552
553 step s2_func_call: SELECT test_stat_func()
554 test_stat_func
555 --------------
556
557 (1 row)
558
559 step s1_func_drop: DROP FUNCTION test_stat_func();
560 step s2_func_call: SELECT test_stat_func()
561 test_stat_func
562 --------------
563
564 (1 row)
565
566 step s2_ff: SELECT pg_stat_force_next_flush();
567 pg_stat_force_next_flush
568 ------------------------
569
570 (1 row)
571
572 step s2_func_stats:
573 SELECT
574 tso.name,
575 pg_stat_get_function_calls(tso.oid),
576 pg_stat_get_function_total_time(tso.oid) > 0 total_above_zero,
577 pg_stat_get_function_self_time(tso.oid) > 0 self_above_zero
578 FROM test_stat_oid AS tso
579 WHERE tso.name = 'test_stat_func'
580
581 name |pg_stat_get_function_calls|total_above_zero|self_above_zero
582 --------------+--------------------------+----------------+---------------
583 test_stat_func| 2|t |t
584 (1 row)
585
586 step s1_rollback: ROLLBACK;
587 step s1_ff: SELECT pg_stat_force_next_flush();
588 pg_stat_force_next_flush
589 ------------------------
590
591 (1 row)
592
593 step s1_func_stats:
594 SELECT
595 tso.name,
596 pg_stat_get_function_calls(tso.oid),
597 pg_stat_get_function_total_time(tso.oid) > 0 total_above_zero,
598 pg_stat_get_function_self_time(tso.oid) > 0 self_above_zero
599 FROM test_stat_oid AS tso
600 WHERE tso.name = 'test_stat_func'
601
602 name |pg_stat_get_function_calls|total_above_zero|self_above_zero
603 --------------+--------------------------+----------------+---------------
604 test_stat_func| 3|t |t
605 (1 row)
606
607 step s2_func_stats:
608 SELECT
609 tso.name,
610 pg_stat_get_function_calls(tso.oid),
611 pg_stat_get_function_total_time(tso.oid) > 0 total_above_zero,
612 pg_stat_get_function_self_time(tso.oid) > 0 self_above_zero
613 FROM test_stat_oid AS tso
614 WHERE tso.name = 'test_stat_func'
615
616 name |pg_stat_get_function_calls|total_above_zero|self_above_zero
617 --------------+--------------------------+----------------+---------------
618 test_stat_func| 3|t |t
619 (1 row)
620
621
622 starting permutation: s1_track_funcs_all s2_track_funcs_all s2_func_call s2_ff s2_begin s2_func_call_ifexists s1_func_drop s1_func_stats s2_commit s2_ff s1_func_stats s2_func_stats
623 pg_stat_force_next_flush
624 ------------------------
625
626 (1 row)
627
628 step s1_track_funcs_all: SET track_functions = 'all';
629 step s2_track_funcs_all: SET track_functions = 'all';
630 step s2_func_call: SELECT test_stat_func()
631 test_stat_func
632 --------------
633
634 (1 row)
635
636 step s2_ff: SELECT pg_stat_force_next_flush();
637 pg_stat_force_next_flush
638 ------------------------
639
640 (1 row)
641
642 step s2_begin: BEGIN;
643 step s2_func_call_ifexists: SELECT test_stat_func_ifexists();
644 test_stat_func_ifexists
645 -----------------------
646
647 (1 row)
648
649 step s1_func_drop: DROP FUNCTION test_stat_func();
650 step s1_func_stats:
651 SELECT
652 tso.name,
653 pg_stat_get_function_calls(tso.oid),
654 pg_stat_get_function_total_time(tso.oid) > 0 total_above_zero,
655 pg_stat_get_function_self_time(tso.oid) > 0 self_above_zero
656 FROM test_stat_oid AS tso
657 WHERE tso.name = 'test_stat_func'
658
659 name |pg_stat_get_function_calls|total_above_zero|self_above_zero
660 --------------+--------------------------+----------------+---------------
661 test_stat_func| | |
662 (1 row)
663
664 step s2_commit: COMMIT;
665 step s2_ff: SELECT pg_stat_force_next_flush();
666 pg_stat_force_next_flush
667 ------------------------
668
669 (1 row)
670
671 step s1_func_stats:
672 SELECT
673 tso.name,
674 pg_stat_get_function_calls(tso.oid),
675 pg_stat_get_function_total_time(tso.oid) > 0 total_above_zero,
676 pg_stat_get_function_self_time(tso.oid) > 0 self_above_zero
677 FROM test_stat_oid AS tso
678 WHERE tso.name = 'test_stat_func'
679
680 name |pg_stat_get_function_calls|total_above_zero|self_above_zero
681 --------------+--------------------------+----------------+---------------
682 test_stat_func| | |
683 (1 row)
684
685 step s2_func_stats:
686 SELECT
687 tso.name,
688 pg_stat_get_function_calls(tso.oid),
689 pg_stat_get_function_total_time(tso.oid) > 0 total_above_zero,
690 pg_stat_get_function_self_time(tso.oid) > 0 self_above_zero
691 FROM test_stat_oid AS tso
692 WHERE tso.name = 'test_stat_func'
693
694 name |pg_stat_get_function_calls|total_above_zero|self_above_zero
695 --------------+--------------------------+----------------+---------------
696 test_stat_func| | |
697 (1 row)
698
699
700 starting permutation: s1_track_funcs_all s2_track_funcs_all s2_begin s2_func_call_ifexists s1_func_drop s1_func_stats s2_commit s2_ff s1_func_stats s2_func_stats
701 pg_stat_force_next_flush
702 ------------------------
703
704 (1 row)
705
706 step s1_track_funcs_all: SET track_functions = 'all';
707 step s2_track_funcs_all: SET track_functions = 'all';
708 step s2_begin: BEGIN;
709 step s2_func_call_ifexists: SELECT test_stat_func_ifexists();
710 test_stat_func_ifexists
711 -----------------------
712
713 (1 row)
714
715 step s1_func_drop: DROP FUNCTION test_stat_func();
716 step s1_func_stats:
717 SELECT
718 tso.name,
719 pg_stat_get_function_calls(tso.oid),
720 pg_stat_get_function_total_time(tso.oid) > 0 total_above_zero,
721 pg_stat_get_function_self_time(tso.oid) > 0 self_above_zero
722 FROM test_stat_oid AS tso
723 WHERE tso.name = 'test_stat_func'
724
725 name |pg_stat_get_function_calls|total_above_zero|self_above_zero
726 --------------+--------------------------+----------------+---------------
727 test_stat_func| | |
728 (1 row)
729
730 step s2_commit: COMMIT;
731 step s2_ff: SELECT pg_stat_force_next_flush();
732 pg_stat_force_next_flush
733 ------------------------
734
735 (1 row)
736
737 step s1_func_stats:
738 SELECT
739 tso.name,
740 pg_stat_get_function_calls(tso.oid),
741 pg_stat_get_function_total_time(tso.oid) > 0 total_above_zero,
742 pg_stat_get_function_self_time(tso.oid) > 0 self_above_zero
743 FROM test_stat_oid AS tso
744 WHERE tso.name = 'test_stat_func'
745
746 name |pg_stat_get_function_calls|total_above_zero|self_above_zero
747 --------------+--------------------------+----------------+---------------
748 test_stat_func| | |
749 (1 row)
750
751 step s2_func_stats:
752 SELECT
753 tso.name,
754 pg_stat_get_function_calls(tso.oid),
755 pg_stat_get_function_total_time(tso.oid) > 0 total_above_zero,
756 pg_stat_get_function_self_time(tso.oid) > 0 self_above_zero
757 FROM test_stat_oid AS tso
758 WHERE tso.name = 'test_stat_func'
759
760 name |pg_stat_get_function_calls|total_above_zero|self_above_zero
761 --------------+--------------------------+----------------+---------------
762 test_stat_func| | |
763 (1 row)
764
765
766 starting permutation: s1_track_funcs_all s2_track_funcs_all s1_func_call s2_begin s2_func_call_ifexists s1_func_drop s2_func_call_ifexists s2_commit s2_ff s1_func_stats s2_func_stats
767 pg_stat_force_next_flush
768 ------------------------
769
770 (1 row)
771
772 step s1_track_funcs_all: SET track_functions = 'all';
773 step s2_track_funcs_all: SET track_functions = 'all';
774 step s1_func_call: SELECT test_stat_func();
775 test_stat_func
776 --------------
777
778 (1 row)
779
780 step s2_begin: BEGIN;
781 step s2_func_call_ifexists: SELECT test_stat_func_ifexists();
782 test_stat_func_ifexists
783 -----------------------
784
785 (1 row)
786
787 step s1_func_drop: DROP FUNCTION test_stat_func();
788 step s2_func_call_ifexists: SELECT test_stat_func_ifexists();
789 test_stat_func_ifexists
790 -----------------------
791
792 (1 row)
793
794 step s2_commit: COMMIT;
795 step s2_ff: SELECT pg_stat_force_next_flush();
796 pg_stat_force_next_flush
797 ------------------------
798
799 (1 row)
800
801 step s1_func_stats:
802 SELECT
803 tso.name,
804 pg_stat_get_function_calls(tso.oid),
805 pg_stat_get_function_total_time(tso.oid) > 0 total_above_zero,
806 pg_stat_get_function_self_time(tso.oid) > 0 self_above_zero
807 FROM test_stat_oid AS tso
808 WHERE tso.name = 'test_stat_func'
809
810 name |pg_stat_get_function_calls|total_above_zero|self_above_zero
811 --------------+--------------------------+----------------+---------------
812 test_stat_func| | |
813 (1 row)
814
815 step s2_func_stats:
816 SELECT
817 tso.name,
818 pg_stat_get_function_calls(tso.oid),
819 pg_stat_get_function_total_time(tso.oid) > 0 total_above_zero,
820 pg_stat_get_function_self_time(tso.oid) > 0 self_above_zero
821 FROM test_stat_oid AS tso
822 WHERE tso.name = 'test_stat_func'
823
824 name |pg_stat_get_function_calls|total_above_zero|self_above_zero
825 --------------+--------------------------+----------------+---------------
826 test_stat_func| | |
827 (1 row)
828
829
830 starting permutation: s1_track_funcs_all s2_track_funcs_none s1_func_call s2_begin s2_func_call_ifexists s1_ff s1_func_stats s1_func_drop s2_track_funcs_none s1_func_stats s2_func_call_ifexists s2_commit s2_ff s1_func_stats s2_func_stats
831 pg_stat_force_next_flush
832 ------------------------
833
834 (1 row)
835
836 step s1_track_funcs_all: SET track_functions = 'all';
837 step s2_track_funcs_none: SET track_functions = 'none';
838 step s1_func_call: SELECT test_stat_func();
839 test_stat_func
840 --------------
841
842 (1 row)
843
844 step s2_begin: BEGIN;
845 step s2_func_call_ifexists: SELECT test_stat_func_ifexists();
846 test_stat_func_ifexists
847 -----------------------
848
849 (1 row)
850
851 step s1_ff: SELECT pg_stat_force_next_flush();
852 pg_stat_force_next_flush
853 ------------------------
854
855 (1 row)
856
857 step s1_func_stats:
858 SELECT
859 tso.name,
860 pg_stat_get_function_calls(tso.oid),
861 pg_stat_get_function_total_time(tso.oid) > 0 total_above_zero,
862 pg_stat_get_function_self_time(tso.oid) > 0 self_above_zero
863 FROM test_stat_oid AS tso
864 WHERE tso.name = 'test_stat_func'
865
866 name |pg_stat_get_function_calls|total_above_zero|self_above_zero
867 --------------+--------------------------+----------------+---------------
868 test_stat_func| 1|t |t
869 (1 row)
870
871 step s1_func_drop: DROP FUNCTION test_stat_func();
872 step s2_track_funcs_none: SET track_functions = 'none';
873 step s1_func_stats:
874 SELECT
875 tso.name,
876 pg_stat_get_function_calls(tso.oid),
877 pg_stat_get_function_total_time(tso.oid) > 0 total_above_zero,
878 pg_stat_get_function_self_time(tso.oid) > 0 self_above_zero
879 FROM test_stat_oid AS tso
880 WHERE tso.name = 'test_stat_func'
881
882 name |pg_stat_get_function_calls|total_above_zero|self_above_zero
883 --------------+--------------------------+----------------+---------------
884 test_stat_func| | |
885 (1 row)
886
887 step s2_func_call_ifexists: SELECT test_stat_func_ifexists();
888 test_stat_func_ifexists
889 -----------------------
890
891 (1 row)
892
893 step s2_commit: COMMIT;
894 step s2_ff: SELECT pg_stat_force_next_flush();
895 pg_stat_force_next_flush
896 ------------------------
897
898 (1 row)
899
900 step s1_func_stats:
901 SELECT
902 tso.name,
903 pg_stat_get_function_calls(tso.oid),
904 pg_stat_get_function_total_time(tso.oid) > 0 total_above_zero,
905 pg_stat_get_function_self_time(tso.oid) > 0 self_above_zero
906 FROM test_stat_oid AS tso
907 WHERE tso.name = 'test_stat_func'
908
909 name |pg_stat_get_function_calls|total_above_zero|self_above_zero
910 --------------+--------------------------+----------------+---------------
911 test_stat_func| | |
912 (1 row)
913
914 step s2_func_stats:
915 SELECT
916 tso.name,
917 pg_stat_get_function_calls(tso.oid),
918 pg_stat_get_function_total_time(tso.oid) > 0 total_above_zero,
919 pg_stat_get_function_self_time(tso.oid) > 0 self_above_zero
920 FROM test_stat_oid AS tso
921 WHERE tso.name = 'test_stat_func'
922
923 name |pg_stat_get_function_calls|total_above_zero|self_above_zero
924 --------------+--------------------------+----------------+---------------
925 test_stat_func| | |
926 (1 row)
927
928
929 starting permutation: s1_track_funcs_all s2_track_funcs_none s1_func_call s2_begin s2_func_call_ifexists s1_ff s1_func_stats s1_func_drop s2_track_funcs_all s1_func_stats s2_func_call_ifexists s2_commit s2_ff s1_func_stats s2_func_stats
930 pg_stat_force_next_flush
931 ------------------------
932
933 (1 row)
934
935 step s1_track_funcs_all: SET track_functions = 'all';
936 step s2_track_funcs_none: SET track_functions = 'none';
937 step s1_func_call: SELECT test_stat_func();
938 test_stat_func
939 --------------
940
941 (1 row)
942
943 step s2_begin: BEGIN;
944 step s2_func_call_ifexists: SELECT test_stat_func_ifexists();
945 test_stat_func_ifexists
946 -----------------------
947
948 (1 row)
949
950 step s1_ff: SELECT pg_stat_force_next_flush();
951 pg_stat_force_next_flush
952 ------------------------
953
954 (1 row)
955
956 step s1_func_stats:
957 SELECT
958 tso.name,
959 pg_stat_get_function_calls(tso.oid),
960 pg_stat_get_function_total_time(tso.oid) > 0 total_above_zero,
961 pg_stat_get_function_self_time(tso.oid) > 0 self_above_zero
962 FROM test_stat_oid AS tso
963 WHERE tso.name = 'test_stat_func'
964
965 name |pg_stat_get_function_calls|total_above_zero|self_above_zero
966 --------------+--------------------------+----------------+---------------
967 test_stat_func| 1|t |t
968 (1 row)
969
970 step s1_func_drop: DROP FUNCTION test_stat_func();
971 step s2_track_funcs_all: SET track_functions = 'all';
972 step s1_func_stats:
973 SELECT
974 tso.name,
975 pg_stat_get_function_calls(tso.oid),
976 pg_stat_get_function_total_time(tso.oid) > 0 total_above_zero,
977 pg_stat_get_function_self_time(tso.oid) > 0 self_above_zero
978 FROM test_stat_oid AS tso
979 WHERE tso.name = 'test_stat_func'
980
981 name |pg_stat_get_function_calls|total_above_zero|self_above_zero
982 --------------+--------------------------+----------------+---------------
983 test_stat_func| | |
984 (1 row)
985
986 step s2_func_call_ifexists: SELECT test_stat_func_ifexists();
987 test_stat_func_ifexists
988 -----------------------
989
990 (1 row)
991
992 step s2_commit: COMMIT;
993 step s2_ff: SELECT pg_stat_force_next_flush();
994 pg_stat_force_next_flush
995 ------------------------
996
997 (1 row)
998
999 step s1_func_stats:
1000 SELECT
1001 tso.name,
1002 pg_stat_get_function_calls(tso.oid),
1003 pg_stat_get_function_total_time(tso.oid) > 0 total_above_zero,
1004 pg_stat_get_function_self_time(tso.oid) > 0 self_above_zero
1005 FROM test_stat_oid AS tso
1006 WHERE tso.name = 'test_stat_func'
1007
1008 name |pg_stat_get_function_calls|total_above_zero|self_above_zero
1009 --------------+--------------------------+----------------+---------------
1010 test_stat_func| | |
1011 (1 row)
1012
1013 step s2_func_stats:
1014 SELECT
1015 tso.name,
1016 pg_stat_get_function_calls(tso.oid),
1017 pg_stat_get_function_total_time(tso.oid) > 0 total_above_zero,
1018 pg_stat_get_function_self_time(tso.oid) > 0 self_above_zero
1019 FROM test_stat_oid AS tso
1020 WHERE tso.name = 'test_stat_func'
1021
1022 name |pg_stat_get_function_calls|total_above_zero|self_above_zero
1023 --------------+--------------------------+----------------+---------------
1024 test_stat_func| | |
1025 (1 row)
1026
1027
1028 starting permutation: s1_track_funcs_all s2_track_funcs_all s1_func_call s2_func_call s2_func_call2 s1_ff s2_ff s1_func_stats s2_func_call s2_func_call2 s2_ff s1_func_stats s1_func_stats2 s1_func_stats s1_func_stats_reset s1_func_stats s1_func_stats2 s1_func_stats
1029 pg_stat_force_next_flush
1030 ------------------------
1031
1032 (1 row)
1033
1034 step s1_track_funcs_all: SET track_functions = 'all';
1035 step s2_track_funcs_all: SET track_functions = 'all';
1036 step s1_func_call: SELECT test_stat_func();
1037 test_stat_func
1038 --------------
1039
1040 (1 row)
1041
1042 step s2_func_call: SELECT test_stat_func()
1043 test_stat_func
1044 --------------
1045
1046 (1 row)
1047
1048 step s2_func_call2: SELECT test_stat_func2()
1049 test_stat_func2
1050 ---------------
1051
1052 (1 row)
1053
1054 step s1_ff: SELECT pg_stat_force_next_flush();
1055 pg_stat_force_next_flush
1056 ------------------------
1057
1058 (1 row)
1059
1060 step s2_ff: SELECT pg_stat_force_next_flush();
1061 pg_stat_force_next_flush
1062 ------------------------
1063
1064 (1 row)
1065
1066 step s1_func_stats:
1067 SELECT
1068 tso.name,
1069 pg_stat_get_function_calls(tso.oid),
1070 pg_stat_get_function_total_time(tso.oid) > 0 total_above_zero,
1071 pg_stat_get_function_self_time(tso.oid) > 0 self_above_zero
1072 FROM test_stat_oid AS tso
1073 WHERE tso.name = 'test_stat_func'
1074
1075 name |pg_stat_get_function_calls|total_above_zero|self_above_zero
1076 --------------+--------------------------+----------------+---------------
1077 test_stat_func| 2|t |t
1078 (1 row)
1079
1080 step s2_func_call: SELECT test_stat_func()
1081 test_stat_func
1082 --------------
1083
1084 (1 row)
1085
1086 step s2_func_call2: SELECT test_stat_func2()
1087 test_stat_func2
1088 ---------------
1089
1090 (1 row)
1091
1092 step s2_ff: SELECT pg_stat_force_next_flush();
1093 pg_stat_force_next_flush
1094 ------------------------
1095
1096 (1 row)
1097
1098 step s1_func_stats:
1099 SELECT
1100 tso.name,
1101 pg_stat_get_function_calls(tso.oid),
1102 pg_stat_get_function_total_time(tso.oid) > 0 total_above_zero,
1103 pg_stat_get_function_self_time(tso.oid) > 0 self_above_zero
1104 FROM test_stat_oid AS tso
1105 WHERE tso.name = 'test_stat_func'
1106
1107 name |pg_stat_get_function_calls|total_above_zero|self_above_zero
1108 --------------+--------------------------+----------------+---------------
1109 test_stat_func| 3|t |t
1110 (1 row)
1111
1112 step s1_func_stats2:
1113 SELECT
1114 tso.name,
1115 pg_stat_get_function_calls(tso.oid),
1116 pg_stat_get_function_total_time(tso.oid) > 0 total_above_zero,
1117 pg_stat_get_function_self_time(tso.oid) > 0 self_above_zero
1118 FROM test_stat_oid AS tso
1119 WHERE tso.name = 'test_stat_func2'
1120
1121 name |pg_stat_get_function_calls|total_above_zero|self_above_zero
1122 ---------------+--------------------------+----------------+---------------
1123 test_stat_func2| 2|t |t
1124 (1 row)
1125
1126 step s1_func_stats:
1127 SELECT
1128 tso.name,
1129 pg_stat_get_function_calls(tso.oid),
1130 pg_stat_get_function_total_time(tso.oid) > 0 total_above_zero,
1131 pg_stat_get_function_self_time(tso.oid) > 0 self_above_zero
1132 FROM test_stat_oid AS tso
1133 WHERE tso.name = 'test_stat_func'
1134
1135 name |pg_stat_get_function_calls|total_above_zero|self_above_zero
1136 --------------+--------------------------+----------------+---------------
1137 test_stat_func| 3|t |t
1138 (1 row)
1139
1140 step s1_func_stats_reset: SELECT pg_stat_reset_single_function_counters('test_stat_func'::regproc);
1141 pg_stat_reset_single_function_counters
1142 --------------------------------------
1143
1144 (1 row)
1145
1146 step s1_func_stats:
1147 SELECT
1148 tso.name,
1149 pg_stat_get_function_calls(tso.oid),
1150 pg_stat_get_function_total_time(tso.oid) > 0 total_above_zero,
1151 pg_stat_get_function_self_time(tso.oid) > 0 self_above_zero
1152 FROM test_stat_oid AS tso
1153 WHERE tso.name = 'test_stat_func'
1154
1155 name |pg_stat_get_function_calls|total_above_zero|self_above_zero
1156 --------------+--------------------------+----------------+---------------
1157 test_stat_func| 0|f |f
1158 (1 row)
1159
1160 step s1_func_stats2:
1161 SELECT
1162 tso.name,
1163 pg_stat_get_function_calls(tso.oid),
1164 pg_stat_get_function_total_time(tso.oid) > 0 total_above_zero,
1165 pg_stat_get_function_self_time(tso.oid) > 0 self_above_zero
1166 FROM test_stat_oid AS tso
1167 WHERE tso.name = 'test_stat_func2'
1168
1169 name |pg_stat_get_function_calls|total_above_zero|self_above_zero
1170 ---------------+--------------------------+----------------+---------------
1171 test_stat_func2| 2|t |t
1172 (1 row)
1173
1174 step s1_func_stats:
1175 SELECT
1176 tso.name,
1177 pg_stat_get_function_calls(tso.oid),
1178 pg_stat_get_function_total_time(tso.oid) > 0 total_above_zero,
1179 pg_stat_get_function_self_time(tso.oid) > 0 self_above_zero
1180 FROM test_stat_oid AS tso
1181 WHERE tso.name = 'test_stat_func'
1182
1183 name |pg_stat_get_function_calls|total_above_zero|self_above_zero
1184 --------------+--------------------------+----------------+---------------
1185 test_stat_func| 0|f |f
1186 (1 row)
1187
1188
1189 starting permutation: s1_func_stats_nonexistent s1_func_stats_reset_nonexistent s1_func_stats_nonexistent
1190 pg_stat_force_next_flush
1191 ------------------------
1192
1193 (1 row)
1194
1195 step s1_func_stats_nonexistent:
1196 SELECT pg_stat_get_function_calls(12000);
1197
1198 pg_stat_get_function_calls
1199 --------------------------
1200
1201 (1 row)
1202
1203 step s1_func_stats_reset_nonexistent: SELECT pg_stat_reset_single_function_counters(12000);
1204 pg_stat_reset_single_function_counters
1205 --------------------------------------
1206
1207 (1 row)
1208
1209 step s1_func_stats_nonexistent:
1210 SELECT pg_stat_get_function_calls(12000);
1211
1212 pg_stat_get_function_calls
1213 --------------------------
1214
1215 (1 row)
1216
1217
1218 starting permutation: s1_track_funcs_all s2_track_funcs_all s1_func_call s2_func_call s2_func_call2 s1_ff s2_ff s1_func_stats s1_func_stats2 s1_func_stats s1_reset s1_func_stats s1_func_stats2 s1_func_stats
1219 pg_stat_force_next_flush
1220 ------------------------
1221
1222 (1 row)
1223
1224 step s1_track_funcs_all: SET track_functions = 'all';
1225 step s2_track_funcs_all: SET track_functions = 'all';
1226 step s1_func_call: SELECT test_stat_func();
1227 test_stat_func
1228 --------------
1229
1230 (1 row)
1231
1232 step s2_func_call: SELECT test_stat_func()
1233 test_stat_func
1234 --------------
1235
1236 (1 row)
1237
1238 step s2_func_call2: SELECT test_stat_func2()
1239 test_stat_func2
1240 ---------------
1241
1242 (1 row)
1243
1244 step s1_ff: SELECT pg_stat_force_next_flush();
1245 pg_stat_force_next_flush
1246 ------------------------
1247
1248 (1 row)
1249
1250 step s2_ff: SELECT pg_stat_force_next_flush();
1251 pg_stat_force_next_flush
1252 ------------------------
1253
1254 (1 row)
1255
1256 step s1_func_stats:
1257 SELECT
1258 tso.name,
1259 pg_stat_get_function_calls(tso.oid),
1260 pg_stat_get_function_total_time(tso.oid) > 0 total_above_zero,
1261 pg_stat_get_function_self_time(tso.oid) > 0 self_above_zero
1262 FROM test_stat_oid AS tso
1263 WHERE tso.name = 'test_stat_func'
1264
1265 name |pg_stat_get_function_calls|total_above_zero|self_above_zero
1266 --------------+--------------------------+----------------+---------------
1267 test_stat_func| 2|t |t
1268 (1 row)
1269
1270 step s1_func_stats2:
1271 SELECT
1272 tso.name,
1273 pg_stat_get_function_calls(tso.oid),
1274 pg_stat_get_function_total_time(tso.oid) > 0 total_above_zero,
1275 pg_stat_get_function_self_time(tso.oid) > 0 self_above_zero
1276 FROM test_stat_oid AS tso
1277 WHERE tso.name = 'test_stat_func2'
1278
1279 name |pg_stat_get_function_calls|total_above_zero|self_above_zero
1280 ---------------+--------------------------+----------------+---------------
1281 test_stat_func2| 1|t |t
1282 (1 row)
1283
1284 step s1_func_stats:
1285 SELECT
1286 tso.name,
1287 pg_stat_get_function_calls(tso.oid),
1288 pg_stat_get_function_total_time(tso.oid) > 0 total_above_zero,
1289 pg_stat_get_function_self_time(tso.oid) > 0 self_above_zero
1290 FROM test_stat_oid AS tso
1291 WHERE tso.name = 'test_stat_func'
1292
1293 name |pg_stat_get_function_calls|total_above_zero|self_above_zero
1294 --------------+--------------------------+----------------+---------------
1295 test_stat_func| 2|t |t
1296 (1 row)
1297
1298 step s1_reset: SELECT pg_stat_reset();
1299 pg_stat_reset
1300 -------------
1301
1302 (1 row)
1303
1304 step s1_func_stats:
1305 SELECT
1306 tso.name,
1307 pg_stat_get_function_calls(tso.oid),
1308 pg_stat_get_function_total_time(tso.oid) > 0 total_above_zero,
1309 pg_stat_get_function_self_time(tso.oid) > 0 self_above_zero
1310 FROM test_stat_oid AS tso
1311 WHERE tso.name = 'test_stat_func'
1312
1313 name |pg_stat_get_function_calls|total_above_zero|self_above_zero
1314 --------------+--------------------------+----------------+---------------
1315 test_stat_func| 0|f |f
1316 (1 row)
1317
1318 step s1_func_stats2:
1319 SELECT
1320 tso.name,
1321 pg_stat_get_function_calls(tso.oid),
1322 pg_stat_get_function_total_time(tso.oid) > 0 total_above_zero,
1323 pg_stat_get_function_self_time(tso.oid) > 0 self_above_zero
1324 FROM test_stat_oid AS tso
1325 WHERE tso.name = 'test_stat_func2'
1326
1327 name |pg_stat_get_function_calls|total_above_zero|self_above_zero
1328 ---------------+--------------------------+----------------+---------------
1329 test_stat_func2| 0|f |f
1330 (1 row)
1331
1332 step s1_func_stats:
1333 SELECT
1334 tso.name,
1335 pg_stat_get_function_calls(tso.oid),
1336 pg_stat_get_function_total_time(tso.oid) > 0 total_above_zero,
1337 pg_stat_get_function_self_time(tso.oid) > 0 self_above_zero
1338 FROM test_stat_oid AS tso
1339 WHERE tso.name = 'test_stat_func'
1340
1341 name |pg_stat_get_function_calls|total_above_zero|self_above_zero
1342 --------------+--------------------------+----------------+---------------
1343 test_stat_func| 0|f |f
1344 (1 row)
1345
1346
1347 starting permutation: s1_track_funcs_all s1_fetch_consistency_none s1_func_call s1_ff s1_func_stats
1348 pg_stat_force_next_flush
1349 ------------------------
1350
1351 (1 row)
1352
1353 step s1_track_funcs_all: SET track_functions = 'all';
1354 step s1_fetch_consistency_none: SET stats_fetch_consistency = 'none';
1355 step s1_func_call: SELECT test_stat_func();
1356 test_stat_func
1357 --------------
1358
1359 (1 row)
1360
1361 step s1_ff: SELECT pg_stat_force_next_flush();
1362 pg_stat_force_next_flush
1363 ------------------------
1364
1365 (1 row)
1366
1367 step s1_func_stats:
1368 SELECT
1369 tso.name,
1370 pg_stat_get_function_calls(tso.oid),
1371 pg_stat_get_function_total_time(tso.oid) > 0 total_above_zero,
1372 pg_stat_get_function_self_time(tso.oid) > 0 self_above_zero
1373 FROM test_stat_oid AS tso
1374 WHERE tso.name = 'test_stat_func'
1375
1376 name |pg_stat_get_function_calls|total_above_zero|self_above_zero
1377 --------------+--------------------------+----------------+---------------
1378 test_stat_func| 1|t |t
1379 (1 row)
1380
1381
1382 starting permutation: s1_track_funcs_all s1_fetch_consistency_cache s1_func_call s1_ff s1_func_stats
1383 pg_stat_force_next_flush
1384 ------------------------
1385
1386 (1 row)
1387
1388 step s1_track_funcs_all: SET track_functions = 'all';
1389 step s1_fetch_consistency_cache: SET stats_fetch_consistency = 'cache';
1390 step s1_func_call: SELECT test_stat_func();
1391 test_stat_func
1392 --------------
1393
1394 (1 row)
1395
1396 step s1_ff: SELECT pg_stat_force_next_flush();
1397 pg_stat_force_next_flush
1398 ------------------------
1399
1400 (1 row)
1401
1402 step s1_func_stats:
1403 SELECT
1404 tso.name,
1405 pg_stat_get_function_calls(tso.oid),
1406 pg_stat_get_function_total_time(tso.oid) > 0 total_above_zero,
1407 pg_stat_get_function_self_time(tso.oid) > 0 self_above_zero
1408 FROM test_stat_oid AS tso
1409 WHERE tso.name = 'test_stat_func'
1410
1411 name |pg_stat_get_function_calls|total_above_zero|self_above_zero
1412 --------------+--------------------------+----------------+---------------
1413 test_stat_func| 1|t |t
1414 (1 row)
1415
1416
1417 starting permutation: s1_track_funcs_all s1_fetch_consistency_snapshot s1_func_call s1_ff s1_func_stats
1418 pg_stat_force_next_flush
1419 ------------------------
1420
1421 (1 row)
1422
1423 step s1_track_funcs_all: SET track_functions = 'all';
1424 step s1_fetch_consistency_snapshot: SET stats_fetch_consistency = 'snapshot';
1425 step s1_func_call: SELECT test_stat_func();
1426 test_stat_func
1427 --------------
1428
1429 (1 row)
1430
1431 step s1_ff: SELECT pg_stat_force_next_flush();
1432 pg_stat_force_next_flush
1433 ------------------------
1434
1435 (1 row)
1436
1437 step s1_func_stats:
1438 SELECT
1439 tso.name,
1440 pg_stat_get_function_calls(tso.oid),
1441 pg_stat_get_function_total_time(tso.oid) > 0 total_above_zero,
1442 pg_stat_get_function_self_time(tso.oid) > 0 self_above_zero
1443 FROM test_stat_oid AS tso
1444 WHERE tso.name = 'test_stat_func'
1445
1446 name |pg_stat_get_function_calls|total_above_zero|self_above_zero
1447 --------------+--------------------------+----------------+---------------
1448 test_stat_func| 1|t |t
1449 (1 row)
1450
1451
1452 starting permutation: s1_track_funcs_all s2_track_funcs_all s1_fetch_consistency_none s2_func_call s2_ff s1_begin s1_func_stats s2_func_call s2_ff s1_func_stats s1_commit
1453 pg_stat_force_next_flush
1454 ------------------------
1455
1456 (1 row)
1457
1458 step s1_track_funcs_all: SET track_functions = 'all';
1459 step s2_track_funcs_all: SET track_functions = 'all';
1460 step s1_fetch_consistency_none: SET stats_fetch_consistency = 'none';
1461 step s2_func_call: SELECT test_stat_func()
1462 test_stat_func
1463 --------------
1464
1465 (1 row)
1466
1467 step s2_ff: SELECT pg_stat_force_next_flush();
1468 pg_stat_force_next_flush
1469 ------------------------
1470
1471 (1 row)
1472
1473 step s1_begin: BEGIN;
1474 step s1_func_stats:
1475 SELECT
1476 tso.name,
1477 pg_stat_get_function_calls(tso.oid),
1478 pg_stat_get_function_total_time(tso.oid) > 0 total_above_zero,
1479 pg_stat_get_function_self_time(tso.oid) > 0 self_above_zero
1480 FROM test_stat_oid AS tso
1481 WHERE tso.name = 'test_stat_func'
1482
1483 name |pg_stat_get_function_calls|total_above_zero|self_above_zero
1484 --------------+--------------------------+----------------+---------------
1485 test_stat_func| 1|t |t
1486 (1 row)
1487
1488 step s2_func_call: SELECT test_stat_func()
1489 test_stat_func
1490 --------------
1491
1492 (1 row)
1493
1494 step s2_ff: SELECT pg_stat_force_next_flush();
1495 pg_stat_force_next_flush
1496 ------------------------
1497
1498 (1 row)
1499
1500 step s1_func_stats:
1501 SELECT
1502 tso.name,
1503 pg_stat_get_function_calls(tso.oid),
1504 pg_stat_get_function_total_time(tso.oid) > 0 total_above_zero,
1505 pg_stat_get_function_self_time(tso.oid) > 0 self_above_zero
1506 FROM test_stat_oid AS tso
1507 WHERE tso.name = 'test_stat_func'
1508
1509 name |pg_stat_get_function_calls|total_above_zero|self_above_zero
1510 --------------+--------------------------+----------------+---------------
1511 test_stat_func| 2|t |t
1512 (1 row)
1513
1514 step s1_commit: COMMIT;
1515
1516 starting permutation: s1_track_funcs_all s2_track_funcs_all s1_fetch_consistency_cache s2_func_call s2_func_call2 s2_ff s1_begin s1_func_stats s2_func_call s2_func_call2 s2_ff s1_func_stats s1_func_stats2 s1_commit
1517 pg_stat_force_next_flush
1518 ------------------------
1519
1520 (1 row)
1521
1522 step s1_track_funcs_all: SET track_functions = 'all';
1523 step s2_track_funcs_all: SET track_functions = 'all';
1524 step s1_fetch_consistency_cache: SET stats_fetch_consistency = 'cache';
1525 step s2_func_call: SELECT test_stat_func()
1526 test_stat_func
1527 --------------
1528
1529 (1 row)
1530
1531 step s2_func_call2: SELECT test_stat_func2()
1532 test_stat_func2
1533 ---------------
1534
1535 (1 row)
1536
1537 step s2_ff: SELECT pg_stat_force_next_flush();
1538 pg_stat_force_next_flush
1539 ------------------------
1540
1541 (1 row)
1542
1543 step s1_begin: BEGIN;
1544 step s1_func_stats:
1545 SELECT
1546 tso.name,
1547 pg_stat_get_function_calls(tso.oid),
1548 pg_stat_get_function_total_time(tso.oid) > 0 total_above_zero,
1549 pg_stat_get_function_self_time(tso.oid) > 0 self_above_zero
1550 FROM test_stat_oid AS tso
1551 WHERE tso.name = 'test_stat_func'
1552
1553 name |pg_stat_get_function_calls|total_above_zero|self_above_zero
1554 --------------+--------------------------+----------------+---------------
1555 test_stat_func| 1|t |t
1556 (1 row)
1557
1558 step s2_func_call: SELECT test_stat_func()
1559 test_stat_func
1560 --------------
1561
1562 (1 row)
1563
1564 step s2_func_call2: SELECT test_stat_func2()
1565 test_stat_func2
1566 ---------------
1567
1568 (1 row)
1569
1570 step s2_ff: SELECT pg_stat_force_next_flush();
1571 pg_stat_force_next_flush
1572 ------------------------
1573
1574 (1 row)
1575
1576 step s1_func_stats:
1577 SELECT
1578 tso.name,
1579 pg_stat_get_function_calls(tso.oid),
1580 pg_stat_get_function_total_time(tso.oid) > 0 total_above_zero,
1581 pg_stat_get_function_self_time(tso.oid) > 0 self_above_zero
1582 FROM test_stat_oid AS tso
1583 WHERE tso.name = 'test_stat_func'
1584
1585 name |pg_stat_get_function_calls|total_above_zero|self_above_zero
1586 --------------+--------------------------+----------------+---------------
1587 test_stat_func| 1|t |t
1588 (1 row)
1589
1590 step s1_func_stats2:
1591 SELECT
1592 tso.name,
1593 pg_stat_get_function_calls(tso.oid),
1594 pg_stat_get_function_total_time(tso.oid) > 0 total_above_zero,
1595 pg_stat_get_function_self_time(tso.oid) > 0 self_above_zero
1596 FROM test_stat_oid AS tso
1597 WHERE tso.name = 'test_stat_func2'
1598
1599 name |pg_stat_get_function_calls|total_above_zero|self_above_zero
1600 ---------------+--------------------------+----------------+---------------
1601 test_stat_func2| 2|t |t
1602 (1 row)
1603
1604 step s1_commit: COMMIT;
1605
1606 starting permutation: s1_track_funcs_all s2_track_funcs_all s1_fetch_consistency_snapshot s2_func_call s2_func_call2 s2_ff s1_begin s1_func_stats s2_func_call s2_func_call2 s2_ff s1_func_stats s1_func_stats2 s1_commit
1607 pg_stat_force_next_flush
1608 ------------------------
1609
1610 (1 row)
1611
1612 step s1_track_funcs_all: SET track_functions = 'all';
1613 step s2_track_funcs_all: SET track_functions = 'all';
1614 step s1_fetch_consistency_snapshot: SET stats_fetch_consistency = 'snapshot';
1615 step s2_func_call: SELECT test_stat_func()
1616 test_stat_func
1617 --------------
1618
1619 (1 row)
1620
1621 step s2_func_call2: SELECT test_stat_func2()
1622 test_stat_func2
1623 ---------------
1624
1625 (1 row)
1626
1627 step s2_ff: SELECT pg_stat_force_next_flush();
1628 pg_stat_force_next_flush
1629 ------------------------
1630
1631 (1 row)
1632
1633 step s1_begin: BEGIN;
1634 step s1_func_stats:
1635 SELECT
1636 tso.name,
1637 pg_stat_get_function_calls(tso.oid),
1638 pg_stat_get_function_total_time(tso.oid) > 0 total_above_zero,
1639 pg_stat_get_function_self_time(tso.oid) > 0 self_above_zero
1640 FROM test_stat_oid AS tso
1641 WHERE tso.name = 'test_stat_func'
1642
1643 name |pg_stat_get_function_calls|total_above_zero|self_above_zero
1644 --------------+--------------------------+----------------+---------------
1645 test_stat_func| 1|t |t
1646 (1 row)
1647
1648 step s2_func_call: SELECT test_stat_func()
1649 test_stat_func
1650 --------------
1651
1652 (1 row)
1653
1654 step s2_func_call2: SELECT test_stat_func2()
1655 test_stat_func2
1656 ---------------
1657
1658 (1 row)
1659
1660 step s2_ff: SELECT pg_stat_force_next_flush();
1661 pg_stat_force_next_flush
1662 ------------------------
1663
1664 (1 row)
1665
1666 step s1_func_stats:
1667 SELECT
1668 tso.name,
1669 pg_stat_get_function_calls(tso.oid),
1670 pg_stat_get_function_total_time(tso.oid) > 0 total_above_zero,
1671 pg_stat_get_function_self_time(tso.oid) > 0 self_above_zero
1672 FROM test_stat_oid AS tso
1673 WHERE tso.name = 'test_stat_func'
1674
1675 name |pg_stat_get_function_calls|total_above_zero|self_above_zero
1676 --------------+--------------------------+----------------+---------------
1677 test_stat_func| 1|t |t
1678 (1 row)
1679
1680 step s1_func_stats2:
1681 SELECT
1682 tso.name,
1683 pg_stat_get_function_calls(tso.oid),
1684 pg_stat_get_function_total_time(tso.oid) > 0 total_above_zero,
1685 pg_stat_get_function_self_time(tso.oid) > 0 self_above_zero
1686 FROM test_stat_oid AS tso
1687 WHERE tso.name = 'test_stat_func2'
1688
1689 name |pg_stat_get_function_calls|total_above_zero|self_above_zero
1690 ---------------+--------------------------+----------------+---------------
1691 test_stat_func2| 1|t |t
1692 (1 row)
1693
1694 step s1_commit: COMMIT;
1695
1696 starting permutation: s1_fetch_consistency_none s1_begin s1_func_stats_nonexistent s1_func_stats_nonexistent s1_commit
1697 pg_stat_force_next_flush
1698 ------------------------
1699
1700 (1 row)
1701
1702 step s1_fetch_consistency_none: SET stats_fetch_consistency = 'none';
1703 step s1_begin: BEGIN;
1704 step s1_func_stats_nonexistent:
1705 SELECT pg_stat_get_function_calls(12000);
1706
1707 pg_stat_get_function_calls
1708 --------------------------
1709
1710 (1 row)
1711
1712 step s1_func_stats_nonexistent:
1713 SELECT pg_stat_get_function_calls(12000);
1714
1715 pg_stat_get_function_calls
1716 --------------------------
1717
1718 (1 row)
1719
1720 step s1_commit: COMMIT;
1721
1722 starting permutation: s1_fetch_consistency_cache s1_begin s1_func_stats_nonexistent s1_func_stats_nonexistent s1_commit
1723 pg_stat_force_next_flush
1724 ------------------------
1725
1726 (1 row)
1727
1728 step s1_fetch_consistency_cache: SET stats_fetch_consistency = 'cache';
1729 step s1_begin: BEGIN;
1730 step s1_func_stats_nonexistent:
1731 SELECT pg_stat_get_function_calls(12000);
1732
1733 pg_stat_get_function_calls
1734 --------------------------
1735
1736 (1 row)
1737
1738 step s1_func_stats_nonexistent:
1739 SELECT pg_stat_get_function_calls(12000);
1740
1741 pg_stat_get_function_calls
1742 --------------------------
1743
1744 (1 row)
1745
1746 step s1_commit: COMMIT;
1747
1748 starting permutation: s1_fetch_consistency_snapshot s1_begin s1_func_stats_nonexistent s1_func_stats_nonexistent s1_commit
1749 pg_stat_force_next_flush
1750 ------------------------
1751
1752 (1 row)
1753
1754 step s1_fetch_consistency_snapshot: SET stats_fetch_consistency = 'snapshot';
1755 step s1_begin: BEGIN;
1756 step s1_func_stats_nonexistent:
1757 SELECT pg_stat_get_function_calls(12000);
1758
1759 pg_stat_get_function_calls
1760 --------------------------
1761
1762 (1 row)
1763
1764 step s1_func_stats_nonexistent:
1765 SELECT pg_stat_get_function_calls(12000);
1766
1767 pg_stat_get_function_calls
1768 --------------------------
1769
1770 (1 row)
1771
1772 step s1_commit: COMMIT;
1773
1774 starting permutation: s1_track_funcs_all s2_track_funcs_all s1_begin s1_func_call s2_func_call s1_func_drop s2_func_call s2_ff s1_prepare_a s2_func_call s2_ff s1_func_call s1_ff s1_func_stats s1_commit_prepared_a s1_func_stats
1775 pg_stat_force_next_flush
1776 ------------------------
1777
1778 (1 row)
1779
1780 step s1_track_funcs_all: SET track_functions = 'all';
1781 step s2_track_funcs_all: SET track_functions = 'all';
1782 step s1_begin: BEGIN;
1783 step s1_func_call: SELECT test_stat_func();
1784 test_stat_func
1785 --------------
1786
1787 (1 row)
1788
1789 step s2_func_call: SELECT test_stat_func()
1790 test_stat_func
1791 --------------
1792
1793 (1 row)
1794
1795 step s1_func_drop: DROP FUNCTION test_stat_func();
1796 step s2_func_call: SELECT test_stat_func()
1797 test_stat_func
1798 --------------
1799
1800 (1 row)
1801
1802 step s2_ff: SELECT pg_stat_force_next_flush();
1803 pg_stat_force_next_flush
1804 ------------------------
1805
1806 (1 row)
1807
1808 step s1_prepare_a: PREPARE TRANSACTION 'a';
1809 ERROR: prepared transactions are disabled
1810 step s2_func_call: SELECT test_stat_func()
1811 test_stat_func
1812 --------------
1813
1814 (1 row)
1815
1816 step s2_ff: SELECT pg_stat_force_next_flush();
1817 pg_stat_force_next_flush
1818 ------------------------
1819
1820 (1 row)
1821
1822 step s1_func_call: SELECT test_stat_func();
1823 test_stat_func
1824 --------------
1825
1826 (1 row)
1827
1828 step s1_ff: SELECT pg_stat_force_next_flush();
1829 pg_stat_force_next_flush
1830 ------------------------
1831
1832 (1 row)
1833
1834 step s1_func_stats:
1835 SELECT
1836 tso.name,
1837 pg_stat_get_function_calls(tso.oid),
1838 pg_stat_get_function_total_time(tso.oid) > 0 total_above_zero,
1839 pg_stat_get_function_self_time(tso.oid) > 0 self_above_zero
1840 FROM test_stat_oid AS tso
1841 WHERE tso.name = 'test_stat_func'
1842
1843 name |pg_stat_get_function_calls|total_above_zero|self_above_zero
1844 --------------+--------------------------+----------------+---------------
1845 test_stat_func| 5|t |t
1846 (1 row)
1847
1848 step s1_commit_prepared_a: COMMIT PREPARED 'a';
1849 ERROR: prepared transaction with identifier "a" does not exist
1850 step s1_func_stats:
1851 SELECT
1852 tso.name,
1853 pg_stat_get_function_calls(tso.oid),
1854 pg_stat_get_function_total_time(tso.oid) > 0 total_above_zero,
1855 pg_stat_get_function_self_time(tso.oid) > 0 self_above_zero
1856 FROM test_stat_oid AS tso
1857 WHERE tso.name = 'test_stat_func'
1858
1859 name |pg_stat_get_function_calls|total_above_zero|self_above_zero
1860 --------------+--------------------------+----------------+---------------
1861 test_stat_func| 5|t |t
1862 (1 row)
1863
1864
1865 starting permutation: s1_track_funcs_all s2_track_funcs_all s1_begin s1_func_call s2_func_call s1_func_drop s2_func_call s2_ff s1_prepare_a s2_func_call s2_ff s1_func_call s1_ff s1_func_stats s1_rollback_prepared_a s1_func_stats
1866 pg_stat_force_next_flush
1867 ------------------------
1868
1869 (1 row)
1870
1871 step s1_track_funcs_all: SET track_functions = 'all';
1872 step s2_track_funcs_all: SET track_functions = 'all';
1873 step s1_begin: BEGIN;
1874 step s1_func_call: SELECT test_stat_func();
1875 test_stat_func
1876 --------------
1877
1878 (1 row)
1879
1880 step s2_func_call: SELECT test_stat_func()
1881 test_stat_func
1882 --------------
1883
1884 (1 row)
1885
1886 step s1_func_drop: DROP FUNCTION test_stat_func();
1887 step s2_func_call: SELECT test_stat_func()
1888 test_stat_func
1889 --------------
1890
1891 (1 row)
1892
1893 step s2_ff: SELECT pg_stat_force_next_flush();
1894 pg_stat_force_next_flush
1895 ------------------------
1896
1897 (1 row)
1898
1899 step s1_prepare_a: PREPARE TRANSACTION 'a';
1900 ERROR: prepared transactions are disabled
1901 step s2_func_call: SELECT test_stat_func()
1902 test_stat_func
1903 --------------
1904
1905 (1 row)
1906
1907 step s2_ff: SELECT pg_stat_force_next_flush();
1908 pg_stat_force_next_flush
1909 ------------------------
1910
1911 (1 row)
1912
1913 step s1_func_call: SELECT test_stat_func();
1914 test_stat_func
1915 --------------
1916
1917 (1 row)
1918
1919 step s1_ff: SELECT pg_stat_force_next_flush();
1920 pg_stat_force_next_flush
1921 ------------------------
1922
1923 (1 row)
1924
1925 step s1_func_stats:
1926 SELECT
1927 tso.name,
1928 pg_stat_get_function_calls(tso.oid),
1929 pg_stat_get_function_total_time(tso.oid) > 0 total_above_zero,
1930 pg_stat_get_function_self_time(tso.oid) > 0 self_above_zero
1931 FROM test_stat_oid AS tso
1932 WHERE tso.name = 'test_stat_func'
1933
1934 name |pg_stat_get_function_calls|total_above_zero|self_above_zero
1935 --------------+--------------------------+----------------+---------------
1936 test_stat_func| 5|t |t
1937 (1 row)
1938
1939 step s1_rollback_prepared_a: ROLLBACK PREPARED 'a';
1940 ERROR: prepared transaction with identifier "a" does not exist
1941 step s1_func_stats:
1942 SELECT
1943 tso.name,
1944 pg_stat_get_function_calls(tso.oid),
1945 pg_stat_get_function_total_time(tso.oid) > 0 total_above_zero,
1946 pg_stat_get_function_self_time(tso.oid) > 0 self_above_zero
1947 FROM test_stat_oid AS tso
1948 WHERE tso.name = 'test_stat_func'
1949
1950 name |pg_stat_get_function_calls|total_above_zero|self_above_zero
1951 --------------+--------------------------+----------------+---------------
1952 test_stat_func| 5|t |t
1953 (1 row)
1954
1955
1956 starting permutation: s1_track_funcs_all s2_track_funcs_all s1_begin s1_func_call s2_func_call s1_func_drop s2_func_call s2_ff s1_prepare_a s2_func_call s2_ff s1_func_call s1_ff s1_func_stats s2_commit_prepared_a s1_func_stats
1957 pg_stat_force_next_flush
1958 ------------------------
1959
1960 (1 row)
1961
1962 step s1_track_funcs_all: SET track_functions = 'all';
1963 step s2_track_funcs_all: SET track_functions = 'all';
1964 step s1_begin: BEGIN;
1965 step s1_func_call: SELECT test_stat_func();
1966 test_stat_func
1967 --------------
1968
1969 (1 row)
1970
1971 step s2_func_call: SELECT test_stat_func()
1972 test_stat_func
1973 --------------
1974
1975 (1 row)
1976
1977 step s1_func_drop: DROP FUNCTION test_stat_func();
1978 step s2_func_call: SELECT test_stat_func()
1979 test_stat_func
1980 --------------
1981
1982 (1 row)
1983
1984 step s2_ff: SELECT pg_stat_force_next_flush();
1985 pg_stat_force_next_flush
1986 ------------------------
1987
1988 (1 row)
1989
1990 step s1_prepare_a: PREPARE TRANSACTION 'a';
1991 ERROR: prepared transactions are disabled
1992 step s2_func_call: SELECT test_stat_func()
1993 test_stat_func
1994 --------------
1995
1996 (1 row)
1997
1998 step s2_ff: SELECT pg_stat_force_next_flush();
1999 pg_stat_force_next_flush
2000 ------------------------
2001
2002 (1 row)
2003
2004 step s1_func_call: SELECT test_stat_func();
2005 test_stat_func
2006 --------------
2007
2008 (1 row)
2009
2010 step s1_ff: SELECT pg_stat_force_next_flush();
2011 pg_stat_force_next_flush
2012 ------------------------
2013
2014 (1 row)
2015
2016 step s1_func_stats:
2017 SELECT
2018 tso.name,
2019 pg_stat_get_function_calls(tso.oid),
2020 pg_stat_get_function_total_time(tso.oid) > 0 total_above_zero,
2021 pg_stat_get_function_self_time(tso.oid) > 0 self_above_zero
2022 FROM test_stat_oid AS tso
2023 WHERE tso.name = 'test_stat_func'
2024
2025 name |pg_stat_get_function_calls|total_above_zero|self_above_zero
2026 --------------+--------------------------+----------------+---------------
2027 test_stat_func| 5|t |t
2028 (1 row)
2029
2030 step s2_commit_prepared_a: COMMIT PREPARED 'a';
2031 ERROR: prepared transaction with identifier "a" does not exist
2032 step s1_func_stats:
2033 SELECT
2034 tso.name,
2035 pg_stat_get_function_calls(tso.oid),
2036 pg_stat_get_function_total_time(tso.oid) > 0 total_above_zero,
2037 pg_stat_get_function_self_time(tso.oid) > 0 self_above_zero
2038 FROM test_stat_oid AS tso
2039 WHERE tso.name = 'test_stat_func'
2040
2041 name |pg_stat_get_function_calls|total_above_zero|self_above_zero
2042 --------------+--------------------------+----------------+---------------
2043 test_stat_func| 5|t |t
2044 (1 row)
2045
2046
2047 starting permutation: s1_track_funcs_all s2_track_funcs_all s1_begin s1_func_call s2_func_call s1_func_drop s2_func_call s2_ff s1_prepare_a s2_func_call s2_ff s1_func_call s1_ff s1_func_stats s2_rollback_prepared_a s1_func_stats
2048 pg_stat_force_next_flush
2049 ------------------------
2050
2051 (1 row)
2052
2053 step s1_track_funcs_all: SET track_functions = 'all';
2054 step s2_track_funcs_all: SET track_functions = 'all';
2055 step s1_begin: BEGIN;
2056 step s1_func_call: SELECT test_stat_func();
2057 test_stat_func
2058 --------------
2059
2060 (1 row)
2061
2062 step s2_func_call: SELECT test_stat_func()
2063 test_stat_func
2064 --------------
2065
2066 (1 row)
2067
2068 step s1_func_drop: DROP FUNCTION test_stat_func();
2069 step s2_func_call: SELECT test_stat_func()
2070 test_stat_func
2071 --------------
2072
2073 (1 row)
2074
2075 step s2_ff: SELECT pg_stat_force_next_flush();
2076 pg_stat_force_next_flush
2077 ------------------------
2078
2079 (1 row)
2080
2081 step s1_prepare_a: PREPARE TRANSACTION 'a';
2082 ERROR: prepared transactions are disabled
2083 step s2_func_call: SELECT test_stat_func()
2084 test_stat_func
2085 --------------
2086
2087 (1 row)
2088
2089 step s2_ff: SELECT pg_stat_force_next_flush();
2090 pg_stat_force_next_flush
2091 ------------------------
2092
2093 (1 row)
2094
2095 step s1_func_call: SELECT test_stat_func();
2096 test_stat_func
2097 --------------
2098
2099 (1 row)
2100
2101 step s1_ff: SELECT pg_stat_force_next_flush();
2102 pg_stat_force_next_flush
2103 ------------------------
2104
2105 (1 row)
2106
2107 step s1_func_stats:
2108 SELECT
2109 tso.name,
2110 pg_stat_get_function_calls(tso.oid),
2111 pg_stat_get_function_total_time(tso.oid) > 0 total_above_zero,
2112 pg_stat_get_function_self_time(tso.oid) > 0 self_above_zero
2113 FROM test_stat_oid AS tso
2114 WHERE tso.name = 'test_stat_func'
2115
2116 name |pg_stat_get_function_calls|total_above_zero|self_above_zero
2117 --------------+--------------------------+----------------+---------------
2118 test_stat_func| 5|t |t
2119 (1 row)
2120
2121 step s2_rollback_prepared_a: ROLLBACK PREPARED 'a';
2122 ERROR: prepared transaction with identifier "a" does not exist
2123 step s1_func_stats:
2124 SELECT
2125 tso.name,
2126 pg_stat_get_function_calls(tso.oid),
2127 pg_stat_get_function_total_time(tso.oid) > 0 total_above_zero,
2128 pg_stat_get_function_self_time(tso.oid) > 0 self_above_zero
2129 FROM test_stat_oid AS tso
2130 WHERE tso.name = 'test_stat_func'
2131
2132 name |pg_stat_get_function_calls|total_above_zero|self_above_zero
2133 --------------+--------------------------+----------------+---------------
2134 test_stat_func| 5|t |t
2135 (1 row)
2136
2137
2138 starting permutation: s1_table_select s1_table_insert s2_table_select s2_table_update_k1 s1_ff s2_table_update_k1 s1_table_drop s2_ff s1_table_stats
2139 pg_stat_force_next_flush
2140 ------------------------
2141
2142 (1 row)
2143
2144 step s1_table_select: SELECT * FROM test_stat_tab ORDER BY key, value;
2145 key|value
2146 ---+-----
2147 k0 | 1
2148 (1 row)
2149
2150 step s1_table_insert: INSERT INTO test_stat_tab(key, value) VALUES('k1', 1), ('k2', 1), ('k3', 1);
2151 step s2_table_select: SELECT * FROM test_stat_tab ORDER BY key, value;
2152 key|value
2153 ---+-----
2154 k0 | 1
2155 k1 | 1
2156 k2 | 1
2157 k3 | 1
2158 (4 rows)
2159
2160 step s2_table_update_k1: UPDATE test_stat_tab SET value = value + 1 WHERE key = 'k1';
2161 step s1_ff: SELECT pg_stat_force_next_flush();
2162 pg_stat_force_next_flush
2163 ------------------------
2164
2165 (1 row)
2166
2167 step s2_table_update_k1: UPDATE test_stat_tab SET value = value + 1 WHERE key = 'k1';
2168 step s1_table_drop: DROP TABLE test_stat_tab;
2169 step s2_ff: SELECT pg_stat_force_next_flush();
2170 pg_stat_force_next_flush
2171 ------------------------
2172
2173 (1 row)
2174
2175 step s1_table_stats:
2176 SELECT
2177 pg_stat_get_numscans(tso.oid) AS seq_scan,
2178 pg_stat_get_tuples_returned(tso.oid) AS seq_tup_read,
2179 pg_stat_get_tuples_inserted(tso.oid) AS n_tup_ins,
2180 pg_stat_get_tuples_updated(tso.oid) AS n_tup_upd,
2181 pg_stat_get_tuples_deleted(tso.oid) AS n_tup_del,
2182 pg_stat_get_live_tuples(tso.oid) AS n_live_tup,
2183 pg_stat_get_dead_tuples(tso.oid) AS n_dead_tup,
2184 pg_stat_get_vacuum_count(tso.oid) AS vacuum_count
2185 FROM test_stat_oid AS tso
2186 WHERE tso.name = 'test_stat_tab'
2187
2188 seq_scan|seq_tup_read|n_tup_ins|n_tup_upd|n_tup_del|n_live_tup|n_dead_tup|vacuum_count
2189 --------+------------+---------+---------+---------+----------+----------+------------
2190 0| 0| 0| 0| 0| 0| 0| 0
2191 (1 row)
2192
2193
2194 starting permutation: s1_table_select s1_table_insert s2_table_select s2_table_update_k1 s2_table_update_k1 s1_table_drop s1_table_stats
2195 pg_stat_force_next_flush
2196 ------------------------
2197
2198 (1 row)
2199
2200 step s1_table_select: SELECT * FROM test_stat_tab ORDER BY key, value;
2201 key|value
2202 ---+-----
2203 k0 | 1
2204 (1 row)
2205
2206 step s1_table_insert: INSERT INTO test_stat_tab(key, value) VALUES('k1', 1), ('k2', 1), ('k3', 1);
2207 step s2_table_select: SELECT * FROM test_stat_tab ORDER BY key, value;
2208 key|value
2209 ---+-----
2210 k0 | 1
2211 k1 | 1
2212 k2 | 1
2213 k3 | 1
2214 (4 rows)
2215
2216 step s2_table_update_k1: UPDATE test_stat_tab SET value = value + 1 WHERE key = 'k1';
2217 step s2_table_update_k1: UPDATE test_stat_tab SET value = value + 1 WHERE key = 'k1';
2218 step s1_table_drop: DROP TABLE test_stat_tab;
2219 step s1_table_stats:
2220 SELECT
2221 pg_stat_get_numscans(tso.oid) AS seq_scan,
2222 pg_stat_get_tuples_returned(tso.oid) AS seq_tup_read,
2223 pg_stat_get_tuples_inserted(tso.oid) AS n_tup_ins,
2224 pg_stat_get_tuples_updated(tso.oid) AS n_tup_upd,
2225 pg_stat_get_tuples_deleted(tso.oid) AS n_tup_del,
2226 pg_stat_get_live_tuples(tso.oid) AS n_live_tup,
2227 pg_stat_get_dead_tuples(tso.oid) AS n_dead_tup,
2228 pg_stat_get_vacuum_count(tso.oid) AS vacuum_count
2229 FROM test_stat_oid AS tso
2230 WHERE tso.name = 'test_stat_tab'
2231
2232 seq_scan|seq_tup_read|n_tup_ins|n_tup_upd|n_tup_del|n_live_tup|n_dead_tup|vacuum_count
2233 --------+------------+---------+---------+---------+----------+----------+------------
2234 0| 0| 0| 0| 0| 0| 0| 0
2235 (1 row)
2236
2237
2238 starting permutation: s1_track_counts_off s1_table_stats s1_track_counts_on
2239 pg_stat_force_next_flush
2240 ------------------------
2241
2242 (1 row)
2243
2244 step s1_track_counts_off: SET track_counts = off;
2245 step s1_table_stats:
2246 SELECT
2247 pg_stat_get_numscans(tso.oid) AS seq_scan,
2248 pg_stat_get_tuples_returned(tso.oid) AS seq_tup_read,
2249 pg_stat_get_tuples_inserted(tso.oid) AS n_tup_ins,
2250 pg_stat_get_tuples_updated(tso.oid) AS n_tup_upd,
2251 pg_stat_get_tuples_deleted(tso.oid) AS n_tup_del,
2252 pg_stat_get_live_tuples(tso.oid) AS n_live_tup,
2253 pg_stat_get_dead_tuples(tso.oid) AS n_dead_tup,
2254 pg_stat_get_vacuum_count(tso.oid) AS vacuum_count
2255 FROM test_stat_oid AS tso
2256 WHERE tso.name = 'test_stat_tab'
2257
2258 seq_scan|seq_tup_read|n_tup_ins|n_tup_upd|n_tup_del|n_live_tup|n_dead_tup|vacuum_count
2259 --------+------------+---------+---------+---------+----------+----------+------------
2260 0| 0| 1| 0| 0| 1| 0| 0
2261 (1 row)
2262
2263 step s1_track_counts_on: SET track_counts = on;
2264
2265 starting permutation: s1_table_select s1_track_counts_off s1_ff s1_table_stats s1_track_counts_on
2266 pg_stat_force_next_flush
2267 ------------------------
2268
2269 (1 row)
2270
2271 step s1_table_select: SELECT * FROM test_stat_tab ORDER BY key, value;
2272 key|value
2273 ---+-----
2274 k0 | 1
2275 (1 row)
2276
2277 step s1_track_counts_off: SET track_counts = off;
2278 step s1_ff: SELECT pg_stat_force_next_flush();
2279 pg_stat_force_next_flush
2280 ------------------------
2281
2282 (1 row)
2283
2284 step s1_table_stats:
2285 SELECT
2286 pg_stat_get_numscans(tso.oid) AS seq_scan,
2287 pg_stat_get_tuples_returned(tso.oid) AS seq_tup_read,
2288 pg_stat_get_tuples_inserted(tso.oid) AS n_tup_ins,
2289 pg_stat_get_tuples_updated(tso.oid) AS n_tup_upd,
2290 pg_stat_get_tuples_deleted(tso.oid) AS n_tup_del,
2291 pg_stat_get_live_tuples(tso.oid) AS n_live_tup,
2292 pg_stat_get_dead_tuples(tso.oid) AS n_dead_tup,
2293 pg_stat_get_vacuum_count(tso.oid) AS vacuum_count
2294 FROM test_stat_oid AS tso
2295 WHERE tso.name = 'test_stat_tab'
2296
2297 seq_scan|seq_tup_read|n_tup_ins|n_tup_upd|n_tup_del|n_live_tup|n_dead_tup|vacuum_count
2298 --------+------------+---------+---------+---------+----------+----------+------------
2299 1| 1| 1| 0| 0| 1| 0| 0
2300 (1 row)
2301
2302 step s1_track_counts_on: SET track_counts = on;
2303
2304 starting permutation: s1_table_select s1_ff s1_track_counts_off s1_table_stats s1_track_counts_on
2305 pg_stat_force_next_flush
2306 ------------------------
2307
2308 (1 row)
2309
2310 step s1_table_select: SELECT * FROM test_stat_tab ORDER BY key, value;
2311 key|value
2312 ---+-----
2313 k0 | 1
2314 (1 row)
2315
2316 step s1_ff: SELECT pg_stat_force_next_flush();
2317 pg_stat_force_next_flush
2318 ------------------------
2319
2320 (1 row)
2321
2322 step s1_track_counts_off: SET track_counts = off;
2323 step s1_table_stats:
2324 SELECT
2325 pg_stat_get_numscans(tso.oid) AS seq_scan,
2326 pg_stat_get_tuples_returned(tso.oid) AS seq_tup_read,
2327 pg_stat_get_tuples_inserted(tso.oid) AS n_tup_ins,
2328 pg_stat_get_tuples_updated(tso.oid) AS n_tup_upd,
2329 pg_stat_get_tuples_deleted(tso.oid) AS n_tup_del,
2330 pg_stat_get_live_tuples(tso.oid) AS n_live_tup,
2331 pg_stat_get_dead_tuples(tso.oid) AS n_dead_tup,
2332 pg_stat_get_vacuum_count(tso.oid) AS vacuum_count
2333 FROM test_stat_oid AS tso
2334 WHERE tso.name = 'test_stat_tab'
2335
2336 seq_scan|seq_tup_read|n_tup_ins|n_tup_upd|n_tup_del|n_live_tup|n_dead_tup|vacuum_count
2337 --------+------------+---------+---------+---------+----------+----------+------------
2338 1| 1| 1| 0| 0| 1| 0| 0
2339 (1 row)
2340
2341 step s1_track_counts_on: SET track_counts = on;
2342
2343 starting permutation: s1_track_counts_off s1_table_select s1_table_insert_k1 s1_table_update_k1 s2_table_select s1_track_counts_on s1_ff s2_ff s1_table_stats s1_table_select s1_table_update_k1 s1_ff s1_table_stats
2344 pg_stat_force_next_flush
2345 ------------------------
2346
2347 (1 row)
2348
2349 step s1_track_counts_off: SET track_counts = off;
2350 step s1_table_select: SELECT * FROM test_stat_tab ORDER BY key, value;
2351 key|value
2352 ---+-----
2353 k0 | 1
2354 (1 row)
2355
2356 step s1_table_insert_k1: INSERT INTO test_stat_tab(key, value) VALUES('k1', 1);
2357 step s1_table_update_k1: UPDATE test_stat_tab SET value = value + 1 WHERE key = 'k1';
2358 step s2_table_select: SELECT * FROM test_stat_tab ORDER BY key, value;
2359 key|value
2360 ---+-----
2361 k0 | 1
2362 k1 | 2
2363 (2 rows)
2364
2365 step s1_track_counts_on: SET track_counts = on;
2366 step s1_ff: SELECT pg_stat_force_next_flush();
2367 pg_stat_force_next_flush
2368 ------------------------
2369
2370 (1 row)
2371
2372 step s2_ff: SELECT pg_stat_force_next_flush();
2373 pg_stat_force_next_flush
2374 ------------------------
2375
2376 (1 row)
2377
2378 step s1_table_stats:
2379 SELECT
2380 pg_stat_get_numscans(tso.oid) AS seq_scan,
2381 pg_stat_get_tuples_returned(tso.oid) AS seq_tup_read,
2382 pg_stat_get_tuples_inserted(tso.oid) AS n_tup_ins,
2383 pg_stat_get_tuples_updated(tso.oid) AS n_tup_upd,
2384 pg_stat_get_tuples_deleted(tso.oid) AS n_tup_del,
2385 pg_stat_get_live_tuples(tso.oid) AS n_live_tup,
2386 pg_stat_get_dead_tuples(tso.oid) AS n_dead_tup,
2387 pg_stat_get_vacuum_count(tso.oid) AS vacuum_count
2388 FROM test_stat_oid AS tso
2389 WHERE tso.name = 'test_stat_tab'
2390
2391 seq_scan|seq_tup_read|n_tup_ins|n_tup_upd|n_tup_del|n_live_tup|n_dead_tup|vacuum_count
2392 --------+------------+---------+---------+---------+----------+----------+------------
2393 1| 2| 1| 0| 0| 1| 0| 0
2394 (1 row)
2395
2396 step s1_table_select: SELECT * FROM test_stat_tab ORDER BY key, value;
2397 key|value
2398 ---+-----
2399 k0 | 1
2400 k1 | 2
2401 (2 rows)
2402
2403 step s1_table_update_k1: UPDATE test_stat_tab SET value = value + 1 WHERE key = 'k1';
2404 step s1_ff: SELECT pg_stat_force_next_flush();
2405 pg_stat_force_next_flush
2406 ------------------------
2407
2408 (1 row)
2409
2410 step s1_table_stats:
2411 SELECT
2412 pg_stat_get_numscans(tso.oid) AS seq_scan,
2413 pg_stat_get_tuples_returned(tso.oid) AS seq_tup_read,
2414 pg_stat_get_tuples_inserted(tso.oid) AS n_tup_ins,
2415 pg_stat_get_tuples_updated(tso.oid) AS n_tup_upd,
2416 pg_stat_get_tuples_deleted(tso.oid) AS n_tup_del,
2417 pg_stat_get_live_tuples(tso.oid) AS n_live_tup,
2418 pg_stat_get_dead_tuples(tso.oid) AS n_dead_tup,
2419 pg_stat_get_vacuum_count(tso.oid) AS vacuum_count
2420 FROM test_stat_oid AS tso
2421 WHERE tso.name = 'test_stat_tab'
2422
2423 seq_scan|seq_tup_read|n_tup_ins|n_tup_upd|n_tup_del|n_live_tup|n_dead_tup|vacuum_count
2424 --------+------------+---------+---------+---------+----------+----------+------------
2425 3| 6| 1| 1| 0| 1| 1| 0
2426 (1 row)
2427
2428
2429 starting permutation: s1_table_select s1_table_insert_k1 s1_table_delete_k1 s1_track_counts_off s1_table_select s1_table_insert_k1 s1_table_update_k1 s2_table_select s1_track_counts_on s1_ff s2_ff s1_table_stats s1_table_select s1_table_update_k1 s1_ff s1_table_stats
2430 pg_stat_force_next_flush
2431 ------------------------
2432
2433 (1 row)
2434
2435 step s1_table_select: SELECT * FROM test_stat_tab ORDER BY key, value;
2436 key|value
2437 ---+-----
2438 k0 | 1
2439 (1 row)
2440
2441 step s1_table_insert_k1: INSERT INTO test_stat_tab(key, value) VALUES('k1', 1);
2442 step s1_table_delete_k1: DELETE FROM test_stat_tab WHERE key = 'k1';
2443 step s1_track_counts_off: SET track_counts = off;
2444 step s1_table_select: SELECT * FROM test_stat_tab ORDER BY key, value;
2445 key|value
2446 ---+-----
2447 k0 | 1
2448 (1 row)
2449
2450 step s1_table_insert_k1: INSERT INTO test_stat_tab(key, value) VALUES('k1', 1);
2451 step s1_table_update_k1: UPDATE test_stat_tab SET value = value + 1 WHERE key = 'k1';
2452 step s2_table_select: SELECT * FROM test_stat_tab ORDER BY key, value;
2453 key|value
2454 ---+-----
2455 k0 | 1
2456 k1 | 2
2457 (2 rows)
2458
2459 step s1_track_counts_on: SET track_counts = on;
2460 step s1_ff: SELECT pg_stat_force_next_flush();
2461 pg_stat_force_next_flush
2462 ------------------------
2463
2464 (1 row)
2465
2466 step s2_ff: SELECT pg_stat_force_next_flush();
2467 pg_stat_force_next_flush
2468 ------------------------
2469
2470 (1 row)
2471
2472 step s1_table_stats:
2473 SELECT
2474 pg_stat_get_numscans(tso.oid) AS seq_scan,
2475 pg_stat_get_tuples_returned(tso.oid) AS seq_tup_read,
2476 pg_stat_get_tuples_inserted(tso.oid) AS n_tup_ins,
2477 pg_stat_get_tuples_updated(tso.oid) AS n_tup_upd,
2478 pg_stat_get_tuples_deleted(tso.oid) AS n_tup_del,
2479 pg_stat_get_live_tuples(tso.oid) AS n_live_tup,
2480 pg_stat_get_dead_tuples(tso.oid) AS n_dead_tup,
2481 pg_stat_get_vacuum_count(tso.oid) AS vacuum_count
2482 FROM test_stat_oid AS tso
2483 WHERE tso.name = 'test_stat_tab'
2484
2485 seq_scan|seq_tup_read|n_tup_ins|n_tup_upd|n_tup_del|n_live_tup|n_dead_tup|vacuum_count
2486 --------+------------+---------+---------+---------+----------+----------+------------
2487 3| 5| 2| 0| 1| 1| 1| 0
2488 (1 row)
2489
2490 step s1_table_select: SELECT * FROM test_stat_tab ORDER BY key, value;
2491 key|value
2492 ---+-----
2493 k0 | 1
2494 k1 | 2
2495 (2 rows)
2496
2497 step s1_table_update_k1: UPDATE test_stat_tab SET value = value + 1 WHERE key = 'k1';
2498 step s1_ff: SELECT pg_stat_force_next_flush();
2499 pg_stat_force_next_flush
2500 ------------------------
2501
2502 (1 row)
2503
2504 step s1_table_stats:
2505 SELECT
2506 pg_stat_get_numscans(tso.oid) AS seq_scan,
2507 pg_stat_get_tuples_returned(tso.oid) AS seq_tup_read,
2508 pg_stat_get_tuples_inserted(tso.oid) AS n_tup_ins,
2509 pg_stat_get_tuples_updated(tso.oid) AS n_tup_upd,
2510 pg_stat_get_tuples_deleted(tso.oid) AS n_tup_del,
2511 pg_stat_get_live_tuples(tso.oid) AS n_live_tup,
2512 pg_stat_get_dead_tuples(tso.oid) AS n_dead_tup,
2513 pg_stat_get_vacuum_count(tso.oid) AS vacuum_count
2514 FROM test_stat_oid AS tso
2515 WHERE tso.name = 'test_stat_tab'
2516
2517 seq_scan|seq_tup_read|n_tup_ins|n_tup_upd|n_tup_del|n_live_tup|n_dead_tup|vacuum_count
2518 --------+------------+---------+---------+---------+----------+----------+------------
2519 5| 9| 2| 1| 1| 1| 2| 0
2520 (1 row)
2521
2522
2523 starting permutation: s1_begin s1_table_insert s1_table_update_k1 s1_table_update_k1 s1_table_update_k2 s1_table_update_k2 s1_table_update_k2 s1_table_delete_k1 s1_table_select s1_prepare_a s1_table_select s1_commit_prepared_a s1_table_select s1_ff s1_table_stats
2524 pg_stat_force_next_flush
2525 ------------------------
2526
2527 (1 row)
2528
2529 step s1_begin: BEGIN;
2530 step s1_table_insert: INSERT INTO test_stat_tab(key, value) VALUES('k1', 1), ('k2', 1), ('k3', 1);
2531 step s1_table_update_k1: UPDATE test_stat_tab SET value = value + 1 WHERE key = 'k1';
2532 step s1_table_update_k1: UPDATE test_stat_tab SET value = value + 1 WHERE key = 'k1';
2533 step s1_table_update_k2: UPDATE test_stat_tab SET value = value + 1 WHERE key = 'k2';
2534 step s1_table_update_k2: UPDATE test_stat_tab SET value = value + 1 WHERE key = 'k2';
2535 step s1_table_update_k2: UPDATE test_stat_tab SET value = value + 1 WHERE key = 'k2';
2536 step s1_table_delete_k1: DELETE FROM test_stat_tab WHERE key = 'k1';
2537 step s1_table_select: SELECT * FROM test_stat_tab ORDER BY key, value;
2538 key|value
2539 ---+-----
2540 k0 | 1
2541 k2 | 4
2542 k3 | 1
2543 (3 rows)
2544
2545 step s1_prepare_a: PREPARE TRANSACTION 'a';
2546 ERROR: prepared transactions are disabled
2547 step s1_table_select: SELECT * FROM test_stat_tab ORDER BY key, value;
2548 key|value
2549 ---+-----
2550 k0 | 1
2551 (1 row)
2552
2553 step s1_commit_prepared_a: COMMIT PREPARED 'a';
2554 ERROR: prepared transaction with identifier "a" does not exist
2555 step s1_table_select: SELECT * FROM test_stat_tab ORDER BY key, value;
2556 key|value
2557 ---+-----
2558 k0 | 1
2559 (1 row)
2560
2561 step s1_ff: SELECT pg_stat_force_next_flush();
2562 pg_stat_force_next_flush
2563 ------------------------
2564
2565 (1 row)
2566
2567 step s1_table_stats:
2568 SELECT
2569 pg_stat_get_numscans(tso.oid) AS seq_scan,
2570 pg_stat_get_tuples_returned(tso.oid) AS seq_tup_read,
2571 pg_stat_get_tuples_inserted(tso.oid) AS n_tup_ins,
2572 pg_stat_get_tuples_updated(tso.oid) AS n_tup_upd,
2573 pg_stat_get_tuples_deleted(tso.oid) AS n_tup_del,
2574 pg_stat_get_live_tuples(tso.oid) AS n_live_tup,
2575 pg_stat_get_dead_tuples(tso.oid) AS n_dead_tup,
2576 pg_stat_get_vacuum_count(tso.oid) AS vacuum_count
2577 FROM test_stat_oid AS tso
2578 WHERE tso.name = 'test_stat_tab'
2579
2580 seq_scan|seq_tup_read|n_tup_ins|n_tup_upd|n_tup_del|n_live_tup|n_dead_tup|vacuum_count
2581 --------+------------+---------+---------+---------+----------+----------+------------
2582 9| 29| 4| 5| 1| 1| 8| 0
2583 (1 row)
2584
2585
2586 starting permutation: s1_begin s1_table_insert s1_table_update_k1 s1_table_update_k1 s1_table_update_k2 s1_table_update_k2 s1_table_update_k2 s1_table_delete_k1 s1_table_select s1_prepare_a s1_table_select s2_commit_prepared_a s1_table_select s1_ff s2_ff s1_table_stats
2587 pg_stat_force_next_flush
2588 ------------------------
2589
2590 (1 row)
2591
2592 step s1_begin: BEGIN;
2593 step s1_table_insert: INSERT INTO test_stat_tab(key, value) VALUES('k1', 1), ('k2', 1), ('k3', 1);
2594 step s1_table_update_k1: UPDATE test_stat_tab SET value = value + 1 WHERE key = 'k1';
2595 step s1_table_update_k1: UPDATE test_stat_tab SET value = value + 1 WHERE key = 'k1';
2596 step s1_table_update_k2: UPDATE test_stat_tab SET value = value + 1 WHERE key = 'k2';
2597 step s1_table_update_k2: UPDATE test_stat_tab SET value = value + 1 WHERE key = 'k2';
2598 step s1_table_update_k2: UPDATE test_stat_tab SET value = value + 1 WHERE key = 'k2';
2599 step s1_table_delete_k1: DELETE FROM test_stat_tab WHERE key = 'k1';
2600 step s1_table_select: SELECT * FROM test_stat_tab ORDER BY key, value;
2601 key|value
2602 ---+-----
2603 k0 | 1
2604 k2 | 4
2605 k3 | 1
2606 (3 rows)
2607
2608 step s1_prepare_a: PREPARE TRANSACTION 'a';
2609 ERROR: prepared transactions are disabled
2610 step s1_table_select: SELECT * FROM test_stat_tab ORDER BY key, value;
2611 key|value
2612 ---+-----
2613 k0 | 1
2614 (1 row)
2615
2616 step s2_commit_prepared_a: COMMIT PREPARED 'a';
2617 ERROR: prepared transaction with identifier "a" does not exist
2618 step s1_table_select: SELECT * FROM test_stat_tab ORDER BY key, value;
2619 key|value
2620 ---+-----
2621 k0 | 1
2622 (1 row)
2623
2624 step s1_ff: SELECT pg_stat_force_next_flush();
2625 pg_stat_force_next_flush
2626 ------------------------
2627
2628 (1 row)
2629
2630 step s2_ff: SELECT pg_stat_force_next_flush();
2631 pg_stat_force_next_flush
2632 ------------------------
2633
2634 (1 row)
2635
2636 step s1_table_stats:
2637 SELECT
2638 pg_stat_get_numscans(tso.oid) AS seq_scan,
2639 pg_stat_get_tuples_returned(tso.oid) AS seq_tup_read,
2640 pg_stat_get_tuples_inserted(tso.oid) AS n_tup_ins,
2641 pg_stat_get_tuples_updated(tso.oid) AS n_tup_upd,
2642 pg_stat_get_tuples_deleted(tso.oid) AS n_tup_del,
2643 pg_stat_get_live_tuples(tso.oid) AS n_live_tup,
2644 pg_stat_get_dead_tuples(tso.oid) AS n_dead_tup,
2645 pg_stat_get_vacuum_count(tso.oid) AS vacuum_count
2646 FROM test_stat_oid AS tso
2647 WHERE tso.name = 'test_stat_tab'
2648
2649 seq_scan|seq_tup_read|n_tup_ins|n_tup_upd|n_tup_del|n_live_tup|n_dead_tup|vacuum_count
2650 --------+------------+---------+---------+---------+----------+----------+------------
2651 9| 29| 4| 5| 1| 1| 8| 0
2652 (1 row)
2653
2654
2655 starting permutation: s1_begin s1_table_insert s1_table_update_k1 s1_table_update_k1 s1_table_update_k2 s1_table_update_k2 s1_table_update_k2 s1_table_delete_k1 s1_table_select s1_prepare_a s1_table_select s1_rollback_prepared_a s1_table_select s1_ff s1_table_stats
2656 pg_stat_force_next_flush
2657 ------------------------
2658
2659 (1 row)
2660
2661 step s1_begin: BEGIN;
2662 step s1_table_insert: INSERT INTO test_stat_tab(key, value) VALUES('k1', 1), ('k2', 1), ('k3', 1);
2663 step s1_table_update_k1: UPDATE test_stat_tab SET value = value + 1 WHERE key = 'k1';
2664 step s1_table_update_k1: UPDATE test_stat_tab SET value = value + 1 WHERE key = 'k1';
2665 step s1_table_update_k2: UPDATE test_stat_tab SET value = value + 1 WHERE key = 'k2';
2666 step s1_table_update_k2: UPDATE test_stat_tab SET value = value + 1 WHERE key = 'k2';
2667 step s1_table_update_k2: UPDATE test_stat_tab SET value = value + 1 WHERE key = 'k2';
2668 step s1_table_delete_k1: DELETE FROM test_stat_tab WHERE key = 'k1';
2669 step s1_table_select: SELECT * FROM test_stat_tab ORDER BY key, value;
2670 key|value
2671 ---+-----
2672 k0 | 1
2673 k2 | 4
2674 k3 | 1
2675 (3 rows)
2676
2677 step s1_prepare_a: PREPARE TRANSACTION 'a';
2678 ERROR: prepared transactions are disabled
2679 step s1_table_select: SELECT * FROM test_stat_tab ORDER BY key, value;
2680 key|value
2681 ---+-----
2682 k0 | 1
2683 (1 row)
2684
2685 step s1_rollback_prepared_a: ROLLBACK PREPARED 'a';
2686 ERROR: prepared transaction with identifier "a" does not exist
2687 step s1_table_select: SELECT * FROM test_stat_tab ORDER BY key, value;
2688 key|value
2689 ---+-----
2690 k0 | 1
2691 (1 row)
2692
2693 step s1_ff: SELECT pg_stat_force_next_flush();
2694 pg_stat_force_next_flush
2695 ------------------------
2696
2697 (1 row)
2698
2699 step s1_table_stats:
2700 SELECT
2701 pg_stat_get_numscans(tso.oid) AS seq_scan,
2702 pg_stat_get_tuples_returned(tso.oid) AS seq_tup_read,
2703 pg_stat_get_tuples_inserted(tso.oid) AS n_tup_ins,
2704 pg_stat_get_tuples_updated(tso.oid) AS n_tup_upd,
2705 pg_stat_get_tuples_deleted(tso.oid) AS n_tup_del,
2706 pg_stat_get_live_tuples(tso.oid) AS n_live_tup,
2707 pg_stat_get_dead_tuples(tso.oid) AS n_dead_tup,
2708 pg_stat_get_vacuum_count(tso.oid) AS vacuum_count
2709 FROM test_stat_oid AS tso
2710 WHERE tso.name = 'test_stat_tab'
2711
2712 seq_scan|seq_tup_read|n_tup_ins|n_tup_upd|n_tup_del|n_live_tup|n_dead_tup|vacuum_count
2713 --------+------------+---------+---------+---------+----------+----------+------------
2714 9| 29| 4| 5| 1| 1| 8| 0
2715 (1 row)
2716
2717
2718 starting permutation: s1_begin s1_table_insert s1_table_update_k1 s1_table_update_k1 s1_table_update_k2 s1_table_update_k2 s1_table_update_k2 s1_table_delete_k1 s1_table_select s1_prepare_a s1_table_select s2_rollback_prepared_a s1_table_select s1_ff s2_ff s1_table_stats
2719 pg_stat_force_next_flush
2720 ------------------------
2721
2722 (1 row)
2723
2724 step s1_begin: BEGIN;
2725 step s1_table_insert: INSERT INTO test_stat_tab(key, value) VALUES('k1', 1), ('k2', 1), ('k3', 1);
2726 step s1_table_update_k1: UPDATE test_stat_tab SET value = value + 1 WHERE key = 'k1';
2727 step s1_table_update_k1: UPDATE test_stat_tab SET value = value + 1 WHERE key = 'k1';
2728 step s1_table_update_k2: UPDATE test_stat_tab SET value = value + 1 WHERE key = 'k2';
2729 step s1_table_update_k2: UPDATE test_stat_tab SET value = value + 1 WHERE key = 'k2';
2730 step s1_table_update_k2: UPDATE test_stat_tab SET value = value + 1 WHERE key = 'k2';
2731 step s1_table_delete_k1: DELETE FROM test_stat_tab WHERE key = 'k1';
2732 step s1_table_select: SELECT * FROM test_stat_tab ORDER BY key, value;
2733 key|value
2734 ---+-----
2735 k0 | 1
2736 k2 | 4
2737 k3 | 1
2738 (3 rows)
2739
2740 step s1_prepare_a: PREPARE TRANSACTION 'a';
2741 ERROR: prepared transactions are disabled
2742 step s1_table_select: SELECT * FROM test_stat_tab ORDER BY key, value;
2743 key|value
2744 ---+-----
2745 k0 | 1
2746 (1 row)
2747
2748 step s2_rollback_prepared_a: ROLLBACK PREPARED 'a';
2749 ERROR: prepared transaction with identifier "a" does not exist
2750 step s1_table_select: SELECT * FROM test_stat_tab ORDER BY key, value;
2751 key|value
2752 ---+-----
2753 k0 | 1
2754 (1 row)
2755
2756 step s1_ff: SELECT pg_stat_force_next_flush();
2757 pg_stat_force_next_flush
2758 ------------------------
2759
2760 (1 row)
2761
2762 step s2_ff: SELECT pg_stat_force_next_flush();
2763 pg_stat_force_next_flush
2764 ------------------------
2765
2766 (1 row)
2767
2768 step s1_table_stats:
2769 SELECT
2770 pg_stat_get_numscans(tso.oid) AS seq_scan,
2771 pg_stat_get_tuples_returned(tso.oid) AS seq_tup_read,
2772 pg_stat_get_tuples_inserted(tso.oid) AS n_tup_ins,
2773 pg_stat_get_tuples_updated(tso.oid) AS n_tup_upd,
2774 pg_stat_get_tuples_deleted(tso.oid) AS n_tup_del,
2775 pg_stat_get_live_tuples(tso.oid) AS n_live_tup,
2776 pg_stat_get_dead_tuples(tso.oid) AS n_dead_tup,
2777 pg_stat_get_vacuum_count(tso.oid) AS vacuum_count
2778 FROM test_stat_oid AS tso
2779 WHERE tso.name = 'test_stat_tab'
2780
2781 seq_scan|seq_tup_read|n_tup_ins|n_tup_upd|n_tup_del|n_live_tup|n_dead_tup|vacuum_count
2782 --------+------------+---------+---------+---------+----------+----------+------------
2783 9| 29| 4| 5| 1| 1| 8| 0
2784 (1 row)
2785
2786
2787 starting permutation: s1_table_insert s1_begin s1_table_update_k1 s1_table_update_k1 s1_table_truncate s1_table_insert_k1 s1_table_update_k1 s1_prepare_a s1_commit_prepared_a s1_ff s1_table_stats
2788 pg_stat_force_next_flush
2789 ------------------------
2790
2791 (1 row)
2792
2793 step s1_table_insert: INSERT INTO test_stat_tab(key, value) VALUES('k1', 1), ('k2', 1), ('k3', 1);
2794 step s1_begin: BEGIN;
2795 step s1_table_update_k1: UPDATE test_stat_tab SET value = value + 1 WHERE key = 'k1';
2796 step s1_table_update_k1: UPDATE test_stat_tab SET value = value + 1 WHERE key = 'k1';
2797 step s1_table_truncate: TRUNCATE test_stat_tab;
2798 step s1_table_insert_k1: INSERT INTO test_stat_tab(key, value) VALUES('k1', 1);
2799 step s1_table_update_k1: UPDATE test_stat_tab SET value = value + 1 WHERE key = 'k1';
2800 step s1_prepare_a: PREPARE TRANSACTION 'a';
2801 ERROR: prepared transactions are disabled
2802 step s1_commit_prepared_a: COMMIT PREPARED 'a';
2803 ERROR: prepared transaction with identifier "a" does not exist
2804 step s1_ff: SELECT pg_stat_force_next_flush();
2805 pg_stat_force_next_flush
2806 ------------------------
2807
2808 (1 row)
2809
2810 step s1_table_stats:
2811 SELECT
2812 pg_stat_get_numscans(tso.oid) AS seq_scan,
2813 pg_stat_get_tuples_returned(tso.oid) AS seq_tup_read,
2814 pg_stat_get_tuples_inserted(tso.oid) AS n_tup_ins,
2815 pg_stat_get_tuples_updated(tso.oid) AS n_tup_upd,
2816 pg_stat_get_tuples_deleted(tso.oid) AS n_tup_del,
2817 pg_stat_get_live_tuples(tso.oid) AS n_live_tup,
2818 pg_stat_get_dead_tuples(tso.oid) AS n_dead_tup,
2819 pg_stat_get_vacuum_count(tso.oid) AS vacuum_count
2820 FROM test_stat_oid AS tso
2821 WHERE tso.name = 'test_stat_tab'
2822
2823 seq_scan|seq_tup_read|n_tup_ins|n_tup_upd|n_tup_del|n_live_tup|n_dead_tup|vacuum_count
2824 --------+------------+---------+---------+---------+----------+----------+------------
2825 3| 9| 4| 2| 0| 4| 2| 0
2826 (1 row)
2827
2828
2829 starting permutation: s1_table_insert s1_begin s1_table_update_k1 s1_table_update_k1 s1_table_truncate s1_table_insert_k1 s1_table_update_k1 s1_prepare_a s1_ff s2_commit_prepared_a s2_ff s1_table_stats
2830 pg_stat_force_next_flush
2831 ------------------------
2832
2833 (1 row)
2834
2835 step s1_table_insert: INSERT INTO test_stat_tab(key, value) VALUES('k1', 1), ('k2', 1), ('k3', 1);
2836 step s1_begin: BEGIN;
2837 step s1_table_update_k1: UPDATE test_stat_tab SET value = value + 1 WHERE key = 'k1';
2838 step s1_table_update_k1: UPDATE test_stat_tab SET value = value + 1 WHERE key = 'k1';
2839 step s1_table_truncate: TRUNCATE test_stat_tab;
2840 step s1_table_insert_k1: INSERT INTO test_stat_tab(key, value) VALUES('k1', 1);
2841 step s1_table_update_k1: UPDATE test_stat_tab SET value = value + 1 WHERE key = 'k1';
2842 step s1_prepare_a: PREPARE TRANSACTION 'a';
2843 ERROR: prepared transactions are disabled
2844 step s1_ff: SELECT pg_stat_force_next_flush();
2845 pg_stat_force_next_flush
2846 ------------------------
2847
2848 (1 row)
2849
2850 step s2_commit_prepared_a: COMMIT PREPARED 'a';
2851 ERROR: prepared transaction with identifier "a" does not exist
2852 step s2_ff: SELECT pg_stat_force_next_flush();
2853 pg_stat_force_next_flush
2854 ------------------------
2855
2856 (1 row)
2857
2858 step s1_table_stats:
2859 SELECT
2860 pg_stat_get_numscans(tso.oid) AS seq_scan,
2861 pg_stat_get_tuples_returned(tso.oid) AS seq_tup_read,
2862 pg_stat_get_tuples_inserted(tso.oid) AS n_tup_ins,
2863 pg_stat_get_tuples_updated(tso.oid) AS n_tup_upd,
2864 pg_stat_get_tuples_deleted(tso.oid) AS n_tup_del,
2865 pg_stat_get_live_tuples(tso.oid) AS n_live_tup,
2866 pg_stat_get_dead_tuples(tso.oid) AS n_dead_tup,
2867 pg_stat_get_vacuum_count(tso.oid) AS vacuum_count
2868 FROM test_stat_oid AS tso
2869 WHERE tso.name = 'test_stat_tab'
2870
2871 seq_scan|seq_tup_read|n_tup_ins|n_tup_upd|n_tup_del|n_live_tup|n_dead_tup|vacuum_count
2872 --------+------------+---------+---------+---------+----------+----------+------------
2873 3| 9| 4| 2| 0| 4| 2| 0
2874 (1 row)
2875
2876
2877 starting permutation: s1_table_insert s1_begin s1_table_update_k1 s1_table_update_k1 s1_table_truncate s1_table_insert_k1 s1_table_update_k1 s1_prepare_a s1_rollback_prepared_a s1_ff s1_table_stats
2878 pg_stat_force_next_flush
2879 ------------------------
2880
2881 (1 row)
2882
2883 step s1_table_insert: INSERT INTO test_stat_tab(key, value) VALUES('k1', 1), ('k2', 1), ('k3', 1);
2884 step s1_begin: BEGIN;
2885 step s1_table_update_k1: UPDATE test_stat_tab SET value = value + 1 WHERE key = 'k1';
2886 step s1_table_update_k1: UPDATE test_stat_tab SET value = value + 1 WHERE key = 'k1';
2887 step s1_table_truncate: TRUNCATE test_stat_tab;
2888 step s1_table_insert_k1: INSERT INTO test_stat_tab(key, value) VALUES('k1', 1);
2889 step s1_table_update_k1: UPDATE test_stat_tab SET value = value + 1 WHERE key = 'k1';
2890 step s1_prepare_a: PREPARE TRANSACTION 'a';
2891 ERROR: prepared transactions are disabled
2892 step s1_rollback_prepared_a: ROLLBACK PREPARED 'a';
2893 ERROR: prepared transaction with identifier "a" does not exist
2894 step s1_ff: SELECT pg_stat_force_next_flush();
2895 pg_stat_force_next_flush
2896 ------------------------
2897
2898 (1 row)
2899
2900 step s1_table_stats:
2901 SELECT
2902 pg_stat_get_numscans(tso.oid) AS seq_scan,
2903 pg_stat_get_tuples_returned(tso.oid) AS seq_tup_read,
2904 pg_stat_get_tuples_inserted(tso.oid) AS n_tup_ins,
2905 pg_stat_get_tuples_updated(tso.oid) AS n_tup_upd,
2906 pg_stat_get_tuples_deleted(tso.oid) AS n_tup_del,
2907 pg_stat_get_live_tuples(tso.oid) AS n_live_tup,
2908 pg_stat_get_dead_tuples(tso.oid) AS n_dead_tup,
2909 pg_stat_get_vacuum_count(tso.oid) AS vacuum_count
2910 FROM test_stat_oid AS tso
2911 WHERE tso.name = 'test_stat_tab'
2912
2913 seq_scan|seq_tup_read|n_tup_ins|n_tup_upd|n_tup_del|n_live_tup|n_dead_tup|vacuum_count
2914 --------+------------+---------+---------+---------+----------+----------+------------
2915 3| 9| 4| 2| 0| 4| 2| 0
2916 (1 row)
2917
2918
2919 starting permutation: s1_table_insert s1_begin s1_table_update_k1 s1_table_update_k1 s1_table_truncate s1_table_insert_k1 s1_table_update_k1 s1_prepare_a s2_rollback_prepared_a s1_ff s2_ff s1_table_stats
2920 pg_stat_force_next_flush
2921 ------------------------
2922
2923 (1 row)
2924
2925 step s1_table_insert: INSERT INTO test_stat_tab(key, value) VALUES('k1', 1), ('k2', 1), ('k3', 1);
2926 step s1_begin: BEGIN;
2927 step s1_table_update_k1: UPDATE test_stat_tab SET value = value + 1 WHERE key = 'k1';
2928 step s1_table_update_k1: UPDATE test_stat_tab SET value = value + 1 WHERE key = 'k1';
2929 step s1_table_truncate: TRUNCATE test_stat_tab;
2930 step s1_table_insert_k1: INSERT INTO test_stat_tab(key, value) VALUES('k1', 1);
2931 step s1_table_update_k1: UPDATE test_stat_tab SET value = value + 1 WHERE key = 'k1';
2932 step s1_prepare_a: PREPARE TRANSACTION 'a';
2933 ERROR: prepared transactions are disabled
2934 step s2_rollback_prepared_a: ROLLBACK PREPARED 'a';
2935 ERROR: prepared transaction with identifier "a" does not exist
2936 step s1_ff: SELECT pg_stat_force_next_flush();
2937 pg_stat_force_next_flush
2938 ------------------------
2939
2940 (1 row)
2941
2942 step s2_ff: SELECT pg_stat_force_next_flush();
2943 pg_stat_force_next_flush
2944 ------------------------
2945
2946 (1 row)
2947
2948 step s1_table_stats:
2949 SELECT
2950 pg_stat_get_numscans(tso.oid) AS seq_scan,
2951 pg_stat_get_tuples_returned(tso.oid) AS seq_tup_read,
2952 pg_stat_get_tuples_inserted(tso.oid) AS n_tup_ins,
2953 pg_stat_get_tuples_updated(tso.oid) AS n_tup_upd,
2954 pg_stat_get_tuples_deleted(tso.oid) AS n_tup_del,
2955 pg_stat_get_live_tuples(tso.oid) AS n_live_tup,
2956 pg_stat_get_dead_tuples(tso.oid) AS n_dead_tup,
2957 pg_stat_get_vacuum_count(tso.oid) AS vacuum_count
2958 FROM test_stat_oid AS tso
2959 WHERE tso.name = 'test_stat_tab'
2960
2961 seq_scan|seq_tup_read|n_tup_ins|n_tup_upd|n_tup_del|n_live_tup|n_dead_tup|vacuum_count
2962 --------+------------+---------+---------+---------+----------+----------+------------
2963 3| 9| 4| 2| 0| 4| 2| 0
2964 (1 row)
2965
2966
2967 starting permutation: s1_table_insert s1_table_update_k1 s1_begin s1_table_delete_k1 s1_table_insert_k1 s1_table_update_k1 s1_table_update_k1 s1_table_drop s1_prepare_a s1_rollback_prepared_a s1_ff s1_table_stats
2968 pg_stat_force_next_flush
2969 ------------------------
2970
2971 (1 row)
2972
2973 step s1_table_insert: INSERT INTO test_stat_tab(key, value) VALUES('k1', 1), ('k2', 1), ('k3', 1);
2974 step s1_table_update_k1: UPDATE test_stat_tab SET value = value + 1 WHERE key = 'k1';
2975 step s1_begin: BEGIN;
2976 step s1_table_delete_k1: DELETE FROM test_stat_tab WHERE key = 'k1';
2977 step s1_table_insert_k1: INSERT INTO test_stat_tab(key, value) VALUES('k1', 1);
2978 step s1_table_update_k1: UPDATE test_stat_tab SET value = value + 1 WHERE key = 'k1';
2979 step s1_table_update_k1: UPDATE test_stat_tab SET value = value + 1 WHERE key = 'k1';
2980 step s1_table_drop: DROP TABLE test_stat_tab;
2981 step s1_prepare_a: PREPARE TRANSACTION 'a';
2982 ERROR: prepared transactions are disabled
2983 step s1_rollback_prepared_a: ROLLBACK PREPARED 'a';
2984 ERROR: prepared transaction with identifier "a" does not exist
2985 step s1_ff: SELECT pg_stat_force_next_flush();
2986 pg_stat_force_next_flush
2987 ------------------------
2988
2989 (1 row)
2990
2991 step s1_table_stats:
2992 SELECT
2993 pg_stat_get_numscans(tso.oid) AS seq_scan,
2994 pg_stat_get_tuples_returned(tso.oid) AS seq_tup_read,
2995 pg_stat_get_tuples_inserted(tso.oid) AS n_tup_ins,
2996 pg_stat_get_tuples_updated(tso.oid) AS n_tup_upd,
2997 pg_stat_get_tuples_deleted(tso.oid) AS n_tup_del,
2998 pg_stat_get_live_tuples(tso.oid) AS n_live_tup,
2999 pg_stat_get_dead_tuples(tso.oid) AS n_dead_tup,
3000 pg_stat_get_vacuum_count(tso.oid) AS vacuum_count
3001 FROM test_stat_oid AS tso
3002 WHERE tso.name = 'test_stat_tab'
3003
3004 seq_scan|seq_tup_read|n_tup_ins|n_tup_upd|n_tup_del|n_live_tup|n_dead_tup|vacuum_count
3005 --------+------------+---------+---------+---------+----------+----------+------------
3006 4| 16| 5| 3| 1| 4| 4| 0
3007 (1 row)
3008
3009
3010 starting permutation: s1_table_insert s1_table_update_k1 s1_begin s1_table_delete_k1 s1_table_insert_k1 s1_table_update_k1 s1_table_update_k1 s1_table_drop s1_prepare_a s2_rollback_prepared_a s1_ff s2_ff s1_table_stats
3011 pg_stat_force_next_flush
3012 ------------------------
3013
3014 (1 row)
3015
3016 step s1_table_insert: INSERT INTO test_stat_tab(key, value) VALUES('k1', 1), ('k2', 1), ('k3', 1);
3017 step s1_table_update_k1: UPDATE test_stat_tab SET value = value + 1 WHERE key = 'k1';
3018 step s1_begin: BEGIN;
3019 step s1_table_delete_k1: DELETE FROM test_stat_tab WHERE key = 'k1';
3020 step s1_table_insert_k1: INSERT INTO test_stat_tab(key, value) VALUES('k1', 1);
3021 step s1_table_update_k1: UPDATE test_stat_tab SET value = value + 1 WHERE key = 'k1';
3022 step s1_table_update_k1: UPDATE test_stat_tab SET value = value + 1 WHERE key = 'k1';
3023 step s1_table_drop: DROP TABLE test_stat_tab;
3024 step s1_prepare_a: PREPARE TRANSACTION 'a';
3025 ERROR: prepared transactions are disabled
3026 step s2_rollback_prepared_a: ROLLBACK PREPARED 'a';
3027 ERROR: prepared transaction with identifier "a" does not exist
3028 step s1_ff: SELECT pg_stat_force_next_flush();
3029 pg_stat_force_next_flush
3030 ------------------------
3031
3032 (1 row)
3033
3034 step s2_ff: SELECT pg_stat_force_next_flush();
3035 pg_stat_force_next_flush
3036 ------------------------
3037
3038 (1 row)
3039
3040 step s1_table_stats:
3041 SELECT
3042 pg_stat_get_numscans(tso.oid) AS seq_scan,
3043 pg_stat_get_tuples_returned(tso.oid) AS seq_tup_read,
3044 pg_stat_get_tuples_inserted(tso.oid) AS n_tup_ins,
3045 pg_stat_get_tuples_updated(tso.oid) AS n_tup_upd,
3046 pg_stat_get_tuples_deleted(tso.oid) AS n_tup_del,
3047 pg_stat_get_live_tuples(tso.oid) AS n_live_tup,
3048 pg_stat_get_dead_tuples(tso.oid) AS n_dead_tup,
3049 pg_stat_get_vacuum_count(tso.oid) AS vacuum_count
3050 FROM test_stat_oid AS tso
3051 WHERE tso.name = 'test_stat_tab'
3052
3053 seq_scan|seq_tup_read|n_tup_ins|n_tup_upd|n_tup_del|n_live_tup|n_dead_tup|vacuum_count
3054 --------+------------+---------+---------+---------+----------+----------+------------
3055 4| 16| 5| 3| 1| 4| 4| 0
3056 (1 row)
3057
3058
3059 starting permutation: s1_slru_save_stats s1_listen s1_begin s1_big_notify s1_ff s1_slru_check_stats s1_commit s1_slru_check_stats
3060 pg_stat_force_next_flush
3061 ------------------------
3062
3063 (1 row)
3064
3065 step s1_slru_save_stats:
3066 INSERT INTO test_slru_stats VALUES('notify', 'blks_zeroed',
3067 (SELECT blks_zeroed FROM pg_stat_slru WHERE name = 'notify'));
3068
3069 step s1_listen: LISTEN stats_test_nothing;
3070 step s1_begin: BEGIN;
3071 step s1_big_notify: SELECT pg_notify('stats_test_use',
3072 repeat(i::text, current_setting('block_size')::int / 2)) FROM generate_series(1, 3) g(i);
3073
3074 pg_notify
3075 ---------
3076
3077
3078
3079 (3 rows)
3080
3081 step s1_ff: SELECT pg_stat_force_next_flush();
3082 pg_stat_force_next_flush
3083 ------------------------
3084
3085 (1 row)
3086
3087 step s1_slru_check_stats:
3088 SELECT current.blks_zeroed > before.value
3089 FROM test_slru_stats before
3090 INNER JOIN pg_stat_slru current
3091 ON before.slru = current.name
3092 WHERE before.stat = 'blks_zeroed';
3093
3094 ?column?
3095 --------
3096 f
3097 (1 row)
3098
3099 step s1_commit: COMMIT;
3100 step s1_slru_check_stats:
3101 SELECT current.blks_zeroed > before.value
3102 FROM test_slru_stats before
3103 INNER JOIN pg_stat_slru current
3104 ON before.slru = current.name
3105 WHERE before.stat = 'blks_zeroed';
3106
3107 ?column?
3108 --------
3109 t
3110 (1 row)
3111
3112
3113 starting permutation: s1_slru_save_stats s1_listen s2_big_notify s2_ff s1_slru_check_stats
3114 pg_stat_force_next_flush
3115 ------------------------
3116
3117 (1 row)
3118
3119 step s1_slru_save_stats:
3120 INSERT INTO test_slru_stats VALUES('notify', 'blks_zeroed',
3121 (SELECT blks_zeroed FROM pg_stat_slru WHERE name = 'notify'));
3122
3123 step s1_listen: LISTEN stats_test_nothing;
3124 step s2_big_notify: SELECT pg_notify('stats_test_use',
3125 repeat(i::text, current_setting('block_size')::int / 2)) FROM generate_series(1, 3) g(i);
3126
3127 pg_notify
3128 ---------
3129
3130
3131
3132 (3 rows)
3133
3134 step s2_ff: SELECT pg_stat_force_next_flush();
3135 pg_stat_force_next_flush
3136 ------------------------
3137
3138 (1 row)
3139
3140 step s1_slru_check_stats:
3141 SELECT current.blks_zeroed > before.value
3142 FROM test_slru_stats before
3143 INNER JOIN pg_stat_slru current
3144 ON before.slru = current.name
3145 WHERE before.stat = 'blks_zeroed';
3146
3147 ?column?
3148 --------
3149 t
3150 (1 row)
3151
3152
3153 starting permutation: s1_slru_save_stats s1_listen s2_begin s2_big_notify s2_ff s1_slru_check_stats s2_commit
3154 pg_stat_force_next_flush
3155 ------------------------
3156
3157 (1 row)
3158
3159 step s1_slru_save_stats:
3160 INSERT INTO test_slru_stats VALUES('notify', 'blks_zeroed',
3161 (SELECT blks_zeroed FROM pg_stat_slru WHERE name = 'notify'));
3162
3163 step s1_listen: LISTEN stats_test_nothing;
3164 step s2_begin: BEGIN;
3165 step s2_big_notify: SELECT pg_notify('stats_test_use',
3166 repeat(i::text, current_setting('block_size')::int / 2)) FROM generate_series(1, 3) g(i);
3167
3168 pg_notify
3169 ---------
3170
3171
3172
3173 (3 rows)
3174
3175 step s2_ff: SELECT pg_stat_force_next_flush();
3176 pg_stat_force_next_flush
3177 ------------------------
3178
3179 (1 row)
3180
3181 step s1_slru_check_stats:
3182 SELECT current.blks_zeroed > before.value
3183 FROM test_slru_stats before
3184 INNER JOIN pg_stat_slru current
3185 ON before.slru = current.name
3186 WHERE before.stat = 'blks_zeroed';
3187
3188 ?column?
3189 --------
3190 f
3191 (1 row)
3192
3193 step s2_commit: COMMIT;
3194
3195 starting permutation: s1_fetch_consistency_none s1_slru_save_stats s1_listen s1_begin s1_slru_check_stats s2_big_notify s2_ff s1_slru_check_stats s1_commit s1_slru_check_stats
3196 pg_stat_force_next_flush
3197 ------------------------
3198
3199 (1 row)
3200
3201 step s1_fetch_consistency_none: SET stats_fetch_consistency = 'none';
3202 step s1_slru_save_stats:
3203 INSERT INTO test_slru_stats VALUES('notify', 'blks_zeroed',
3204 (SELECT blks_zeroed FROM pg_stat_slru WHERE name = 'notify'));
3205
3206 step s1_listen: LISTEN stats_test_nothing;
3207 step s1_begin: BEGIN;
3208 step s1_slru_check_stats:
3209 SELECT current.blks_zeroed > before.value
3210 FROM test_slru_stats before
3211 INNER JOIN pg_stat_slru current
3212 ON before.slru = current.name
3213 WHERE before.stat = 'blks_zeroed';
3214
3215 ?column?
3216 --------
3217 f
3218 (1 row)
3219
3220 step s2_big_notify: SELECT pg_notify('stats_test_use',
3221 repeat(i::text, current_setting('block_size')::int / 2)) FROM generate_series(1, 3) g(i);
3222
3223 pg_notify
3224 ---------
3225
3226
3227
3228 (3 rows)
3229
3230 step s2_ff: SELECT pg_stat_force_next_flush();
3231 pg_stat_force_next_flush
3232 ------------------------
3233
3234 (1 row)
3235
3236 step s1_slru_check_stats:
3237 SELECT current.blks_zeroed > before.value
3238 FROM test_slru_stats before
3239 INNER JOIN pg_stat_slru current
3240 ON before.slru = current.name
3241 WHERE before.stat = 'blks_zeroed';
3242
3243 ?column?
3244 --------
3245 t
3246 (1 row)
3247
3248 step s1_commit: COMMIT;
3249 step s1_slru_check_stats:
3250 SELECT current.blks_zeroed > before.value
3251 FROM test_slru_stats before
3252 INNER JOIN pg_stat_slru current
3253 ON before.slru = current.name
3254 WHERE before.stat = 'blks_zeroed';
3255
3256 ?column?
3257 --------
3258 t
3259 (1 row)
3260
3261
3262 starting permutation: s1_fetch_consistency_cache s1_slru_save_stats s1_listen s1_begin s1_slru_check_stats s2_big_notify s2_ff s1_slru_check_stats s1_commit s1_slru_check_stats
3263 pg_stat_force_next_flush
3264 ------------------------
3265
3266 (1 row)
3267
3268 step s1_fetch_consistency_cache: SET stats_fetch_consistency = 'cache';
3269 step s1_slru_save_stats:
3270 INSERT INTO test_slru_stats VALUES('notify', 'blks_zeroed',
3271 (SELECT blks_zeroed FROM pg_stat_slru WHERE name = 'notify'));
3272
3273 step s1_listen: LISTEN stats_test_nothing;
3274 step s1_begin: BEGIN;
3275 step s1_slru_check_stats:
3276 SELECT current.blks_zeroed > before.value
3277 FROM test_slru_stats before
3278 INNER JOIN pg_stat_slru current
3279 ON before.slru = current.name
3280 WHERE before.stat = 'blks_zeroed';
3281
3282 ?column?
3283 --------
3284 f
3285 (1 row)
3286
3287 step s2_big_notify: SELECT pg_notify('stats_test_use',
3288 repeat(i::text, current_setting('block_size')::int / 2)) FROM generate_series(1, 3) g(i);
3289
3290 pg_notify
3291 ---------
3292
3293
3294
3295 (3 rows)
3296
3297 step s2_ff: SELECT pg_stat_force_next_flush();
3298 pg_stat_force_next_flush
3299 ------------------------
3300
3301 (1 row)
3302
3303 step s1_slru_check_stats:
3304 SELECT current.blks_zeroed > before.value
3305 FROM test_slru_stats before
3306 INNER JOIN pg_stat_slru current
3307 ON before.slru = current.name
3308 WHERE before.stat = 'blks_zeroed';
3309
3310 ?column?
3311 --------
3312 f
3313 (1 row)
3314
3315 step s1_commit: COMMIT;
3316 step s1_slru_check_stats:
3317 SELECT current.blks_zeroed > before.value
3318 FROM test_slru_stats before
3319 INNER JOIN pg_stat_slru current
3320 ON before.slru = current.name
3321 WHERE before.stat = 'blks_zeroed';
3322
3323 ?column?
3324 --------
3325 t
3326 (1 row)
3327
3328
3329 starting permutation: s1_fetch_consistency_snapshot s1_slru_save_stats s1_listen s1_begin s1_slru_check_stats s2_big_notify s2_ff s1_slru_check_stats s1_commit s1_slru_check_stats
3330 pg_stat_force_next_flush
3331 ------------------------
3332
3333 (1 row)
3334
3335 step s1_fetch_consistency_snapshot: SET stats_fetch_consistency = 'snapshot';
3336 step s1_slru_save_stats:
3337 INSERT INTO test_slru_stats VALUES('notify', 'blks_zeroed',
3338 (SELECT blks_zeroed FROM pg_stat_slru WHERE name = 'notify'));
3339
3340 step s1_listen: LISTEN stats_test_nothing;
3341 step s1_begin: BEGIN;
3342 step s1_slru_check_stats:
3343 SELECT current.blks_zeroed > before.value
3344 FROM test_slru_stats before
3345 INNER JOIN pg_stat_slru current
3346 ON before.slru = current.name
3347 WHERE before.stat = 'blks_zeroed';
3348
3349 ?column?
3350 --------
3351 f
3352 (1 row)
3353
3354 step s2_big_notify: SELECT pg_notify('stats_test_use',
3355 repeat(i::text, current_setting('block_size')::int / 2)) FROM generate_series(1, 3) g(i);
3356
3357 pg_notify
3358 ---------
3359
3360
3361
3362 (3 rows)
3363
3364 step s2_ff: SELECT pg_stat_force_next_flush();
3365 pg_stat_force_next_flush
3366 ------------------------
3367
3368 (1 row)
3369
3370 step s1_slru_check_stats:
3371 SELECT current.blks_zeroed > before.value
3372 FROM test_slru_stats before
3373 INNER JOIN pg_stat_slru current
3374 ON before.slru = current.name
3375 WHERE before.stat = 'blks_zeroed';
3376
3377 ?column?
3378 --------
3379 f
3380 (1 row)
3381
3382 step s1_commit: COMMIT;
3383 step s1_slru_check_stats:
3384 SELECT current.blks_zeroed > before.value
3385 FROM test_slru_stats before
3386 INNER JOIN pg_stat_slru current
3387 ON before.slru = current.name
3388 WHERE before.stat = 'blks_zeroed';
3389
3390 ?column?
3391 --------
3392 t
3393 (1 row)
3394
3395
3396 starting permutation: s1_fetch_consistency_none s1_slru_save_stats s1_listen s1_begin s1_slru_check_stats s2_big_notify s2_ff s1_slru_check_stats s1_clear_snapshot s1_slru_check_stats s1_commit
3397 pg_stat_force_next_flush
3398 ------------------------
3399
3400 (1 row)
3401
3402 step s1_fetch_consistency_none: SET stats_fetch_consistency = 'none';
3403 step s1_slru_save_stats:
3404 INSERT INTO test_slru_stats VALUES('notify', 'blks_zeroed',
3405 (SELECT blks_zeroed FROM pg_stat_slru WHERE name = 'notify'));
3406
3407 step s1_listen: LISTEN stats_test_nothing;
3408 step s1_begin: BEGIN;
3409 step s1_slru_check_stats:
3410 SELECT current.blks_zeroed > before.value
3411 FROM test_slru_stats before
3412 INNER JOIN pg_stat_slru current
3413 ON before.slru = current.name
3414 WHERE before.stat = 'blks_zeroed';
3415
3416 ?column?
3417 --------
3418 f
3419 (1 row)
3420
3421 step s2_big_notify: SELECT pg_notify('stats_test_use',
3422 repeat(i::text, current_setting('block_size')::int / 2)) FROM generate_series(1, 3) g(i);
3423
3424 pg_notify
3425 ---------
3426
3427
3428
3429 (3 rows)
3430
3431 step s2_ff: SELECT pg_stat_force_next_flush();
3432 pg_stat_force_next_flush
3433 ------------------------
3434
3435 (1 row)
3436
3437 step s1_slru_check_stats:
3438 SELECT current.blks_zeroed > before.value
3439 FROM test_slru_stats before
3440 INNER JOIN pg_stat_slru current
3441 ON before.slru = current.name
3442 WHERE before.stat = 'blks_zeroed';
3443
3444 ?column?
3445 --------
3446 t
3447 (1 row)
3448
3449 step s1_clear_snapshot: SELECT pg_stat_clear_snapshot();
3450 pg_stat_clear_snapshot
3451 ----------------------
3452
3453 (1 row)
3454
3455 step s1_slru_check_stats:
3456 SELECT current.blks_zeroed > before.value
3457 FROM test_slru_stats before
3458 INNER JOIN pg_stat_slru current
3459 ON before.slru = current.name
3460 WHERE before.stat = 'blks_zeroed';
3461
3462 ?column?
3463 --------
3464 t
3465 (1 row)
3466
3467 step s1_commit: COMMIT;
3468
3469 starting permutation: s1_fetch_consistency_cache s1_slru_save_stats s1_listen s1_begin s1_slru_check_stats s2_big_notify s2_ff s1_slru_check_stats s1_clear_snapshot s1_slru_check_stats s1_commit
3470 pg_stat_force_next_flush
3471 ------------------------
3472
3473 (1 row)
3474
3475 step s1_fetch_consistency_cache: SET stats_fetch_consistency = 'cache';
3476 step s1_slru_save_stats:
3477 INSERT INTO test_slru_stats VALUES('notify', 'blks_zeroed',
3478 (SELECT blks_zeroed FROM pg_stat_slru WHERE name = 'notify'));
3479
3480 step s1_listen: LISTEN stats_test_nothing;
3481 step s1_begin: BEGIN;
3482 step s1_slru_check_stats:
3483 SELECT current.blks_zeroed > before.value
3484 FROM test_slru_stats before
3485 INNER JOIN pg_stat_slru current
3486 ON before.slru = current.name
3487 WHERE before.stat = 'blks_zeroed';
3488
3489 ?column?
3490 --------
3491 f
3492 (1 row)
3493
3494 step s2_big_notify: SELECT pg_notify('stats_test_use',
3495 repeat(i::text, current_setting('block_size')::int / 2)) FROM generate_series(1, 3) g(i);
3496
3497 pg_notify
3498 ---------
3499
3500
3501
3502 (3 rows)
3503
3504 step s2_ff: SELECT pg_stat_force_next_flush();
3505 pg_stat_force_next_flush
3506 ------------------------
3507
3508 (1 row)
3509
3510 step s1_slru_check_stats:
3511 SELECT current.blks_zeroed > before.value
3512 FROM test_slru_stats before
3513 INNER JOIN pg_stat_slru current
3514 ON before.slru = current.name
3515 WHERE before.stat = 'blks_zeroed';
3516
3517 ?column?
3518 --------
3519 f
3520 (1 row)
3521
3522 step s1_clear_snapshot: SELECT pg_stat_clear_snapshot();
3523 pg_stat_clear_snapshot
3524 ----------------------
3525
3526 (1 row)
3527
3528 step s1_slru_check_stats:
3529 SELECT current.blks_zeroed > before.value
3530 FROM test_slru_stats before
3531 INNER JOIN pg_stat_slru current
3532 ON before.slru = current.name
3533 WHERE before.stat = 'blks_zeroed';
3534
3535 ?column?
3536 --------
3537 t
3538 (1 row)
3539
3540 step s1_commit: COMMIT;
3541
3542 starting permutation: s1_fetch_consistency_snapshot s1_slru_save_stats s1_listen s1_begin s1_slru_check_stats s2_big_notify s2_ff s1_slru_check_stats s1_clear_snapshot s1_slru_check_stats s1_commit
3543 pg_stat_force_next_flush
3544 ------------------------
3545
3546 (1 row)
3547
3548 step s1_fetch_consistency_snapshot: SET stats_fetch_consistency = 'snapshot';
3549 step s1_slru_save_stats:
3550 INSERT INTO test_slru_stats VALUES('notify', 'blks_zeroed',
3551 (SELECT blks_zeroed FROM pg_stat_slru WHERE name = 'notify'));
3552
3553 step s1_listen: LISTEN stats_test_nothing;
3554 step s1_begin: BEGIN;
3555 step s1_slru_check_stats:
3556 SELECT current.blks_zeroed > before.value
3557 FROM test_slru_stats before
3558 INNER JOIN pg_stat_slru current
3559 ON before.slru = current.name
3560 WHERE before.stat = 'blks_zeroed';
3561
3562 ?column?
3563 --------
3564 f
3565 (1 row)
3566
3567 step s2_big_notify: SELECT pg_notify('stats_test_use',
3568 repeat(i::text, current_setting('block_size')::int / 2)) FROM generate_series(1, 3) g(i);
3569
3570 pg_notify
3571 ---------
3572
3573
3574
3575 (3 rows)
3576
3577 step s2_ff: SELECT pg_stat_force_next_flush();
3578 pg_stat_force_next_flush
3579 ------------------------
3580
3581 (1 row)
3582
3583 step s1_slru_check_stats:
3584 SELECT current.blks_zeroed > before.value
3585 FROM test_slru_stats before
3586 INNER JOIN pg_stat_slru current
3587 ON before.slru = current.name
3588 WHERE before.stat = 'blks_zeroed';
3589
3590 ?column?
3591 --------
3592 f
3593 (1 row)
3594
3595 step s1_clear_snapshot: SELECT pg_stat_clear_snapshot();
3596 pg_stat_clear_snapshot
3597 ----------------------
3598
3599 (1 row)
3600
3601 step s1_slru_check_stats:
3602 SELECT current.blks_zeroed > before.value
3603 FROM test_slru_stats before
3604 INNER JOIN pg_stat_slru current
3605 ON before.slru = current.name
3606 WHERE before.stat = 'blks_zeroed';
3607
3608 ?column?
3609 --------
3610 t
3611 (1 row)
3612
3613 step s1_commit: COMMIT;
3614
3615 starting permutation: s1_fetch_consistency_snapshot s1_slru_save_stats s1_listen s1_begin s1_func_stats s2_big_notify s2_ff s1_slru_check_stats s1_commit
3616 pg_stat_force_next_flush
3617 ------------------------
3618
3619 (1 row)
3620
3621 step s1_fetch_consistency_snapshot: SET stats_fetch_consistency = 'snapshot';
3622 step s1_slru_save_stats:
3623 INSERT INTO test_slru_stats VALUES('notify', 'blks_zeroed',
3624 (SELECT blks_zeroed FROM pg_stat_slru WHERE name = 'notify'));
3625
3626 step s1_listen: LISTEN stats_test_nothing;
3627 step s1_begin: BEGIN;
3628 step s1_func_stats:
3629 SELECT
3630 tso.name,
3631 pg_stat_get_function_calls(tso.oid),
3632 pg_stat_get_function_total_time(tso.oid) > 0 total_above_zero,
3633 pg_stat_get_function_self_time(tso.oid) > 0 self_above_zero
3634 FROM test_stat_oid AS tso
3635 WHERE tso.name = 'test_stat_func'
3636
3637 name |pg_stat_get_function_calls|total_above_zero|self_above_zero
3638 --------------+--------------------------+----------------+---------------
3639 test_stat_func| | |
3640 (1 row)
3641
3642 step s2_big_notify: SELECT pg_notify('stats_test_use',
3643 repeat(i::text, current_setting('block_size')::int / 2)) FROM generate_series(1, 3) g(i);
3644
3645 pg_notify
3646 ---------
3647
3648
3649
3650 (3 rows)
3651
3652 step s2_ff: SELECT pg_stat_force_next_flush();
3653 pg_stat_force_next_flush
3654 ------------------------
3655
3656 (1 row)
3657
3658 step s1_slru_check_stats:
3659 SELECT current.blks_zeroed > before.value
3660 FROM test_slru_stats before
3661 INNER JOIN pg_stat_slru current
3662 ON before.slru = current.name
3663 WHERE before.stat = 'blks_zeroed';
3664
3665 ?column?
3666 --------
3667 f
3668 (1 row)
3669
3670 step s1_commit: COMMIT;
3671
3672 starting permutation: s1_fetch_consistency_snapshot s1_slru_save_stats s1_listen s1_begin s2_big_notify s2_ff s1_slru_check_stats s2_func_call s2_ff s1_func_stats s1_clear_snapshot s1_func_stats s1_commit
3673 pg_stat_force_next_flush
3674 ------------------------
3675
3676 (1 row)
3677
3678 step s1_fetch_consistency_snapshot: SET stats_fetch_consistency = 'snapshot';
3679 step s1_slru_save_stats:
3680 INSERT INTO test_slru_stats VALUES('notify', 'blks_zeroed',
3681 (SELECT blks_zeroed FROM pg_stat_slru WHERE name = 'notify'));
3682
3683 step s1_listen: LISTEN stats_test_nothing;
3684 step s1_begin: BEGIN;
3685 step s2_big_notify: SELECT pg_notify('stats_test_use',
3686 repeat(i::text, current_setting('block_size')::int / 2)) FROM generate_series(1, 3) g(i);
3687
3688 pg_notify
3689 ---------
3690
3691
3692
3693 (3 rows)
3694
3695 step s2_ff: SELECT pg_stat_force_next_flush();
3696 pg_stat_force_next_flush
3697 ------------------------
3698
3699 (1 row)
3700
3701 step s1_slru_check_stats:
3702 SELECT current.blks_zeroed > before.value
3703 FROM test_slru_stats before
3704 INNER JOIN pg_stat_slru current
3705 ON before.slru = current.name
3706 WHERE before.stat = 'blks_zeroed';
3707
3708 ?column?
3709 --------
3710 t
3711 (1 row)
3712
3713 step s2_func_call: SELECT test_stat_func()
3714 test_stat_func
3715 --------------
3716
3717 (1 row)
3718
3719 step s2_ff: SELECT pg_stat_force_next_flush();
3720 pg_stat_force_next_flush
3721 ------------------------
3722
3723 (1 row)
3724
3725 step s1_func_stats:
3726 SELECT
3727 tso.name,
3728 pg_stat_get_function_calls(tso.oid),
3729 pg_stat_get_function_total_time(tso.oid) > 0 total_above_zero,
3730 pg_stat_get_function_self_time(tso.oid) > 0 self_above_zero
3731 FROM test_stat_oid AS tso
3732 WHERE tso.name = 'test_stat_func'
3733
3734 name |pg_stat_get_function_calls|total_above_zero|self_above_zero
3735 --------------+--------------------------+----------------+---------------
3736 test_stat_func| | |
3737 (1 row)
3738
3739 step s1_clear_snapshot: SELECT pg_stat_clear_snapshot();
3740 pg_stat_clear_snapshot
3741 ----------------------
3742
3743 (1 row)
3744
3745 step s1_func_stats:
3746 SELECT
3747 tso.name,
3748 pg_stat_get_function_calls(tso.oid),
3749 pg_stat_get_function_total_time(tso.oid) > 0 total_above_zero,
3750 pg_stat_get_function_self_time(tso.oid) > 0 self_above_zero
3751 FROM test_stat_oid AS tso
3752 WHERE tso.name = 'test_stat_func'
3753
3754 name |pg_stat_get_function_calls|total_above_zero|self_above_zero
3755 --------------+--------------------------+----------------+---------------
3756 test_stat_func| 1|t |t
3757 (1 row)
3758
3759 step s1_commit: COMMIT;