Hi,
I’ve added some changes to one of the approaches and also did additional cleanup and stabilization work on the vacuum statistics tests. Specifically:
- I moved the vacuum statistics tests into the tests tab and made them more stable. For slower machines, vacuum is now triggered inside the statistics wait function. Previously, some backends didn’t have enough time to release the lock, which could lead to differences because the vacuum hadn’t fully completed yet.
- I also ran the backend tests and fixed a couple of minor issues along the way.
- I ran pgindent to clean up and normalize the formatting.
I have rebased the patch.
I combined all the patches for implementing statistics on tables, indexes, and databases into one, creating a separate slot for them to collect and save statistics.
At the moment, only the second test still looks odd, and I haven’t fully figured out why yet. It seems like aggressive vacuum can no longer be triggered the same way as before with the current gucs, but I’m still investigating this.
I fixed this problem - it works well now.
Best regards,
Alena Rybakina