mirror of
https://github.com/pgvector/pgvector.git
synced 2026-07-09 22:30:58 +08:00
Simplified GUC names [skip ci]
This commit is contained in:
@@ -174,12 +174,12 @@ SHOW hnsw.iterative_search;
|
||||
SET hnsw.iterative_search = on;
|
||||
ERROR: invalid value for parameter "hnsw.iterative_search": "on"
|
||||
HINT: Available values: off, relaxed_order, strict_order.
|
||||
SHOW hnsw.iterative_search_max_tuples;
|
||||
hnsw.iterative_search_max_tuples
|
||||
----------------------------------
|
||||
SHOW hnsw.max_search_tuples;
|
||||
hnsw.max_search_tuples
|
||||
------------------------
|
||||
-1
|
||||
(1 row)
|
||||
|
||||
SET hnsw.iterative_search_max_tuples = -2;
|
||||
ERROR: -2 is outside the valid range for parameter "hnsw.iterative_search_max_tuples" (-1 .. 2147483647)
|
||||
SET hnsw.max_search_tuples = -2;
|
||||
ERROR: -2 is outside the valid range for parameter "hnsw.max_search_tuples" (-1 .. 2147483647)
|
||||
DROP TABLE t;
|
||||
|
||||
@@ -137,14 +137,14 @@ SHOW ivfflat.iterative_search;
|
||||
SET ivfflat.iterative_search = on;
|
||||
ERROR: invalid value for parameter "ivfflat.iterative_search": "on"
|
||||
HINT: Available values: off, relaxed_order.
|
||||
SHOW ivfflat.iterative_search_max_probes;
|
||||
ivfflat.iterative_search_max_probes
|
||||
-------------------------------------
|
||||
SHOW ivfflat.max_probes;
|
||||
ivfflat.max_probes
|
||||
--------------------
|
||||
0
|
||||
(1 row)
|
||||
|
||||
SET ivfflat.iterative_search_max_probes = -1;
|
||||
ERROR: -1 is outside the valid range for parameter "ivfflat.iterative_search_max_probes" (0 .. 32768)
|
||||
SET ivfflat.iterative_search_max_probes = 32769;
|
||||
ERROR: 32769 is outside the valid range for parameter "ivfflat.iterative_search_max_probes" (0 .. 32768)
|
||||
SET ivfflat.max_probes = -1;
|
||||
ERROR: -1 is outside the valid range for parameter "ivfflat.max_probes" (0 .. 32768)
|
||||
SET ivfflat.max_probes = 32769;
|
||||
ERROR: 32769 is outside the valid range for parameter "ivfflat.max_probes" (0 .. 32768)
|
||||
DROP TABLE t;
|
||||
|
||||
@@ -102,8 +102,8 @@ SHOW hnsw.iterative_search;
|
||||
|
||||
SET hnsw.iterative_search = on;
|
||||
|
||||
SHOW hnsw.iterative_search_max_tuples;
|
||||
SHOW hnsw.max_search_tuples;
|
||||
|
||||
SET hnsw.iterative_search_max_tuples = -2;
|
||||
SET hnsw.max_search_tuples = -2;
|
||||
|
||||
DROP TABLE t;
|
||||
|
||||
@@ -81,9 +81,9 @@ SHOW ivfflat.iterative_search;
|
||||
|
||||
SET ivfflat.iterative_search = on;
|
||||
|
||||
SHOW ivfflat.iterative_search_max_probes;
|
||||
SHOW ivfflat.max_probes;
|
||||
|
||||
SET ivfflat.iterative_search_max_probes = -1;
|
||||
SET ivfflat.iterative_search_max_probes = 32769;
|
||||
SET ivfflat.max_probes = -1;
|
||||
SET ivfflat.max_probes = 32769;
|
||||
|
||||
DROP TABLE t;
|
||||
|
||||
@@ -40,7 +40,7 @@ foreach ((30, 50, 70))
|
||||
SET enable_seqscan = off;
|
||||
SET ivfflat.probes = 10;
|
||||
SET ivfflat.iterative_search = relaxed_order;
|
||||
SET ivfflat.iterative_search_max_probes = $max_probes;
|
||||
SET ivfflat.max_probes = $max_probes;
|
||||
SELECT COUNT(*) FROM (SELECT v FROM tst WHERE i % 10000 = 0 ORDER BY v <-> (SELECT v FROM tst WHERE i = $i) LIMIT 11) t;
|
||||
));
|
||||
$sum += $count;
|
||||
|
||||
@@ -43,7 +43,7 @@ foreach ((30000, 50000, 70000))
|
||||
$count = $node->safe_psql("postgres", qq(
|
||||
SET enable_seqscan = off;
|
||||
SET hnsw.iterative_search = relaxed_order;
|
||||
SET hnsw.iterative_search_max_tuples = $max_tuples;
|
||||
SET hnsw.max_search_tuples = $max_tuples;
|
||||
SET work_mem = '8MB';
|
||||
SELECT COUNT(*) FROM (SELECT v FROM tst WHERE i % 10000 = 0 ORDER BY v <-> (SELECT v FROM tst WHERE i = $i) LIMIT 11) t;
|
||||
));
|
||||
|
||||
Reference in New Issue
Block a user