Added test for debug message [skip ci]

This commit is contained in:
Andrew Kane committed 2026-11-18 01:10:24 -08:00
1 parent 072215a85d
commit cdf7a7e51d
2 files changed
+5

No files matched your search

+3
View File
@@ -252,7 +252,9 @@ SET work_mem = '64kB';
CREATE TABLE t (val vector(3));
INSERT INTO t (val) VALUES ('[0,0,0]'), ('[1,2,3]'), ('[1,1,1]');
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]';
DEBUG: ivfflat scan no longer fits into work_mem after 1 tuples
val
---------
[1,2,3]
@@ -260,5 +262,6 @@ SELECT * FROM t ORDER BY val <-> '[3,3,3]';
[0,0,0]
(3 rows)
RESET client_min_messages;
DROP TABLE t;
RESET work_mem;
+2
View File
@@ -140,6 +140,8 @@ SET work_mem = '64kB';
CREATE TABLE t (val vector(3));
INSERT INTO t (val) VALUES ('[0,0,0]'), ('[1,2,3]'), ('[1,1,1]');
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]';
RESET client_min_messages;
DROP TABLE t;
RESET work_mem;