Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix flaky reorder regression test #7509

Merged
merged 1 commit into from
Dec 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion tsl/test/expected/reorder.out
Original file line number Diff line number Diff line change
Expand Up @@ -1273,9 +1273,10 @@ CREATE INDEX ct2_time_idx ON ct2(time DESC);
CLUSTER ct2 USING ct2_time_idx;
-- deleted chunks are removed correctly
DELETE FROM ct2 where time < 2 OR val < 2;
VACUUM ct2;
SELECT reorder_chunk('_timescaledb_internal._hyper_2_3_chunk', verbose => TRUE);
INFO: reordering "_timescaledb_internal._hyper_2_3_chunk" using sequential scan and sort
INFO: "_hyper_2_3_chunk": found 2 removable, 3 nonremovable row versions in 1 pages
INFO: "_hyper_2_3_chunk": found 0 removable, 3 nonremovable row versions in 1 pages
reorder_chunk
---------------

Expand Down
1 change: 1 addition & 0 deletions tsl/test/sql/reorder.sql
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ CLUSTER ct2 USING ct2_time_idx;

-- deleted chunks are removed correctly
DELETE FROM ct2 where time < 2 OR val < 2;
VACUUM ct2;

SELECT reorder_chunk('_timescaledb_internal._hyper_2_3_chunk', verbose => TRUE);
SELECT ctid, time, val FROM _timescaledb_internal._hyper_2_3_chunk ORDER BY time;
Expand Down
Loading