1
0
mirror of https://github.com/timescale/timescaledb.git synced 2025-05-23 14:39:15 +08:00

Fix flaky Hypercore join test

The join test could sometimes pick a seqscan+sort instead of an
indexscan when doing a MergeAppend+MergeJoin. Disabling seqscan should
make it deterministic.
This commit is contained in:
Erik Nordström 2024-10-18 17:50:26 +02:00 committed by Erik Nordström
parent 132d14fe7d
commit d83383615a
3 changed files with 4 additions and 1 deletions

@ -108,6 +108,8 @@ select format('%I.%I', chunk_schema, chunk_name)::regclass as chunk2
-- We disable columnar scan for these tests since we have a dedicated
-- test for this.
set timescaledb.enable_columnarscan to false;
-- Discourage seqscan to make sure we predictibly use indexscan
set enable_seqscan to false;
set enable_memoize to false;
-- Create a hypercore with a few rows and use the big table to join
-- with it. This should put the hypercore as the inner relation and

@ -7,6 +7,8 @@
-- We disable columnar scan for these tests since we have a dedicated
-- test for this.
set timescaledb.enable_columnarscan to false;
-- Discourage seqscan to make sure we predictibly use indexscan
set enable_seqscan to false;
set enable_memoize to false;

@ -37,4 +37,3 @@ where r.device_id is distinct from e.device_id;
drop table :inner;
drop table :outer;