mirror of
https://github.com/pgvector/pgvector.git
synced 2026-06-06 05:51:21 +08:00
18 lines
533 B
Plaintext
18 lines
533 B
Plaintext
SET client_min_messages = warning;
|
|
CREATE EXTENSION IF NOT EXISTS vector;
|
|
SET enable_seqscan = off;
|
|
CREATE TABLE t (val vector(3));
|
|
CREATE INDEX ON t USING ivfflat (val) WITH (lists = 0);
|
|
ERROR: value 0 out of bounds for option "lists"
|
|
DETAIL: Valid values are between "1" and "32768".
|
|
CREATE INDEX ON t USING ivfflat (val) WITH (lists = 32769);
|
|
ERROR: value 32769 out of bounds for option "lists"
|
|
DETAIL: Valid values are between "1" and "32768".
|
|
SHOW ivfflat.probes;
|
|
ivfflat.probes
|
|
----------------
|
|
1
|
|
(1 row)
|
|
|
|
DROP TABLE t;
|