mirror of
https://github.com/pgvector/pgvector.git
synced 2026-12-04 00:08:30 +00:00
Simplified test [skip ci]
This commit is contained in:
1 parent
b323d8c446
commit
2c879e38ab
2 files changed
+5
-3
No files matched your search
@@ -262,14 +262,16 @@ DEBUG: ivfflat scan no longer fits into work_mem after 1 tuples
|
||||
[0,0,0]
|
||||
(3 rows)
|
||||
|
||||
SELECT * FROM t CROSS JOIN LATERAL (SELECT * FROM t t2 ORDER BY val <-> t.val LIMIT 1) t2 WHERE t.val != '[0,0,0]' ORDER BY t.val;
|
||||
SELECT * FROM t CROSS JOIN LATERAL (SELECT * FROM t t2 ORDER BY val <-> t.val LIMIT 1) t2 ORDER BY t.val;
|
||||
DEBUG: ivfflat scan no longer fits into work_mem after 1 tuples
|
||||
DEBUG: ivfflat scan no longer fits into work_mem after 1 tuples
|
||||
DEBUG: ivfflat scan no longer fits into work_mem after 1 tuples
|
||||
val | val
|
||||
---------+---------
|
||||
[0,0,0] | [0,0,0]
|
||||
[1,1,1] | [1,1,1]
|
||||
[1,2,3] | [1,2,3]
|
||||
(2 rows)
|
||||
(3 rows)
|
||||
|
||||
RESET client_min_messages;
|
||||
DROP TABLE t;
|
||||
|
||||
@@ -143,7 +143,7 @@ CREATE INDEX ON t USING ivfflat (val vector_l2_ops) WITH (lists = 1);
|
||||
|
||||
SET client_min_messages = DEBUG;
|
||||
SELECT * FROM t ORDER BY val <-> '[3,3,3]';
|
||||
SELECT * FROM t CROSS JOIN LATERAL (SELECT * FROM t t2 ORDER BY val <-> t.val LIMIT 1) t2 WHERE t.val != '[0,0,0]' ORDER BY t.val;
|
||||
SELECT * FROM t CROSS JOIN LATERAL (SELECT * FROM t t2 ORDER BY val <-> t.val LIMIT 1) t2 ORDER BY t.val;
|
||||
RESET client_min_messages;
|
||||
|
||||
DROP TABLE t;
|
||||
|
||||
Reference in new issue
Block a user