- Notifications
You must be signed in to change notification settings - Fork4.9k
Commit428fadb
committed
Move SQL tests of pg_stat_io for WAL data to recovery test 029_stats_restart
Three tests in the main regression test suite are proving to not beportable across multiple runs on a deployed cluster as stats ofpg_stat_io are reset. Problems happen for tests on:- Writes of WAL in the init context, when creating a WAL segment.- Syncs of WAL in the init context, when creating a WAL segment.- Reads of WAL in the normal context, requiring a WAL record to be read.For a `make check`, this could rely on the checkpoint record read by thestartup process when starting the cluster, something that is not goingto work for a deployed node.Two of the three tests are moved to the recovery TAP test029_stats_restart, where we already check the consistency of statsdata. The test for syncs is dropped as TAP can run with fsync=off. Theother two are checked with some data from a freshly-initialized cluster.Per discussion with Tom Lane, Bertrand Drouvot and Nazir Bilal Yavuz.Discussion:https://postgr.es/m/915687.1738780322@sss.pgh.pa.us1 parent401a695 commit428fadb
File tree
3 files changed
+33
-42
lines changed- src/test
- recovery/t
- regress
- expected
- sql
3 files changed
+33
-42
lines changedLines changed: 33 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
18 | 18 |
| |
19 | 19 |
| |
20 | 20 |
| |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
21 | 36 |
| |
22 | 37 |
| |
23 | 38 |
| |
| |||
39 | 54 |
| |
40 | 55 |
| |
41 | 56 |
| |
42 |
| - | |
| 57 | + | |
43 | 58 |
| |
44 | 59 |
| |
45 | 60 |
| |
| |||
342 | 357 |
| |
343 | 358 |
| |
344 | 359 |
| |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + |
Lines changed: 0 additions & 27 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
862 | 862 |
| |
863 | 863 |
| |
864 | 864 |
| |
865 |
| - | |
866 |
| - | |
867 |
| - | |
868 |
| - | |
869 |
| - | |
870 |
| - | |
871 |
| - | |
872 |
| - | |
873 |
| - | |
874 |
| - | |
875 |
| - | |
876 |
| - | |
877 |
| - | |
878 |
| - | |
879 |
| - | |
880 |
| - | |
881 |
| - | |
882 |
| - | |
883 |
| - | |
884 |
| - | |
885 |
| - | |
886 |
| - | |
887 |
| - | |
888 |
| - | |
889 |
| - | |
890 |
| - | |
891 |
| - | |
892 | 865 |
| |
893 | 866 |
| |
894 | 867 |
| |
|
Lines changed: 0 additions & 14 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
442 | 442 |
| |
443 | 443 |
| |
444 | 444 |
| |
445 |
| - | |
446 |
| - | |
447 |
| - | |
448 |
| - | |
449 |
| - | |
450 |
| - | |
451 |
| - | |
452 |
| - | |
453 |
| - | |
454 |
| - | |
455 |
| - | |
456 |
| - | |
457 |
| - | |
458 |
| - | |
459 | 445 |
| |
460 | 446 |
| |
461 | 447 |
| |
|
0 commit comments
Comments
(0)