Simplified test [skip ci]

This commit is contained in:
Andrew Kane committed 2026-11-18 01:21:47 -08:00
1 parent b323d8c446
commit 2c879e38ab
2 files changed
+5 -3

No files matched your search

+4 -2
View File
@@ -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;
+1 -1
View File
@@ -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;