Debian Codegraph @

src/test/isolation/expected/stats.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 step s2_func_call: SELECT test_stat_func()
1810 test_stat_func
1811 --------------
1812
1813 (1 row)
1814
1815 step s2_ff: SELECT pg_stat_force_next_flush();
1816 pg_stat_force_next_flush
1817 ------------------------
1818
1819 (1 row)
1820
1821 step s1_func_call: SELECT test_stat_func();
1822 test_stat_func
1823 --------------
1824
1825 (1 row)
1826
1827 step s1_ff: SELECT pg_stat_force_next_flush();
1828 pg_stat_force_next_flush
1829 ------------------------
1830
1831 (1 row)
1832
1833 step s1_func_stats:
1834 SELECT
1835 tso.name,
1836 pg_stat_get_function_calls(tso.oid),
1837 pg_stat_get_function_total_time(tso.oid) > 0 total_above_zero,
1838 pg_stat_get_function_self_time(tso.oid) > 0 self_above_zero
1839 FROM test_stat_oid AS tso
1840 WHERE tso.name = 'test_stat_func'
1841
1842 name |pg_stat_get_function_calls|total_above_zero|self_above_zero
1843 --------------+--------------------------+----------------+---------------
1844 test_stat_func| 5|t |t
1845 (1 row)
1846
1847 step s1_commit_prepared_a: COMMIT PREPARED 'a';
1848 step s1_func_stats:
1849 SELECT
1850 tso.name,
1851 pg_stat_get_function_calls(tso.oid),
1852 pg_stat_get_function_total_time(tso.oid) > 0 total_above_zero,
1853 pg_stat_get_function_self_time(tso.oid) > 0 self_above_zero
1854 FROM test_stat_oid AS tso
1855 WHERE tso.name = 'test_stat_func'
1856
1857 name |pg_stat_get_function_calls|total_above_zero|self_above_zero
1858 --------------+--------------------------+----------------+---------------
1859 test_stat_func| | |
1860 (1 row)
1861
1862
1863 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
1864 pg_stat_force_next_flush
1865 ------------------------
1866
1867 (1 row)
1868
1869 step s1_track_funcs_all: SET track_functions = 'all';
1870 step s2_track_funcs_all: SET track_functions = 'all';
1871 step s1_begin: BEGIN;
1872 step s1_func_call: SELECT test_stat_func();
1873 test_stat_func
1874 --------------
1875
1876 (1 row)
1877
1878 step s2_func_call: SELECT test_stat_func()
1879 test_stat_func
1880 --------------
1881
1882 (1 row)
1883
1884 step s1_func_drop: DROP FUNCTION test_stat_func();
1885 step s2_func_call: SELECT test_stat_func()
1886 test_stat_func
1887 --------------
1888
1889 (1 row)
1890
1891 step s2_ff: SELECT pg_stat_force_next_flush();
1892 pg_stat_force_next_flush
1893 ------------------------
1894
1895 (1 row)
1896
1897 step s1_prepare_a: PREPARE TRANSACTION 'a';
1898 step s2_func_call: SELECT test_stat_func()
1899 test_stat_func
1900 --------------
1901
1902 (1 row)
1903
1904 step s2_ff: SELECT pg_stat_force_next_flush();
1905 pg_stat_force_next_flush
1906 ------------------------
1907
1908 (1 row)
1909
1910 step s1_func_call: SELECT test_stat_func();
1911 test_stat_func
1912 --------------
1913
1914 (1 row)
1915
1916 step s1_ff: SELECT pg_stat_force_next_flush();
1917 pg_stat_force_next_flush
1918 ------------------------
1919
1920 (1 row)
1921
1922 step s1_func_stats:
1923 SELECT
1924 tso.name,
1925 pg_stat_get_function_calls(tso.oid),
1926 pg_stat_get_function_total_time(tso.oid) > 0 total_above_zero,
1927 pg_stat_get_function_self_time(tso.oid) > 0 self_above_zero
1928 FROM test_stat_oid AS tso
1929 WHERE tso.name = 'test_stat_func'
1930
1931 name |pg_stat_get_function_calls|total_above_zero|self_above_zero
1932 --------------+--------------------------+----------------+---------------
1933 test_stat_func| 5|t |t
1934 (1 row)
1935
1936 step s1_rollback_prepared_a: ROLLBACK PREPARED 'a';
1937 step s1_func_stats:
1938 SELECT
1939 tso.name,
1940 pg_stat_get_function_calls(tso.oid),
1941 pg_stat_get_function_total_time(tso.oid) > 0 total_above_zero,
1942 pg_stat_get_function_self_time(tso.oid) > 0 self_above_zero
1943 FROM test_stat_oid AS tso
1944 WHERE tso.name = 'test_stat_func'
1945
1946 name |pg_stat_get_function_calls|total_above_zero|self_above_zero
1947 --------------+--------------------------+----------------+---------------
1948 test_stat_func| 5|t |t
1949 (1 row)
1950
1951
1952 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
1953 pg_stat_force_next_flush
1954 ------------------------
1955
1956 (1 row)
1957
1958 step s1_track_funcs_all: SET track_functions = 'all';
1959 step s2_track_funcs_all: SET track_functions = 'all';
1960 step s1_begin: BEGIN;
1961 step s1_func_call: SELECT test_stat_func();
1962 test_stat_func
1963 --------------
1964
1965 (1 row)
1966
1967 step s2_func_call: SELECT test_stat_func()
1968 test_stat_func
1969 --------------
1970
1971 (1 row)
1972
1973 step s1_func_drop: DROP FUNCTION test_stat_func();
1974 step s2_func_call: SELECT test_stat_func()
1975 test_stat_func
1976 --------------
1977
1978 (1 row)
1979
1980 step s2_ff: SELECT pg_stat_force_next_flush();
1981 pg_stat_force_next_flush
1982 ------------------------
1983
1984 (1 row)
1985
1986 step s1_prepare_a: PREPARE TRANSACTION 'a';
1987 step s2_func_call: SELECT test_stat_func()
1988 test_stat_func
1989 --------------
1990
1991 (1 row)
1992
1993 step s2_ff: SELECT pg_stat_force_next_flush();
1994 pg_stat_force_next_flush
1995 ------------------------
1996
1997 (1 row)
1998
1999 step s1_func_call: SELECT test_stat_func();
2000 test_stat_func
2001 --------------
2002
2003 (1 row)
2004
2005 step s1_ff: SELECT pg_stat_force_next_flush();
2006 pg_stat_force_next_flush
2007 ------------------------
2008
2009 (1 row)
2010
2011 step s1_func_stats:
2012 SELECT
2013 tso.name,
2014 pg_stat_get_function_calls(tso.oid),
2015 pg_stat_get_function_total_time(tso.oid) > 0 total_above_zero,
2016 pg_stat_get_function_self_time(tso.oid) > 0 self_above_zero
2017 FROM test_stat_oid AS tso
2018 WHERE tso.name = 'test_stat_func'
2019
2020 name |pg_stat_get_function_calls|total_above_zero|self_above_zero
2021 --------------+--------------------------+----------------+---------------
2022 test_stat_func| 5|t |t
2023 (1 row)
2024
2025 step s2_commit_prepared_a: COMMIT PREPARED 'a';
2026 step s1_func_stats:
2027 SELECT
2028 tso.name,
2029 pg_stat_get_function_calls(tso.oid),
2030 pg_stat_get_function_total_time(tso.oid) > 0 total_above_zero,
2031 pg_stat_get_function_self_time(tso.oid) > 0 self_above_zero
2032 FROM test_stat_oid AS tso
2033 WHERE tso.name = 'test_stat_func'
2034
2035 name |pg_stat_get_function_calls|total_above_zero|self_above_zero
2036 --------------+--------------------------+----------------+---------------
2037 test_stat_func| | |
2038 (1 row)
2039
2040
2041 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
2042 pg_stat_force_next_flush
2043 ------------------------
2044
2045 (1 row)
2046
2047 step s1_track_funcs_all: SET track_functions = 'all';
2048 step s2_track_funcs_all: SET track_functions = 'all';
2049 step s1_begin: BEGIN;
2050 step s1_func_call: SELECT test_stat_func();
2051 test_stat_func
2052 --------------
2053
2054 (1 row)
2055
2056 step s2_func_call: SELECT test_stat_func()
2057 test_stat_func
2058 --------------
2059
2060 (1 row)
2061
2062 step s1_func_drop: DROP FUNCTION test_stat_func();
2063 step s2_func_call: SELECT test_stat_func()
2064 test_stat_func
2065 --------------
2066
2067 (1 row)
2068
2069 step s2_ff: SELECT pg_stat_force_next_flush();
2070 pg_stat_force_next_flush
2071 ------------------------
2072
2073 (1 row)
2074
2075 step s1_prepare_a: PREPARE TRANSACTION 'a';
2076 step s2_func_call: SELECT test_stat_func()
2077 test_stat_func
2078 --------------
2079
2080 (1 row)
2081
2082 step s2_ff: SELECT pg_stat_force_next_flush();
2083 pg_stat_force_next_flush
2084 ------------------------
2085
2086 (1 row)
2087
2088 step s1_func_call: SELECT test_stat_func();
2089 test_stat_func
2090 --------------
2091
2092 (1 row)
2093
2094 step s1_ff: SELECT pg_stat_force_next_flush();
2095 pg_stat_force_next_flush
2096 ------------------------
2097
2098 (1 row)
2099
2100 step s1_func_stats:
2101 SELECT
2102 tso.name,
2103 pg_stat_get_function_calls(tso.oid),
2104 pg_stat_get_function_total_time(tso.oid) > 0 total_above_zero,
2105 pg_stat_get_function_self_time(tso.oid) > 0 self_above_zero
2106 FROM test_stat_oid AS tso
2107 WHERE tso.name = 'test_stat_func'
2108
2109 name |pg_stat_get_function_calls|total_above_zero|self_above_zero
2110 --------------+--------------------------+----------------+---------------
2111 test_stat_func| 5|t |t
2112 (1 row)
2113
2114 step s2_rollback_prepared_a: ROLLBACK PREPARED 'a';
2115 step s1_func_stats:
2116 SELECT
2117 tso.name,
2118 pg_stat_get_function_calls(tso.oid),
2119 pg_stat_get_function_total_time(tso.oid) > 0 total_above_zero,
2120 pg_stat_get_function_self_time(tso.oid) > 0 self_above_zero
2121 FROM test_stat_oid AS tso
2122 WHERE tso.name = 'test_stat_func'
2123
2124 name |pg_stat_get_function_calls|total_above_zero|self_above_zero
2125 --------------+--------------------------+----------------+---------------
2126 test_stat_func| 5|t |t
2127 (1 row)
2128
2129
2130 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
2131 pg_stat_force_next_flush
2132 ------------------------
2133
2134 (1 row)
2135
2136 step s1_table_select: SELECT * FROM test_stat_tab ORDER BY key, value;
2137 key|value
2138 ---+-----
2139 k0 | 1
2140 (1 row)
2141
2142 step s1_table_insert: INSERT INTO test_stat_tab(key, value) VALUES('k1', 1), ('k2', 1), ('k3', 1);
2143 step s2_table_select: SELECT * FROM test_stat_tab ORDER BY key, value;
2144 key|value
2145 ---+-----
2146 k0 | 1
2147 k1 | 1
2148 k2 | 1
2149 k3 | 1
2150 (4 rows)
2151
2152 step s2_table_update_k1: UPDATE test_stat_tab SET value = value + 1 WHERE key = 'k1';
2153 step s1_ff: SELECT pg_stat_force_next_flush();
2154 pg_stat_force_next_flush
2155 ------------------------
2156
2157 (1 row)
2158
2159 step s2_table_update_k1: UPDATE test_stat_tab SET value = value + 1 WHERE key = 'k1';
2160 step s1_table_drop: DROP TABLE test_stat_tab;
2161 step s2_ff: SELECT pg_stat_force_next_flush();
2162 pg_stat_force_next_flush
2163 ------------------------
2164
2165 (1 row)
2166
2167 step s1_table_stats:
2168 SELECT
2169 pg_stat_get_numscans(tso.oid) AS seq_scan,
2170 pg_stat_get_tuples_returned(tso.oid) AS seq_tup_read,
2171 pg_stat_get_tuples_inserted(tso.oid) AS n_tup_ins,
2172 pg_stat_get_tuples_updated(tso.oid) AS n_tup_upd,
2173 pg_stat_get_tuples_deleted(tso.oid) AS n_tup_del,
2174 pg_stat_get_live_tuples(tso.oid) AS n_live_tup,
2175 pg_stat_get_dead_tuples(tso.oid) AS n_dead_tup,
2176 pg_stat_get_vacuum_count(tso.oid) AS vacuum_count
2177 FROM test_stat_oid AS tso
2178 WHERE tso.name = 'test_stat_tab'
2179
2180 seq_scan|seq_tup_read|n_tup_ins|n_tup_upd|n_tup_del|n_live_tup|n_dead_tup|vacuum_count
2181 --------+------------+---------+---------+---------+----------+----------+------------
2182 0| 0| 0| 0| 0| 0| 0| 0
2183 (1 row)
2184
2185
2186 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
2187 pg_stat_force_next_flush
2188 ------------------------
2189
2190 (1 row)
2191
2192 step s1_table_select: SELECT * FROM test_stat_tab ORDER BY key, value;
2193 key|value
2194 ---+-----
2195 k0 | 1
2196 (1 row)
2197
2198 step s1_table_insert: INSERT INTO test_stat_tab(key, value) VALUES('k1', 1), ('k2', 1), ('k3', 1);
2199 step s2_table_select: SELECT * FROM test_stat_tab ORDER BY key, value;
2200 key|value
2201 ---+-----
2202 k0 | 1
2203 k1 | 1
2204 k2 | 1
2205 k3 | 1
2206 (4 rows)
2207
2208 step s2_table_update_k1: UPDATE test_stat_tab SET value = value + 1 WHERE key = 'k1';
2209 step s2_table_update_k1: UPDATE test_stat_tab SET value = value + 1 WHERE key = 'k1';
2210 step s1_table_drop: DROP TABLE test_stat_tab;
2211 step s1_table_stats:
2212 SELECT
2213 pg_stat_get_numscans(tso.oid) AS seq_scan,
2214 pg_stat_get_tuples_returned(tso.oid) AS seq_tup_read,
2215 pg_stat_get_tuples_inserted(tso.oid) AS n_tup_ins,
2216 pg_stat_get_tuples_updated(tso.oid) AS n_tup_upd,
2217 pg_stat_get_tuples_deleted(tso.oid) AS n_tup_del,
2218 pg_stat_get_live_tuples(tso.oid) AS n_live_tup,
2219 pg_stat_get_dead_tuples(tso.oid) AS n_dead_tup,
2220 pg_stat_get_vacuum_count(tso.oid) AS vacuum_count
2221 FROM test_stat_oid AS tso
2222 WHERE tso.name = 'test_stat_tab'
2223
2224 seq_scan|seq_tup_read|n_tup_ins|n_tup_upd|n_tup_del|n_live_tup|n_dead_tup|vacuum_count
2225 --------+------------+---------+---------+---------+----------+----------+------------
2226 0| 0| 0| 0| 0| 0| 0| 0
2227 (1 row)
2228
2229
2230 starting permutation: s1_track_counts_off s1_table_stats s1_track_counts_on
2231 pg_stat_force_next_flush
2232 ------------------------
2233
2234 (1 row)
2235
2236 step s1_track_counts_off: SET track_counts = off;
2237 step s1_table_stats:
2238 SELECT
2239 pg_stat_get_numscans(tso.oid) AS seq_scan,
2240 pg_stat_get_tuples_returned(tso.oid) AS seq_tup_read,
2241 pg_stat_get_tuples_inserted(tso.oid) AS n_tup_ins,
2242 pg_stat_get_tuples_updated(tso.oid) AS n_tup_upd,
2243 pg_stat_get_tuples_deleted(tso.oid) AS n_tup_del,
2244 pg_stat_get_live_tuples(tso.oid) AS n_live_tup,
2245 pg_stat_get_dead_tuples(tso.oid) AS n_dead_tup,
2246 pg_stat_get_vacuum_count(tso.oid) AS vacuum_count
2247 FROM test_stat_oid AS tso
2248 WHERE tso.name = 'test_stat_tab'
2249
2250 seq_scan|seq_tup_read|n_tup_ins|n_tup_upd|n_tup_del|n_live_tup|n_dead_tup|vacuum_count
2251 --------+------------+---------+---------+---------+----------+----------+------------
2252 0| 0| 1| 0| 0| 1| 0| 0
2253 (1 row)
2254
2255 step s1_track_counts_on: SET track_counts = on;
2256
2257 starting permutation: s1_table_select s1_track_counts_off s1_ff s1_table_stats s1_track_counts_on
2258 pg_stat_force_next_flush
2259 ------------------------
2260
2261 (1 row)
2262
2263 step s1_table_select: SELECT * FROM test_stat_tab ORDER BY key, value;
2264 key|value
2265 ---+-----
2266 k0 | 1
2267 (1 row)
2268
2269 step s1_track_counts_off: SET track_counts = off;
2270 step s1_ff: SELECT pg_stat_force_next_flush();
2271 pg_stat_force_next_flush
2272 ------------------------
2273
2274 (1 row)
2275
2276 step s1_table_stats:
2277 SELECT
2278 pg_stat_get_numscans(tso.oid) AS seq_scan,
2279 pg_stat_get_tuples_returned(tso.oid) AS seq_tup_read,
2280 pg_stat_get_tuples_inserted(tso.oid) AS n_tup_ins,
2281 pg_stat_get_tuples_updated(tso.oid) AS n_tup_upd,
2282 pg_stat_get_tuples_deleted(tso.oid) AS n_tup_del,
2283 pg_stat_get_live_tuples(tso.oid) AS n_live_tup,
2284 pg_stat_get_dead_tuples(tso.oid) AS n_dead_tup,
2285 pg_stat_get_vacuum_count(tso.oid) AS vacuum_count
2286 FROM test_stat_oid AS tso
2287 WHERE tso.name = 'test_stat_tab'
2288
2289 seq_scan|seq_tup_read|n_tup_ins|n_tup_upd|n_tup_del|n_live_tup|n_dead_tup|vacuum_count
2290 --------+------------+---------+---------+---------+----------+----------+------------
2291 1| 1| 1| 0| 0| 1| 0| 0
2292 (1 row)
2293
2294 step s1_track_counts_on: SET track_counts = on;
2295
2296 starting permutation: s1_table_select s1_ff s1_track_counts_off s1_table_stats s1_track_counts_on
2297 pg_stat_force_next_flush
2298 ------------------------
2299
2300 (1 row)
2301
2302 step s1_table_select: SELECT * FROM test_stat_tab ORDER BY key, value;
2303 key|value
2304 ---+-----
2305 k0 | 1
2306 (1 row)
2307
2308 step s1_ff: SELECT pg_stat_force_next_flush();
2309 pg_stat_force_next_flush
2310 ------------------------
2311
2312 (1 row)
2313
2314 step s1_track_counts_off: SET track_counts = off;
2315 step s1_table_stats:
2316 SELECT
2317 pg_stat_get_numscans(tso.oid) AS seq_scan,
2318 pg_stat_get_tuples_returned(tso.oid) AS seq_tup_read,
2319 pg_stat_get_tuples_inserted(tso.oid) AS n_tup_ins,
2320 pg_stat_get_tuples_updated(tso.oid) AS n_tup_upd,
2321 pg_stat_get_tuples_deleted(tso.oid) AS n_tup_del,
2322 pg_stat_get_live_tuples(tso.oid) AS n_live_tup,
2323 pg_stat_get_dead_tuples(tso.oid) AS n_dead_tup,
2324 pg_stat_get_vacuum_count(tso.oid) AS vacuum_count
2325 FROM test_stat_oid AS tso
2326 WHERE tso.name = 'test_stat_tab'
2327
2328 seq_scan|seq_tup_read|n_tup_ins|n_tup_upd|n_tup_del|n_live_tup|n_dead_tup|vacuum_count
2329 --------+------------+---------+---------+---------+----------+----------+------------
2330 1| 1| 1| 0| 0| 1| 0| 0
2331 (1 row)
2332
2333 step s1_track_counts_on: SET track_counts = on;
2334
2335 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
2336 pg_stat_force_next_flush
2337 ------------------------
2338
2339 (1 row)
2340
2341 step s1_track_counts_off: SET track_counts = off;
2342 step s1_table_select: SELECT * FROM test_stat_tab ORDER BY key, value;
2343 key|value
2344 ---+-----
2345 k0 | 1
2346 (1 row)
2347
2348 step s1_table_insert_k1: INSERT INTO test_stat_tab(key, value) VALUES('k1', 1);
2349 step s1_table_update_k1: UPDATE test_stat_tab SET value = value + 1 WHERE key = 'k1';
2350 step s2_table_select: SELECT * FROM test_stat_tab ORDER BY key, value;
2351 key|value
2352 ---+-----
2353 k0 | 1
2354 k1 | 2
2355 (2 rows)
2356
2357 step s1_track_counts_on: SET track_counts = on;
2358 step s1_ff: SELECT pg_stat_force_next_flush();
2359 pg_stat_force_next_flush
2360 ------------------------
2361
2362 (1 row)
2363
2364 step s2_ff: SELECT pg_stat_force_next_flush();
2365 pg_stat_force_next_flush
2366 ------------------------
2367
2368 (1 row)
2369
2370 step s1_table_stats:
2371 SELECT
2372 pg_stat_get_numscans(tso.oid) AS seq_scan,
2373 pg_stat_get_tuples_returned(tso.oid) AS seq_tup_read,
2374 pg_stat_get_tuples_inserted(tso.oid) AS n_tup_ins,
2375 pg_stat_get_tuples_updated(tso.oid) AS n_tup_upd,
2376 pg_stat_get_tuples_deleted(tso.oid) AS n_tup_del,
2377 pg_stat_get_live_tuples(tso.oid) AS n_live_tup,
2378 pg_stat_get_dead_tuples(tso.oid) AS n_dead_tup,
2379 pg_stat_get_vacuum_count(tso.oid) AS vacuum_count
2380 FROM test_stat_oid AS tso
2381 WHERE tso.name = 'test_stat_tab'
2382
2383 seq_scan|seq_tup_read|n_tup_ins|n_tup_upd|n_tup_del|n_live_tup|n_dead_tup|vacuum_count
2384 --------+------------+---------+---------+---------+----------+----------+------------
2385 1| 2| 1| 0| 0| 1| 0| 0
2386 (1 row)
2387
2388 step s1_table_select: SELECT * FROM test_stat_tab ORDER BY key, value;
2389 key|value
2390 ---+-----
2391 k0 | 1
2392 k1 | 2
2393 (2 rows)
2394
2395 step s1_table_update_k1: UPDATE test_stat_tab SET value = value + 1 WHERE key = 'k1';
2396 step s1_ff: SELECT pg_stat_force_next_flush();
2397 pg_stat_force_next_flush
2398 ------------------------
2399
2400 (1 row)
2401
2402 step s1_table_stats:
2403 SELECT
2404 pg_stat_get_numscans(tso.oid) AS seq_scan,
2405 pg_stat_get_tuples_returned(tso.oid) AS seq_tup_read,
2406 pg_stat_get_tuples_inserted(tso.oid) AS n_tup_ins,
2407 pg_stat_get_tuples_updated(tso.oid) AS n_tup_upd,
2408 pg_stat_get_tuples_deleted(tso.oid) AS n_tup_del,
2409 pg_stat_get_live_tuples(tso.oid) AS n_live_tup,
2410 pg_stat_get_dead_tuples(tso.oid) AS n_dead_tup,
2411 pg_stat_get_vacuum_count(tso.oid) AS vacuum_count
2412 FROM test_stat_oid AS tso
2413 WHERE tso.name = 'test_stat_tab'
2414
2415 seq_scan|seq_tup_read|n_tup_ins|n_tup_upd|n_tup_del|n_live_tup|n_dead_tup|vacuum_count
2416 --------+------------+---------+---------+---------+----------+----------+------------
2417 3| 6| 1| 1| 0| 1| 1| 0
2418 (1 row)
2419
2420
2421 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
2422 pg_stat_force_next_flush
2423 ------------------------
2424
2425 (1 row)
2426
2427 step s1_table_select: SELECT * FROM test_stat_tab ORDER BY key, value;
2428 key|value
2429 ---+-----
2430 k0 | 1
2431 (1 row)
2432
2433 step s1_table_insert_k1: INSERT INTO test_stat_tab(key, value) VALUES('k1', 1);
2434 step s1_table_delete_k1: DELETE FROM test_stat_tab WHERE key = 'k1';
2435 step s1_track_counts_off: SET track_counts = off;
2436 step s1_table_select: SELECT * FROM test_stat_tab ORDER BY key, value;
2437 key|value
2438 ---+-----
2439 k0 | 1
2440 (1 row)
2441
2442 step s1_table_insert_k1: INSERT INTO test_stat_tab(key, value) VALUES('k1', 1);
2443 step s1_table_update_k1: UPDATE test_stat_tab SET value = value + 1 WHERE key = 'k1';
2444 step s2_table_select: SELECT * FROM test_stat_tab ORDER BY key, value;
2445 key|value
2446 ---+-----
2447 k0 | 1
2448 k1 | 2
2449 (2 rows)
2450
2451 step s1_track_counts_on: SET track_counts = on;
2452 step s1_ff: SELECT pg_stat_force_next_flush();
2453 pg_stat_force_next_flush
2454 ------------------------
2455
2456 (1 row)
2457
2458 step s2_ff: SELECT pg_stat_force_next_flush();
2459 pg_stat_force_next_flush
2460 ------------------------
2461
2462 (1 row)
2463
2464 step s1_table_stats:
2465 SELECT
2466 pg_stat_get_numscans(tso.oid) AS seq_scan,
2467 pg_stat_get_tuples_returned(tso.oid) AS seq_tup_read,
2468 pg_stat_get_tuples_inserted(tso.oid) AS n_tup_ins,
2469 pg_stat_get_tuples_updated(tso.oid) AS n_tup_upd,
2470 pg_stat_get_tuples_deleted(tso.oid) AS n_tup_del,
2471 pg_stat_get_live_tuples(tso.oid) AS n_live_tup,
2472 pg_stat_get_dead_tuples(tso.oid) AS n_dead_tup,
2473 pg_stat_get_vacuum_count(tso.oid) AS vacuum_count
2474 FROM test_stat_oid AS tso
2475 WHERE tso.name = 'test_stat_tab'
2476
2477 seq_scan|seq_tup_read|n_tup_ins|n_tup_upd|n_tup_del|n_live_tup|n_dead_tup|vacuum_count
2478 --------+------------+---------+---------+---------+----------+----------+------------
2479 3| 5| 2| 0| 1| 1| 1| 0
2480 (1 row)
2481
2482 step s1_table_select: SELECT * FROM test_stat_tab ORDER BY key, value;
2483 key|value
2484 ---+-----
2485 k0 | 1
2486 k1 | 2
2487 (2 rows)
2488
2489 step s1_table_update_k1: UPDATE test_stat_tab SET value = value + 1 WHERE key = 'k1';
2490 step s1_ff: SELECT pg_stat_force_next_flush();
2491 pg_stat_force_next_flush
2492 ------------------------
2493
2494 (1 row)
2495
2496 step s1_table_stats:
2497 SELECT
2498 pg_stat_get_numscans(tso.oid) AS seq_scan,
2499 pg_stat_get_tuples_returned(tso.oid) AS seq_tup_read,
2500 pg_stat_get_tuples_inserted(tso.oid) AS n_tup_ins,
2501 pg_stat_get_tuples_updated(tso.oid) AS n_tup_upd,
2502 pg_stat_get_tuples_deleted(tso.oid) AS n_tup_del,
2503 pg_stat_get_live_tuples(tso.oid) AS n_live_tup,
2504 pg_stat_get_dead_tuples(tso.oid) AS n_dead_tup,
2505 pg_stat_get_vacuum_count(tso.oid) AS vacuum_count
2506 FROM test_stat_oid AS tso
2507 WHERE tso.name = 'test_stat_tab'
2508
2509 seq_scan|seq_tup_read|n_tup_ins|n_tup_upd|n_tup_del|n_live_tup|n_dead_tup|vacuum_count
2510 --------+------------+---------+---------+---------+----------+----------+------------
2511 5| 9| 2| 1| 1| 1| 2| 0
2512 (1 row)
2513
2514
2515 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
2516 pg_stat_force_next_flush
2517 ------------------------
2518
2519 (1 row)
2520
2521 step s1_begin: BEGIN;
2522 step s1_table_insert: INSERT INTO test_stat_tab(key, value) VALUES('k1', 1), ('k2', 1), ('k3', 1);
2523 step s1_table_update_k1: UPDATE test_stat_tab SET value = value + 1 WHERE key = 'k1';
2524 step s1_table_update_k1: UPDATE test_stat_tab SET value = value + 1 WHERE key = 'k1';
2525 step s1_table_update_k2: UPDATE test_stat_tab SET value = value + 1 WHERE key = 'k2';
2526 step s1_table_update_k2: UPDATE test_stat_tab SET value = value + 1 WHERE key = 'k2';
2527 step s1_table_update_k2: UPDATE test_stat_tab SET value = value + 1 WHERE key = 'k2';
2528 step s1_table_delete_k1: DELETE FROM test_stat_tab WHERE key = 'k1';
2529 step s1_table_select: SELECT * FROM test_stat_tab ORDER BY key, value;
2530 key|value
2531 ---+-----
2532 k0 | 1
2533 k2 | 4
2534 k3 | 1
2535 (3 rows)
2536
2537 step s1_prepare_a: PREPARE TRANSACTION 'a';
2538 step s1_table_select: SELECT * FROM test_stat_tab ORDER BY key, value;
2539 key|value
2540 ---+-----
2541 k0 | 1
2542 (1 row)
2543
2544 step s1_commit_prepared_a: COMMIT PREPARED 'a';
2545 step s1_table_select: SELECT * FROM test_stat_tab ORDER BY key, value;
2546 key|value
2547 ---+-----
2548 k0 | 1
2549 k2 | 4
2550 k3 | 1
2551 (3 rows)
2552
2553 step s1_ff: SELECT pg_stat_force_next_flush();
2554 pg_stat_force_next_flush
2555 ------------------------
2556
2557 (1 row)
2558
2559 step s1_table_stats:
2560 SELECT
2561 pg_stat_get_numscans(tso.oid) AS seq_scan,
2562 pg_stat_get_tuples_returned(tso.oid) AS seq_tup_read,
2563 pg_stat_get_tuples_inserted(tso.oid) AS n_tup_ins,
2564 pg_stat_get_tuples_updated(tso.oid) AS n_tup_upd,
2565 pg_stat_get_tuples_deleted(tso.oid) AS n_tup_del,
2566 pg_stat_get_live_tuples(tso.oid) AS n_live_tup,
2567 pg_stat_get_dead_tuples(tso.oid) AS n_dead_tup,
2568 pg_stat_get_vacuum_count(tso.oid) AS vacuum_count
2569 FROM test_stat_oid AS tso
2570 WHERE tso.name = 'test_stat_tab'
2571
2572 seq_scan|seq_tup_read|n_tup_ins|n_tup_upd|n_tup_del|n_live_tup|n_dead_tup|vacuum_count
2573 --------+------------+---------+---------+---------+----------+----------+------------
2574 9| 31| 4| 5| 1| 3| 6| 0
2575 (1 row)
2576
2577
2578 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
2579 pg_stat_force_next_flush
2580 ------------------------
2581
2582 (1 row)
2583
2584 step s1_begin: BEGIN;
2585 step s1_table_insert: INSERT INTO test_stat_tab(key, value) VALUES('k1', 1), ('k2', 1), ('k3', 1);
2586 step s1_table_update_k1: UPDATE test_stat_tab SET value = value + 1 WHERE key = 'k1';
2587 step s1_table_update_k1: UPDATE test_stat_tab SET value = value + 1 WHERE key = 'k1';
2588 step s1_table_update_k2: UPDATE test_stat_tab SET value = value + 1 WHERE key = 'k2';
2589 step s1_table_update_k2: UPDATE test_stat_tab SET value = value + 1 WHERE key = 'k2';
2590 step s1_table_update_k2: UPDATE test_stat_tab SET value = value + 1 WHERE key = 'k2';
2591 step s1_table_delete_k1: DELETE FROM test_stat_tab WHERE key = 'k1';
2592 step s1_table_select: SELECT * FROM test_stat_tab ORDER BY key, value;
2593 key|value
2594 ---+-----
2595 k0 | 1
2596 k2 | 4
2597 k3 | 1
2598 (3 rows)
2599
2600 step s1_prepare_a: PREPARE TRANSACTION 'a';
2601 step s1_table_select: SELECT * FROM test_stat_tab ORDER BY key, value;
2602 key|value
2603 ---+-----
2604 k0 | 1
2605 (1 row)
2606
2607 step s2_commit_prepared_a: COMMIT PREPARED 'a';
2608 step s1_table_select: SELECT * FROM test_stat_tab ORDER BY key, value;
2609 key|value
2610 ---+-----
2611 k0 | 1
2612 k2 | 4
2613 k3 | 1
2614 (3 rows)
2615
2616 step s1_ff: SELECT pg_stat_force_next_flush();
2617 pg_stat_force_next_flush
2618 ------------------------
2619
2620 (1 row)
2621
2622 step s2_ff: SELECT pg_stat_force_next_flush();
2623 pg_stat_force_next_flush
2624 ------------------------
2625
2626 (1 row)
2627
2628 step s1_table_stats:
2629 SELECT
2630 pg_stat_get_numscans(tso.oid) AS seq_scan,
2631 pg_stat_get_tuples_returned(tso.oid) AS seq_tup_read,
2632 pg_stat_get_tuples_inserted(tso.oid) AS n_tup_ins,
2633 pg_stat_get_tuples_updated(tso.oid) AS n_tup_upd,
2634 pg_stat_get_tuples_deleted(tso.oid) AS n_tup_del,
2635 pg_stat_get_live_tuples(tso.oid) AS n_live_tup,
2636 pg_stat_get_dead_tuples(tso.oid) AS n_dead_tup,
2637 pg_stat_get_vacuum_count(tso.oid) AS vacuum_count
2638 FROM test_stat_oid AS tso
2639 WHERE tso.name = 'test_stat_tab'
2640
2641 seq_scan|seq_tup_read|n_tup_ins|n_tup_upd|n_tup_del|n_live_tup|n_dead_tup|vacuum_count
2642 --------+------------+---------+---------+---------+----------+----------+------------
2643 9| 31| 4| 5| 1| 3| 6| 0
2644 (1 row)
2645
2646
2647 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
2648 pg_stat_force_next_flush
2649 ------------------------
2650
2651 (1 row)
2652
2653 step s1_begin: BEGIN;
2654 step s1_table_insert: INSERT INTO test_stat_tab(key, value) VALUES('k1', 1), ('k2', 1), ('k3', 1);
2655 step s1_table_update_k1: UPDATE test_stat_tab SET value = value + 1 WHERE key = 'k1';
2656 step s1_table_update_k1: UPDATE test_stat_tab SET value = value + 1 WHERE key = 'k1';
2657 step s1_table_update_k2: UPDATE test_stat_tab SET value = value + 1 WHERE key = 'k2';
2658 step s1_table_update_k2: UPDATE test_stat_tab SET value = value + 1 WHERE key = 'k2';
2659 step s1_table_update_k2: UPDATE test_stat_tab SET value = value + 1 WHERE key = 'k2';
2660 step s1_table_delete_k1: DELETE FROM test_stat_tab WHERE key = 'k1';
2661 step s1_table_select: SELECT * FROM test_stat_tab ORDER BY key, value;
2662 key|value
2663 ---+-----
2664 k0 | 1
2665 k2 | 4
2666 k3 | 1
2667 (3 rows)
2668
2669 step s1_prepare_a: PREPARE TRANSACTION 'a';
2670 step s1_table_select: SELECT * FROM test_stat_tab ORDER BY key, value;
2671 key|value
2672 ---+-----
2673 k0 | 1
2674 (1 row)
2675
2676 step s1_rollback_prepared_a: ROLLBACK PREPARED 'a';
2677 step s1_table_select: SELECT * FROM test_stat_tab ORDER BY key, value;
2678 key|value
2679 ---+-----
2680 k0 | 1
2681 (1 row)
2682
2683 step s1_ff: SELECT pg_stat_force_next_flush();
2684 pg_stat_force_next_flush
2685 ------------------------
2686
2687 (1 row)
2688
2689 step s1_table_stats:
2690 SELECT
2691 pg_stat_get_numscans(tso.oid) AS seq_scan,
2692 pg_stat_get_tuples_returned(tso.oid) AS seq_tup_read,
2693 pg_stat_get_tuples_inserted(tso.oid) AS n_tup_ins,
2694 pg_stat_get_tuples_updated(tso.oid) AS n_tup_upd,
2695 pg_stat_get_tuples_deleted(tso.oid) AS n_tup_del,
2696 pg_stat_get_live_tuples(tso.oid) AS n_live_tup,
2697 pg_stat_get_dead_tuples(tso.oid) AS n_dead_tup,
2698 pg_stat_get_vacuum_count(tso.oid) AS vacuum_count
2699 FROM test_stat_oid AS tso
2700 WHERE tso.name = 'test_stat_tab'
2701
2702 seq_scan|seq_tup_read|n_tup_ins|n_tup_upd|n_tup_del|n_live_tup|n_dead_tup|vacuum_count
2703 --------+------------+---------+---------+---------+----------+----------+------------
2704 9| 29| 4| 5| 1| 1| 8| 0
2705 (1 row)
2706
2707
2708 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
2709 pg_stat_force_next_flush
2710 ------------------------
2711
2712 (1 row)
2713
2714 step s1_begin: BEGIN;
2715 step s1_table_insert: INSERT INTO test_stat_tab(key, value) VALUES('k1', 1), ('k2', 1), ('k3', 1);
2716 step s1_table_update_k1: UPDATE test_stat_tab SET value = value + 1 WHERE key = 'k1';
2717 step s1_table_update_k1: UPDATE test_stat_tab SET value = value + 1 WHERE key = 'k1';
2718 step s1_table_update_k2: UPDATE test_stat_tab SET value = value + 1 WHERE key = 'k2';
2719 step s1_table_update_k2: UPDATE test_stat_tab SET value = value + 1 WHERE key = 'k2';
2720 step s1_table_update_k2: UPDATE test_stat_tab SET value = value + 1 WHERE key = 'k2';
2721 step s1_table_delete_k1: DELETE FROM test_stat_tab WHERE key = 'k1';
2722 step s1_table_select: SELECT * FROM test_stat_tab ORDER BY key, value;
2723 key|value
2724 ---+-----
2725 k0 | 1
2726 k2 | 4
2727 k3 | 1
2728 (3 rows)
2729
2730 step s1_prepare_a: PREPARE TRANSACTION 'a';
2731 step s1_table_select: SELECT * FROM test_stat_tab ORDER BY key, value;
2732 key|value
2733 ---+-----
2734 k0 | 1
2735 (1 row)
2736
2737 step s2_rollback_prepared_a: ROLLBACK PREPARED 'a';
2738 step s1_table_select: SELECT * FROM test_stat_tab ORDER BY key, value;
2739 key|value
2740 ---+-----
2741 k0 | 1
2742 (1 row)
2743
2744 step s1_ff: SELECT pg_stat_force_next_flush();
2745 pg_stat_force_next_flush
2746 ------------------------
2747
2748 (1 row)
2749
2750 step s2_ff: SELECT pg_stat_force_next_flush();
2751 pg_stat_force_next_flush
2752 ------------------------
2753
2754 (1 row)
2755
2756 step s1_table_stats:
2757 SELECT
2758 pg_stat_get_numscans(tso.oid) AS seq_scan,
2759 pg_stat_get_tuples_returned(tso.oid) AS seq_tup_read,
2760 pg_stat_get_tuples_inserted(tso.oid) AS n_tup_ins,
2761 pg_stat_get_tuples_updated(tso.oid) AS n_tup_upd,
2762 pg_stat_get_tuples_deleted(tso.oid) AS n_tup_del,
2763 pg_stat_get_live_tuples(tso.oid) AS n_live_tup,
2764 pg_stat_get_dead_tuples(tso.oid) AS n_dead_tup,
2765 pg_stat_get_vacuum_count(tso.oid) AS vacuum_count
2766 FROM test_stat_oid AS tso
2767 WHERE tso.name = 'test_stat_tab'
2768
2769 seq_scan|seq_tup_read|n_tup_ins|n_tup_upd|n_tup_del|n_live_tup|n_dead_tup|vacuum_count
2770 --------+------------+---------+---------+---------+----------+----------+------------
2771 9| 29| 4| 5| 1| 1| 8| 0
2772 (1 row)
2773
2774
2775 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
2776 pg_stat_force_next_flush
2777 ------------------------
2778
2779 (1 row)
2780
2781 step s1_table_insert: INSERT INTO test_stat_tab(key, value) VALUES('k1', 1), ('k2', 1), ('k3', 1);
2782 step s1_begin: BEGIN;
2783 step s1_table_update_k1: UPDATE test_stat_tab SET value = value + 1 WHERE key = 'k1';
2784 step s1_table_update_k1: UPDATE test_stat_tab SET value = value + 1 WHERE key = 'k1';
2785 step s1_table_truncate: TRUNCATE test_stat_tab;
2786 step s1_table_insert_k1: INSERT INTO test_stat_tab(key, value) VALUES('k1', 1);
2787 step s1_table_update_k1: UPDATE test_stat_tab SET value = value + 1 WHERE key = 'k1';
2788 step s1_prepare_a: PREPARE TRANSACTION 'a';
2789 step s1_commit_prepared_a: COMMIT PREPARED 'a';
2790 step s1_ff: SELECT pg_stat_force_next_flush();
2791 pg_stat_force_next_flush
2792 ------------------------
2793
2794 (1 row)
2795
2796 step s1_table_stats:
2797 SELECT
2798 pg_stat_get_numscans(tso.oid) AS seq_scan,
2799 pg_stat_get_tuples_returned(tso.oid) AS seq_tup_read,
2800 pg_stat_get_tuples_inserted(tso.oid) AS n_tup_ins,
2801 pg_stat_get_tuples_updated(tso.oid) AS n_tup_upd,
2802 pg_stat_get_tuples_deleted(tso.oid) AS n_tup_del,
2803 pg_stat_get_live_tuples(tso.oid) AS n_live_tup,
2804 pg_stat_get_dead_tuples(tso.oid) AS n_dead_tup,
2805 pg_stat_get_vacuum_count(tso.oid) AS vacuum_count
2806 FROM test_stat_oid AS tso
2807 WHERE tso.name = 'test_stat_tab'
2808
2809 seq_scan|seq_tup_read|n_tup_ins|n_tup_upd|n_tup_del|n_live_tup|n_dead_tup|vacuum_count
2810 --------+------------+---------+---------+---------+----------+----------+------------
2811 3| 9| 5| 1| 0| 1| 1| 0
2812 (1 row)
2813
2814
2815 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
2816 pg_stat_force_next_flush
2817 ------------------------
2818
2819 (1 row)
2820
2821 step s1_table_insert: INSERT INTO test_stat_tab(key, value) VALUES('k1', 1), ('k2', 1), ('k3', 1);
2822 step s1_begin: BEGIN;
2823 step s1_table_update_k1: UPDATE test_stat_tab SET value = value + 1 WHERE key = 'k1';
2824 step s1_table_update_k1: UPDATE test_stat_tab SET value = value + 1 WHERE key = 'k1';
2825 step s1_table_truncate: TRUNCATE test_stat_tab;
2826 step s1_table_insert_k1: INSERT INTO test_stat_tab(key, value) VALUES('k1', 1);
2827 step s1_table_update_k1: UPDATE test_stat_tab SET value = value + 1 WHERE key = 'k1';
2828 step s1_prepare_a: PREPARE TRANSACTION 'a';
2829 step s1_ff: SELECT pg_stat_force_next_flush();
2830 pg_stat_force_next_flush
2831 ------------------------
2832
2833 (1 row)
2834
2835 step s2_commit_prepared_a: COMMIT PREPARED 'a';
2836 step s2_ff: SELECT pg_stat_force_next_flush();
2837 pg_stat_force_next_flush
2838 ------------------------
2839
2840 (1 row)
2841
2842 step s1_table_stats:
2843 SELECT
2844 pg_stat_get_numscans(tso.oid) AS seq_scan,
2845 pg_stat_get_tuples_returned(tso.oid) AS seq_tup_read,
2846 pg_stat_get_tuples_inserted(tso.oid) AS n_tup_ins,
2847 pg_stat_get_tuples_updated(tso.oid) AS n_tup_upd,
2848 pg_stat_get_tuples_deleted(tso.oid) AS n_tup_del,
2849 pg_stat_get_live_tuples(tso.oid) AS n_live_tup,
2850 pg_stat_get_dead_tuples(tso.oid) AS n_dead_tup,
2851 pg_stat_get_vacuum_count(tso.oid) AS vacuum_count
2852 FROM test_stat_oid AS tso
2853 WHERE tso.name = 'test_stat_tab'
2854
2855 seq_scan|seq_tup_read|n_tup_ins|n_tup_upd|n_tup_del|n_live_tup|n_dead_tup|vacuum_count
2856 --------+------------+---------+---------+---------+----------+----------+------------
2857 3| 9| 5| 1| 0| 1| 1| 0
2858 (1 row)
2859
2860
2861 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
2862 pg_stat_force_next_flush
2863 ------------------------
2864
2865 (1 row)
2866
2867 step s1_table_insert: INSERT INTO test_stat_tab(key, value) VALUES('k1', 1), ('k2', 1), ('k3', 1);
2868 step s1_begin: BEGIN;
2869 step s1_table_update_k1: UPDATE test_stat_tab SET value = value + 1 WHERE key = 'k1';
2870 step s1_table_update_k1: UPDATE test_stat_tab SET value = value + 1 WHERE key = 'k1';
2871 step s1_table_truncate: TRUNCATE test_stat_tab;
2872 step s1_table_insert_k1: INSERT INTO test_stat_tab(key, value) VALUES('k1', 1);
2873 step s1_table_update_k1: UPDATE test_stat_tab SET value = value + 1 WHERE key = 'k1';
2874 step s1_prepare_a: PREPARE TRANSACTION 'a';
2875 step s1_rollback_prepared_a: ROLLBACK PREPARED 'a';
2876 step s1_ff: SELECT pg_stat_force_next_flush();
2877 pg_stat_force_next_flush
2878 ------------------------
2879
2880 (1 row)
2881
2882 step s1_table_stats:
2883 SELECT
2884 pg_stat_get_numscans(tso.oid) AS seq_scan,
2885 pg_stat_get_tuples_returned(tso.oid) AS seq_tup_read,
2886 pg_stat_get_tuples_inserted(tso.oid) AS n_tup_ins,
2887 pg_stat_get_tuples_updated(tso.oid) AS n_tup_upd,
2888 pg_stat_get_tuples_deleted(tso.oid) AS n_tup_del,
2889 pg_stat_get_live_tuples(tso.oid) AS n_live_tup,
2890 pg_stat_get_dead_tuples(tso.oid) AS n_dead_tup,
2891 pg_stat_get_vacuum_count(tso.oid) AS vacuum_count
2892 FROM test_stat_oid AS tso
2893 WHERE tso.name = 'test_stat_tab'
2894
2895 seq_scan|seq_tup_read|n_tup_ins|n_tup_upd|n_tup_del|n_live_tup|n_dead_tup|vacuum_count
2896 --------+------------+---------+---------+---------+----------+----------+------------
2897 3| 9| 4| 2| 0| 4| 2| 0
2898 (1 row)
2899
2900
2901 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
2902 pg_stat_force_next_flush
2903 ------------------------
2904
2905 (1 row)
2906
2907 step s1_table_insert: INSERT INTO test_stat_tab(key, value) VALUES('k1', 1), ('k2', 1), ('k3', 1);
2908 step s1_begin: BEGIN;
2909 step s1_table_update_k1: UPDATE test_stat_tab SET value = value + 1 WHERE key = 'k1';
2910 step s1_table_update_k1: UPDATE test_stat_tab SET value = value + 1 WHERE key = 'k1';
2911 step s1_table_truncate: TRUNCATE test_stat_tab;
2912 step s1_table_insert_k1: INSERT INTO test_stat_tab(key, value) VALUES('k1', 1);
2913 step s1_table_update_k1: UPDATE test_stat_tab SET value = value + 1 WHERE key = 'k1';
2914 step s1_prepare_a: PREPARE TRANSACTION 'a';
2915 step s2_rollback_prepared_a: ROLLBACK PREPARED 'a';
2916 step s1_ff: SELECT pg_stat_force_next_flush();
2917 pg_stat_force_next_flush
2918 ------------------------
2919
2920 (1 row)
2921
2922 step s2_ff: SELECT pg_stat_force_next_flush();
2923 pg_stat_force_next_flush
2924 ------------------------
2925
2926 (1 row)
2927
2928 step s1_table_stats:
2929 SELECT
2930 pg_stat_get_numscans(tso.oid) AS seq_scan,
2931 pg_stat_get_tuples_returned(tso.oid) AS seq_tup_read,
2932 pg_stat_get_tuples_inserted(tso.oid) AS n_tup_ins,
2933 pg_stat_get_tuples_updated(tso.oid) AS n_tup_upd,
2934 pg_stat_get_tuples_deleted(tso.oid) AS n_tup_del,
2935 pg_stat_get_live_tuples(tso.oid) AS n_live_tup,
2936 pg_stat_get_dead_tuples(tso.oid) AS n_dead_tup,
2937 pg_stat_get_vacuum_count(tso.oid) AS vacuum_count
2938 FROM test_stat_oid AS tso
2939 WHERE tso.name = 'test_stat_tab'
2940
2941 seq_scan|seq_tup_read|n_tup_ins|n_tup_upd|n_tup_del|n_live_tup|n_dead_tup|vacuum_count
2942 --------+------------+---------+---------+---------+----------+----------+------------
2943 3| 9| 4| 2| 0| 4| 2| 0
2944 (1 row)
2945
2946
2947 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
2948 pg_stat_force_next_flush
2949 ------------------------
2950
2951 (1 row)
2952
2953 step s1_table_insert: INSERT INTO test_stat_tab(key, value) VALUES('k1', 1), ('k2', 1), ('k3', 1);
2954 step s1_table_update_k1: UPDATE test_stat_tab SET value = value + 1 WHERE key = 'k1';
2955 step s1_begin: BEGIN;
2956 step s1_table_delete_k1: DELETE FROM test_stat_tab WHERE key = 'k1';
2957 step s1_table_insert_k1: INSERT INTO test_stat_tab(key, value) VALUES('k1', 1);
2958 step s1_table_update_k1: UPDATE test_stat_tab SET value = value + 1 WHERE key = 'k1';
2959 step s1_table_update_k1: UPDATE test_stat_tab SET value = value + 1 WHERE key = 'k1';
2960 step s1_table_drop: DROP TABLE test_stat_tab;
2961 step s1_prepare_a: PREPARE TRANSACTION 'a';
2962 step s1_rollback_prepared_a: ROLLBACK PREPARED 'a';
2963 step s1_ff: SELECT pg_stat_force_next_flush();
2964 pg_stat_force_next_flush
2965 ------------------------
2966
2967 (1 row)
2968
2969 step s1_table_stats:
2970 SELECT
2971 pg_stat_get_numscans(tso.oid) AS seq_scan,
2972 pg_stat_get_tuples_returned(tso.oid) AS seq_tup_read,
2973 pg_stat_get_tuples_inserted(tso.oid) AS n_tup_ins,
2974 pg_stat_get_tuples_updated(tso.oid) AS n_tup_upd,
2975 pg_stat_get_tuples_deleted(tso.oid) AS n_tup_del,
2976 pg_stat_get_live_tuples(tso.oid) AS n_live_tup,
2977 pg_stat_get_dead_tuples(tso.oid) AS n_dead_tup,
2978 pg_stat_get_vacuum_count(tso.oid) AS vacuum_count
2979 FROM test_stat_oid AS tso
2980 WHERE tso.name = 'test_stat_tab'
2981
2982 seq_scan|seq_tup_read|n_tup_ins|n_tup_upd|n_tup_del|n_live_tup|n_dead_tup|vacuum_count
2983 --------+------------+---------+---------+---------+----------+----------+------------
2984 4| 16| 5| 3| 1| 4| 4| 0
2985 (1 row)
2986
2987
2988 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
2989 pg_stat_force_next_flush
2990 ------------------------
2991
2992 (1 row)
2993
2994 step s1_table_insert: INSERT INTO test_stat_tab(key, value) VALUES('k1', 1), ('k2', 1), ('k3', 1);
2995 step s1_table_update_k1: UPDATE test_stat_tab SET value = value + 1 WHERE key = 'k1';
2996 step s1_begin: BEGIN;
2997 step s1_table_delete_k1: DELETE FROM test_stat_tab WHERE key = 'k1';
2998 step s1_table_insert_k1: INSERT INTO test_stat_tab(key, value) VALUES('k1', 1);
2999 step s1_table_update_k1: UPDATE test_stat_tab SET value = value + 1 WHERE key = 'k1';
3000 step s1_table_update_k1: UPDATE test_stat_tab SET value = value + 1 WHERE key = 'k1';
3001 step s1_table_drop: DROP TABLE test_stat_tab;
3002 step s1_prepare_a: PREPARE TRANSACTION 'a';
3003 step s2_rollback_prepared_a: ROLLBACK PREPARED 'a';
3004 step s1_ff: SELECT pg_stat_force_next_flush();
3005 pg_stat_force_next_flush
3006 ------------------------
3007
3008 (1 row)
3009
3010 step s2_ff: SELECT pg_stat_force_next_flush();
3011 pg_stat_force_next_flush
3012 ------------------------
3013
3014 (1 row)
3015
3016 step s1_table_stats:
3017 SELECT
3018 pg_stat_get_numscans(tso.oid) AS seq_scan,
3019 pg_stat_get_tuples_returned(tso.oid) AS seq_tup_read,
3020 pg_stat_get_tuples_inserted(tso.oid) AS n_tup_ins,
3021 pg_stat_get_tuples_updated(tso.oid) AS n_tup_upd,
3022 pg_stat_get_tuples_deleted(tso.oid) AS n_tup_del,
3023 pg_stat_get_live_tuples(tso.oid) AS n_live_tup,
3024 pg_stat_get_dead_tuples(tso.oid) AS n_dead_tup,
3025 pg_stat_get_vacuum_count(tso.oid) AS vacuum_count
3026 FROM test_stat_oid AS tso
3027 WHERE tso.name = 'test_stat_tab'
3028
3029 seq_scan|seq_tup_read|n_tup_ins|n_tup_upd|n_tup_del|n_live_tup|n_dead_tup|vacuum_count
3030 --------+------------+---------+---------+---------+----------+----------+------------
3031 4| 16| 5| 3| 1| 4| 4| 0
3032 (1 row)
3033
3034
3035 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
3036 pg_stat_force_next_flush
3037 ------------------------
3038
3039 (1 row)
3040
3041 step s1_slru_save_stats:
3042 INSERT INTO test_slru_stats VALUES('notify', 'blks_zeroed',
3043 (SELECT blks_zeroed FROM pg_stat_slru WHERE name = 'notify'));
3044
3045 step s1_listen: LISTEN stats_test_nothing;
3046 step s1_begin: BEGIN;
3047 step s1_big_notify: SELECT pg_notify('stats_test_use',
3048 repeat(i::text, current_setting('block_size')::int / 2)) FROM generate_series(1, 3) g(i);
3049
3050 pg_notify
3051 ---------
3052
3053
3054
3055 (3 rows)
3056
3057 step s1_ff: SELECT pg_stat_force_next_flush();
3058 pg_stat_force_next_flush
3059 ------------------------
3060
3061 (1 row)
3062
3063 step s1_slru_check_stats:
3064 SELECT current.blks_zeroed > before.value
3065 FROM test_slru_stats before
3066 INNER JOIN pg_stat_slru current
3067 ON before.slru = current.name
3068 WHERE before.stat = 'blks_zeroed';
3069
3070 ?column?
3071 --------
3072 f
3073 (1 row)
3074
3075 step s1_commit: COMMIT;
3076 step s1_slru_check_stats:
3077 SELECT current.blks_zeroed > before.value
3078 FROM test_slru_stats before
3079 INNER JOIN pg_stat_slru current
3080 ON before.slru = current.name
3081 WHERE before.stat = 'blks_zeroed';
3082
3083 ?column?
3084 --------
3085 t
3086 (1 row)
3087
3088
3089 starting permutation: s1_slru_save_stats s1_listen s2_big_notify s2_ff s1_slru_check_stats
3090 pg_stat_force_next_flush
3091 ------------------------
3092
3093 (1 row)
3094
3095 step s1_slru_save_stats:
3096 INSERT INTO test_slru_stats VALUES('notify', 'blks_zeroed',
3097 (SELECT blks_zeroed FROM pg_stat_slru WHERE name = 'notify'));
3098
3099 step s1_listen: LISTEN stats_test_nothing;
3100 step s2_big_notify: SELECT pg_notify('stats_test_use',
3101 repeat(i::text, current_setting('block_size')::int / 2)) FROM generate_series(1, 3) g(i);
3102
3103 pg_notify
3104 ---------
3105
3106
3107
3108 (3 rows)
3109
3110 step s2_ff: SELECT pg_stat_force_next_flush();
3111 pg_stat_force_next_flush
3112 ------------------------
3113
3114 (1 row)
3115
3116 step s1_slru_check_stats:
3117 SELECT current.blks_zeroed > before.value
3118 FROM test_slru_stats before
3119 INNER JOIN pg_stat_slru current
3120 ON before.slru = current.name
3121 WHERE before.stat = 'blks_zeroed';
3122
3123 ?column?
3124 --------
3125 t
3126 (1 row)
3127
3128
3129 starting permutation: s1_slru_save_stats s1_listen s2_begin s2_big_notify s2_ff s1_slru_check_stats s2_commit
3130 pg_stat_force_next_flush
3131 ------------------------
3132
3133 (1 row)
3134
3135 step s1_slru_save_stats:
3136 INSERT INTO test_slru_stats VALUES('notify', 'blks_zeroed',
3137 (SELECT blks_zeroed FROM pg_stat_slru WHERE name = 'notify'));
3138
3139 step s1_listen: LISTEN stats_test_nothing;
3140 step s2_begin: BEGIN;
3141 step s2_big_notify: SELECT pg_notify('stats_test_use',
3142 repeat(i::text, current_setting('block_size')::int / 2)) FROM generate_series(1, 3) g(i);
3143
3144 pg_notify
3145 ---------
3146
3147
3148
3149 (3 rows)
3150
3151 step s2_ff: SELECT pg_stat_force_next_flush();
3152 pg_stat_force_next_flush
3153 ------------------------
3154
3155 (1 row)
3156
3157 step s1_slru_check_stats:
3158 SELECT current.blks_zeroed > before.value
3159 FROM test_slru_stats before
3160 INNER JOIN pg_stat_slru current
3161 ON before.slru = current.name
3162 WHERE before.stat = 'blks_zeroed';
3163
3164 ?column?
3165 --------
3166 f
3167 (1 row)
3168
3169 step s2_commit: COMMIT;
3170
3171 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
3172 pg_stat_force_next_flush
3173 ------------------------
3174
3175 (1 row)
3176
3177 step s1_fetch_consistency_none: SET stats_fetch_consistency = 'none';
3178 step s1_slru_save_stats:
3179 INSERT INTO test_slru_stats VALUES('notify', 'blks_zeroed',
3180 (SELECT blks_zeroed FROM pg_stat_slru WHERE name = 'notify'));
3181
3182 step s1_listen: LISTEN stats_test_nothing;
3183 step s1_begin: BEGIN;
3184 step s1_slru_check_stats:
3185 SELECT current.blks_zeroed > before.value
3186 FROM test_slru_stats before
3187 INNER JOIN pg_stat_slru current
3188 ON before.slru = current.name
3189 WHERE before.stat = 'blks_zeroed';
3190
3191 ?column?
3192 --------
3193 f
3194 (1 row)
3195
3196 step s2_big_notify: SELECT pg_notify('stats_test_use',
3197 repeat(i::text, current_setting('block_size')::int / 2)) FROM generate_series(1, 3) g(i);
3198
3199 pg_notify
3200 ---------
3201
3202
3203
3204 (3 rows)
3205
3206 step s2_ff: SELECT pg_stat_force_next_flush();
3207 pg_stat_force_next_flush
3208 ------------------------
3209
3210 (1 row)
3211
3212 step s1_slru_check_stats:
3213 SELECT current.blks_zeroed > before.value
3214 FROM test_slru_stats before
3215 INNER JOIN pg_stat_slru current
3216 ON before.slru = current.name
3217 WHERE before.stat = 'blks_zeroed';
3218
3219 ?column?
3220 --------
3221 t
3222 (1 row)
3223
3224 step s1_commit: COMMIT;
3225 step s1_slru_check_stats:
3226 SELECT current.blks_zeroed > before.value
3227 FROM test_slru_stats before
3228 INNER JOIN pg_stat_slru current
3229 ON before.slru = current.name
3230 WHERE before.stat = 'blks_zeroed';
3231
3232 ?column?
3233 --------
3234 t
3235 (1 row)
3236
3237
3238 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
3239 pg_stat_force_next_flush
3240 ------------------------
3241
3242 (1 row)
3243
3244 step s1_fetch_consistency_cache: SET stats_fetch_consistency = 'cache';
3245 step s1_slru_save_stats:
3246 INSERT INTO test_slru_stats VALUES('notify', 'blks_zeroed',
3247 (SELECT blks_zeroed FROM pg_stat_slru WHERE name = 'notify'));
3248
3249 step s1_listen: LISTEN stats_test_nothing;
3250 step s1_begin: BEGIN;
3251 step s1_slru_check_stats:
3252 SELECT current.blks_zeroed > before.value
3253 FROM test_slru_stats before
3254 INNER JOIN pg_stat_slru current
3255 ON before.slru = current.name
3256 WHERE before.stat = 'blks_zeroed';
3257
3258 ?column?
3259 --------
3260 f
3261 (1 row)
3262
3263 step s2_big_notify: SELECT pg_notify('stats_test_use',
3264 repeat(i::text, current_setting('block_size')::int / 2)) FROM generate_series(1, 3) g(i);
3265
3266 pg_notify
3267 ---------
3268
3269
3270
3271 (3 rows)
3272
3273 step s2_ff: SELECT pg_stat_force_next_flush();
3274 pg_stat_force_next_flush
3275 ------------------------
3276
3277 (1 row)
3278
3279 step s1_slru_check_stats:
3280 SELECT current.blks_zeroed > before.value
3281 FROM test_slru_stats before
3282 INNER JOIN pg_stat_slru current
3283 ON before.slru = current.name
3284 WHERE before.stat = 'blks_zeroed';
3285
3286 ?column?
3287 --------
3288 f
3289 (1 row)
3290
3291 step s1_commit: COMMIT;
3292 step s1_slru_check_stats:
3293 SELECT current.blks_zeroed > before.value
3294 FROM test_slru_stats before
3295 INNER JOIN pg_stat_slru current
3296 ON before.slru = current.name
3297 WHERE before.stat = 'blks_zeroed';
3298
3299 ?column?
3300 --------
3301 t
3302 (1 row)
3303
3304
3305 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
3306 pg_stat_force_next_flush
3307 ------------------------
3308
3309 (1 row)
3310
3311 step s1_fetch_consistency_snapshot: SET stats_fetch_consistency = 'snapshot';
3312 step s1_slru_save_stats:
3313 INSERT INTO test_slru_stats VALUES('notify', 'blks_zeroed',
3314 (SELECT blks_zeroed FROM pg_stat_slru WHERE name = 'notify'));
3315
3316 step s1_listen: LISTEN stats_test_nothing;
3317 step s1_begin: BEGIN;
3318 step s1_slru_check_stats:
3319 SELECT current.blks_zeroed > before.value
3320 FROM test_slru_stats before
3321 INNER JOIN pg_stat_slru current
3322 ON before.slru = current.name
3323 WHERE before.stat = 'blks_zeroed';
3324
3325 ?column?
3326 --------
3327 f
3328 (1 row)
3329
3330 step s2_big_notify: SELECT pg_notify('stats_test_use',
3331 repeat(i::text, current_setting('block_size')::int / 2)) FROM generate_series(1, 3) g(i);
3332
3333 pg_notify
3334 ---------
3335
3336
3337
3338 (3 rows)
3339
3340 step s2_ff: SELECT pg_stat_force_next_flush();
3341 pg_stat_force_next_flush
3342 ------------------------
3343
3344 (1 row)
3345
3346 step s1_slru_check_stats:
3347 SELECT current.blks_zeroed > before.value
3348 FROM test_slru_stats before
3349 INNER JOIN pg_stat_slru current
3350 ON before.slru = current.name
3351 WHERE before.stat = 'blks_zeroed';
3352
3353 ?column?
3354 --------
3355 f
3356 (1 row)
3357
3358 step s1_commit: COMMIT;
3359 step s1_slru_check_stats:
3360 SELECT current.blks_zeroed > before.value
3361 FROM test_slru_stats before
3362 INNER JOIN pg_stat_slru current
3363 ON before.slru = current.name
3364 WHERE before.stat = 'blks_zeroed';
3365
3366 ?column?
3367 --------
3368 t
3369 (1 row)
3370
3371
3372 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
3373 pg_stat_force_next_flush
3374 ------------------------
3375
3376 (1 row)
3377
3378 step s1_fetch_consistency_none: SET stats_fetch_consistency = 'none';
3379 step s1_slru_save_stats:
3380 INSERT INTO test_slru_stats VALUES('notify', 'blks_zeroed',
3381 (SELECT blks_zeroed FROM pg_stat_slru WHERE name = 'notify'));
3382
3383 step s1_listen: LISTEN stats_test_nothing;
3384 step s1_begin: BEGIN;
3385 step s1_slru_check_stats:
3386 SELECT current.blks_zeroed > before.value
3387 FROM test_slru_stats before
3388 INNER JOIN pg_stat_slru current
3389 ON before.slru = current.name
3390 WHERE before.stat = 'blks_zeroed';
3391
3392 ?column?
3393 --------
3394 f
3395 (1 row)
3396
3397 step s2_big_notify: SELECT pg_notify('stats_test_use',
3398 repeat(i::text, current_setting('block_size')::int / 2)) FROM generate_series(1, 3) g(i);
3399
3400 pg_notify
3401 ---------
3402
3403
3404
3405 (3 rows)
3406
3407 step s2_ff: SELECT pg_stat_force_next_flush();
3408 pg_stat_force_next_flush
3409 ------------------------
3410
3411 (1 row)
3412
3413 step s1_slru_check_stats:
3414 SELECT current.blks_zeroed > before.value
3415 FROM test_slru_stats before
3416 INNER JOIN pg_stat_slru current
3417 ON before.slru = current.name
3418 WHERE before.stat = 'blks_zeroed';
3419
3420 ?column?
3421 --------
3422 t
3423 (1 row)
3424
3425 step s1_clear_snapshot: SELECT pg_stat_clear_snapshot();
3426 pg_stat_clear_snapshot
3427 ----------------------
3428
3429 (1 row)
3430
3431 step s1_slru_check_stats:
3432 SELECT current.blks_zeroed > before.value
3433 FROM test_slru_stats before
3434 INNER JOIN pg_stat_slru current
3435 ON before.slru = current.name
3436 WHERE before.stat = 'blks_zeroed';
3437
3438 ?column?
3439 --------
3440 t
3441 (1 row)
3442
3443 step s1_commit: COMMIT;
3444
3445 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
3446 pg_stat_force_next_flush
3447 ------------------------
3448
3449 (1 row)
3450
3451 step s1_fetch_consistency_cache: SET stats_fetch_consistency = 'cache';
3452 step s1_slru_save_stats:
3453 INSERT INTO test_slru_stats VALUES('notify', 'blks_zeroed',
3454 (SELECT blks_zeroed FROM pg_stat_slru WHERE name = 'notify'));
3455
3456 step s1_listen: LISTEN stats_test_nothing;
3457 step s1_begin: BEGIN;
3458 step s1_slru_check_stats:
3459 SELECT current.blks_zeroed > before.value
3460 FROM test_slru_stats before
3461 INNER JOIN pg_stat_slru current
3462 ON before.slru = current.name
3463 WHERE before.stat = 'blks_zeroed';
3464
3465 ?column?
3466 --------
3467 f
3468 (1 row)
3469
3470 step s2_big_notify: SELECT pg_notify('stats_test_use',
3471 repeat(i::text, current_setting('block_size')::int / 2)) FROM generate_series(1, 3) g(i);
3472
3473 pg_notify
3474 ---------
3475
3476
3477
3478 (3 rows)
3479
3480 step s2_ff: SELECT pg_stat_force_next_flush();
3481 pg_stat_force_next_flush
3482 ------------------------
3483
3484 (1 row)
3485
3486 step s1_slru_check_stats:
3487 SELECT current.blks_zeroed > before.value
3488 FROM test_slru_stats before
3489 INNER JOIN pg_stat_slru current
3490 ON before.slru = current.name
3491 WHERE before.stat = 'blks_zeroed';
3492
3493 ?column?
3494 --------
3495 f
3496 (1 row)
3497
3498 step s1_clear_snapshot: SELECT pg_stat_clear_snapshot();
3499 pg_stat_clear_snapshot
3500 ----------------------
3501
3502 (1 row)
3503
3504 step s1_slru_check_stats:
3505 SELECT current.blks_zeroed > before.value
3506 FROM test_slru_stats before
3507 INNER JOIN pg_stat_slru current
3508 ON before.slru = current.name
3509 WHERE before.stat = 'blks_zeroed';
3510
3511 ?column?
3512 --------
3513 t
3514 (1 row)
3515
3516 step s1_commit: COMMIT;
3517
3518 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
3519 pg_stat_force_next_flush
3520 ------------------------
3521
3522 (1 row)
3523
3524 step s1_fetch_consistency_snapshot: SET stats_fetch_consistency = 'snapshot';
3525 step s1_slru_save_stats:
3526 INSERT INTO test_slru_stats VALUES('notify', 'blks_zeroed',
3527 (SELECT blks_zeroed FROM pg_stat_slru WHERE name = 'notify'));
3528
3529 step s1_listen: LISTEN stats_test_nothing;
3530 step s1_begin: BEGIN;
3531 step s1_slru_check_stats:
3532 SELECT current.blks_zeroed > before.value
3533 FROM test_slru_stats before
3534 INNER JOIN pg_stat_slru current
3535 ON before.slru = current.name
3536 WHERE before.stat = 'blks_zeroed';
3537
3538 ?column?
3539 --------
3540 f
3541 (1 row)
3542
3543 step s2_big_notify: SELECT pg_notify('stats_test_use',
3544 repeat(i::text, current_setting('block_size')::int / 2)) FROM generate_series(1, 3) g(i);
3545
3546 pg_notify
3547 ---------
3548
3549
3550
3551 (3 rows)
3552
3553 step s2_ff: SELECT pg_stat_force_next_flush();
3554 pg_stat_force_next_flush
3555 ------------------------
3556
3557 (1 row)
3558
3559 step s1_slru_check_stats:
3560 SELECT current.blks_zeroed > before.value
3561 FROM test_slru_stats before
3562 INNER JOIN pg_stat_slru current
3563 ON before.slru = current.name
3564 WHERE before.stat = 'blks_zeroed';
3565
3566 ?column?
3567 --------
3568 f
3569 (1 row)
3570
3571 step s1_clear_snapshot: SELECT pg_stat_clear_snapshot();
3572 pg_stat_clear_snapshot
3573 ----------------------
3574
3575 (1 row)
3576
3577 step s1_slru_check_stats:
3578 SELECT current.blks_zeroed > before.value
3579 FROM test_slru_stats before
3580 INNER JOIN pg_stat_slru current
3581 ON before.slru = current.name
3582 WHERE before.stat = 'blks_zeroed';
3583
3584 ?column?
3585 --------
3586 t
3587 (1 row)
3588
3589 step s1_commit: COMMIT;
3590
3591 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
3592 pg_stat_force_next_flush
3593 ------------------------
3594
3595 (1 row)
3596
3597 step s1_fetch_consistency_snapshot: SET stats_fetch_consistency = 'snapshot';
3598 step s1_slru_save_stats:
3599 INSERT INTO test_slru_stats VALUES('notify', 'blks_zeroed',
3600 (SELECT blks_zeroed FROM pg_stat_slru WHERE name = 'notify'));
3601
3602 step s1_listen: LISTEN stats_test_nothing;
3603 step s1_begin: BEGIN;
3604 step s1_func_stats:
3605 SELECT
3606 tso.name,
3607 pg_stat_get_function_calls(tso.oid),
3608 pg_stat_get_function_total_time(tso.oid) > 0 total_above_zero,
3609 pg_stat_get_function_self_time(tso.oid) > 0 self_above_zero
3610 FROM test_stat_oid AS tso
3611 WHERE tso.name = 'test_stat_func'
3612
3613 name |pg_stat_get_function_calls|total_above_zero|self_above_zero
3614 --------------+--------------------------+----------------+---------------
3615 test_stat_func| | |
3616 (1 row)
3617
3618 step s2_big_notify: SELECT pg_notify('stats_test_use',
3619 repeat(i::text, current_setting('block_size')::int / 2)) FROM generate_series(1, 3) g(i);
3620
3621 pg_notify
3622 ---------
3623
3624
3625
3626 (3 rows)
3627
3628 step s2_ff: SELECT pg_stat_force_next_flush();
3629 pg_stat_force_next_flush
3630 ------------------------
3631
3632 (1 row)
3633
3634 step s1_slru_check_stats:
3635 SELECT current.blks_zeroed > before.value
3636 FROM test_slru_stats before
3637 INNER JOIN pg_stat_slru current
3638 ON before.slru = current.name
3639 WHERE before.stat = 'blks_zeroed';
3640
3641 ?column?
3642 --------
3643 f
3644 (1 row)
3645
3646 step s1_commit: COMMIT;
3647
3648 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
3649 pg_stat_force_next_flush
3650 ------------------------
3651
3652 (1 row)
3653
3654 step s1_fetch_consistency_snapshot: SET stats_fetch_consistency = 'snapshot';
3655 step s1_slru_save_stats:
3656 INSERT INTO test_slru_stats VALUES('notify', 'blks_zeroed',
3657 (SELECT blks_zeroed FROM pg_stat_slru WHERE name = 'notify'));
3658
3659 step s1_listen: LISTEN stats_test_nothing;
3660 step s1_begin: BEGIN;
3661 step s2_big_notify: SELECT pg_notify('stats_test_use',
3662 repeat(i::text, current_setting('block_size')::int / 2)) FROM generate_series(1, 3) g(i);
3663
3664 pg_notify
3665 ---------
3666
3667
3668
3669 (3 rows)
3670
3671 step s2_ff: SELECT pg_stat_force_next_flush();
3672 pg_stat_force_next_flush
3673 ------------------------
3674
3675 (1 row)
3676
3677 step s1_slru_check_stats:
3678 SELECT current.blks_zeroed > before.value
3679 FROM test_slru_stats before
3680 INNER JOIN pg_stat_slru current
3681 ON before.slru = current.name
3682 WHERE before.stat = 'blks_zeroed';
3683
3684 ?column?
3685 --------
3686 t
3687 (1 row)
3688
3689 step s2_func_call: SELECT test_stat_func()
3690 test_stat_func
3691 --------------
3692
3693 (1 row)
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_func_stats:
3702 SELECT
3703 tso.name,
3704 pg_stat_get_function_calls(tso.oid),
3705 pg_stat_get_function_total_time(tso.oid) > 0 total_above_zero,
3706 pg_stat_get_function_self_time(tso.oid) > 0 self_above_zero
3707 FROM test_stat_oid AS tso
3708 WHERE tso.name = 'test_stat_func'
3709
3710 name |pg_stat_get_function_calls|total_above_zero|self_above_zero
3711 --------------+--------------------------+----------------+---------------
3712 test_stat_func| | |
3713 (1 row)
3714
3715 step s1_clear_snapshot: SELECT pg_stat_clear_snapshot();
3716 pg_stat_clear_snapshot
3717 ----------------------
3718
3719 (1 row)
3720
3721 step s1_func_stats:
3722 SELECT
3723 tso.name,
3724 pg_stat_get_function_calls(tso.oid),
3725 pg_stat_get_function_total_time(tso.oid) > 0 total_above_zero,
3726 pg_stat_get_function_self_time(tso.oid) > 0 self_above_zero
3727 FROM test_stat_oid AS tso
3728 WHERE tso.name = 'test_stat_func'
3729
3730 name |pg_stat_get_function_calls|total_above_zero|self_above_zero
3731 --------------+--------------------------+----------------+---------------
3732 test_stat_func| 1|t |t
3733 (1 row)
3734
3735 step s1_commit: COMMIT;