timescale / timescaledb

An open-source time-series SQL database optimized for fast ingest and complex queries. Packaged as a PostgreSQL extension.
https://www.timescale.com/
Other
16.82k stars 852 forks source link

Backport to 2.15.x: #6891: Fix the flaky merge_append_partially_compressed test #6995

Closed timescale-automation closed 1 month ago

timescale-automation commented 1 month ago

This is an automated backport of #6891: Fix the flaky merge_append_partially_compressed test. This PR will be merged automatically after all the relevant CI checks pass. If this fix should not be backported, or will be backported manually, just close this PR. You can use the backport branch to add your changes, it won't be modified automatically anymore.

For more details, please see the documentation

Original description

Fix the flaky merge_append_partially_compressed test

Add ANALYZE. To keep the desired MergeAppend plans, we also have to add a LIMIT everywhere so that the MergeAppend is chosen based on its lower startup cost. Otherwise the plain Sort over Append will be chosen because for small tables its cost is less.

Disable-check: force-changelog-file