postgresql/src
Michael Paquier 428fadb7e9 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 be
portable across multiple runs on a deployed cluster as stats of
pg_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 the
startup process when starting the cluster, something that is not going
to work for a deployed node.

Two of the three tests are moved to the recovery TAP test
029_stats_restart, where we already check the consistency of stats
data.  The test for syncs is dropped as TAP can run with fsync=off.  The
other 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.us
2025-02-07 09:42:31 +09:00
..
backend Disallow COPY FREEZE on foreign tables. 2025-02-06 15:23:40 -06:00
bin Introduce autovacuum_vacuum_max_threshold. 2025-02-05 15:48:18 -06:00
common Add support for Unicode case folding. 2025-01-23 09:06:50 -08:00
fe_utils Fix grammatical typos around possessive "its" 2025-01-29 14:39:14 +07:00
include Introduce autovacuum_vacuum_max_threshold. 2025-02-05 15:48:18 -06:00
interfaces libpq: Handle asynchronous actions during SASL 2025-02-06 22:19:21 +01:00
makefiles Update copyright for 2025 2025-01-01 11:21:55 -05:00
pl Fix grammatical typos around possessive "its" 2025-01-29 14:39:14 +07:00
port Avoid breaking SJIS encoding while de-backslashing Windows paths. 2025-01-29 14:24:36 -05:00
template thread-safety: gmtime_r(), localtime_r() 2024-08-23 07:43:04 +02:00
test Move SQL tests of pg_stat_io for WAL data to recovery test 029_stats_restart 2025-02-07 09:42:31 +09:00
timezone Update time zone data files to tzdata release 2025a. 2025-01-20 16:49:15 -05:00
tools Convert strategies to and from compare types 2025-02-02 10:26:04 +01:00
tutorial Doc: simplify the tutorial's window-function examples. 2025-01-21 14:43:21 -05:00
.gitignore
DEVELOPERS
Makefile Remove distprep 2023-11-06 15:18:04 +01:00
Makefile.global.in Convert sepgsql tests to TAP 2025-01-24 12:39:47 +01:00
Makefile.shlib Remove AIX support 2024-02-28 15:17:23 +04:00
meson.build Update copyright for 2025 2025-01-01 11:21:55 -05:00
nls-global.mk Remove distprep 2023-11-06 15:18:04 +01:00