pg_stat_statements: more test coverage
Peter Eisentraut <peter@eisentraut.org>
From: Peter Eisentraut <peter@eisentraut.org>
To: pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2023-12-23T14:18:01Z
Lists: pgsql-hackers
Attachments
- v1-0001-pg_stat_statements-Exclude-from-lcov-functions-th.patch (text/plain) patch v1-0001
- v1-0002-pg_stat_statements-Add-coverage-for-pg_stat_state.patch (text/plain) patch v1-0002
- v1-0003-pg_stat_statements-Add-coverage-for-pg_stat_state.patch (text/plain) patch v1-0003
- v1-0004-pg_stat_statements-Add-coverage-for-entry_dealloc.patch (text/plain) patch v1-0004
- v1-0005-pg_stat_statements-Add-TAP-test-for-testing-resta.patch (text/plain) patch v1-0005
pg_stat_statements has some significant gaps in test coverage, especially around the serialization of data around server restarts, so I wrote a test for that and also made some other smaller tweaks to increase the coverage a bit. These patches are all independent of each other. After that, the only major function that isn't tested is gc_qtexts(). Maybe a future project.
Commits
-
Revert "pg_stat_statements: Add coverage for entry_dealloc()"
- 1141e29b61e9 17.0 landed
-
pg_stat_statements: Add TAP test for testing restarts
- 4710b67d4d35 17.0 landed
-
pg_stat_statements: Add coverage for entry_dealloc()
- 742f6b3e6df9 17.0 landed
-
pg_stat_statements: Add test coverage for pg_stat_statements_1_8()
- 3727b8d0e3f1 17.0 landed
-
pg_stat_statements: Add test coverage for pg_stat_statements_reset_1_7
- 3e527aeeedb0 17.0 landed