pgvector.git / summary / log / commit / refs

commit    38f42820be94efc092ca53f44bdfe43f42614e06
Author:   Andrew Kane <andrew@ankane.org>
Date:     Mon Oct 28 03:05:58 2024 +0000

    Added test for hnsw.scan_mem_multiplier [skip ci]


test/expected/hnsw_vector.out | 8 ++++++++ test/sql/hnsw_vector.sql | 4 ++++ 2 files changed, 12 insertions(+) diff --git a/test/expected/hnsw_vector.out b/test/expected/hnsw_vector.out index 8de76b6b..86b27f50 100644 --- a/test/expected/hnsw_vector.out +++ b/test/expected/hnsw_vector.out @@ -182,4 +182,12 @@ SHOW hnsw.max_scan_tuples; SET hnsw.max_scan_tuples = 0; ERROR: 0 is outside the valid range for parameter "hnsw.max_scan_tuples" (1 .. 2147483647) +SHOW hnsw.scan_mem_multiplier; + hnsw.scan_mem_multiplier +-------------------------- + 2 +(1 row) + +SET hnsw.scan_mem_multiplier = 0; +ERROR: 0 is outside the valid range for parameter "hnsw.scan_mem_multiplier" (1 .. 1000) DROP TABLE t; diff --git a/test/sql/hnsw_vector.sql b/test/sql/hnsw_vector.sql index e55d2e5f..868e4671 100644 --- a/test/sql/hnsw_vector.sql +++ b/test/sql/hnsw_vector.sql @@ -106,4 +106,8 @@ SHOW hnsw.max_scan_tuples; SET hnsw.max_scan_tuples = 0; +SHOW hnsw.scan_mem_multiplier; + +SET hnsw.scan_mem_multiplier = 0; + DROP TABLE t; [parent: 15c8245b4273]