From 28066d8fe4bee5031497c2dd67e0e975e3a53443 Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Sun, 22 Sep 2024 18:35:35 -0700 Subject: [PATCH] Added test for ef_stream [skip ci] --- test/t/039_hnsw_streaming.pl | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test/t/039_hnsw_streaming.pl b/test/t/039_hnsw_streaming.pl index ecb5b5e..22f3c4c 100644 --- a/test/t/039_hnsw_streaming.pl +++ b/test/t/039_hnsw_streaming.pl @@ -32,6 +32,15 @@ my $count = $node->safe_psql("postgres", qq( )); is($count, 10); +$count = $node->safe_psql("postgres", qq( + SET enable_seqscan = off; + SET hnsw.streaming = on; + SET hnsw.ef_stream = 50000; + SET work_mem = '8MB'; + SELECT COUNT(*) FROM (SELECT v FROM tst WHERE i % 10000 = 0 ORDER BY v <-> (SELECT v FROM tst LIMIT 1) LIMIT 11) t; +)); +isnt($count, 10); + my ($ret, $stdout, $stderr) = $node->psql("postgres", qq( SET enable_seqscan = off; SET hnsw.streaming = on;