Added check for ef_construction [skip ci]

This commit is contained in:
Andrew Kane
2023-08-10 21:09:38 -07:00
parent 3ff2e34d7f
commit 451e36cee7
3 changed files with 6 additions and 0 deletions

View File

@@ -12,6 +12,8 @@ DETAIL: Valid values are between "10" and "1000".
CREATE INDEX ON t USING hnsw (val vector_l2_ops) WITH (ef_construction = 1001);
ERROR: value 1001 out of bounds for option "ef_construction"
DETAIL: Valid values are between "10" and "1000".
CREATE INDEX ON t USING hnsw (val vector_l2_ops) WITH (m = 16, ef_construction = 31);
ERROR: ef_construction must be greater than or equal to 2 * m
SHOW hnsw.ef_search;
hnsw.ef_search
----------------