From cdf7a7e51d5a8f300a60ac1547a445e247f1699b Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Wed, 18 Nov 2026 01:10:24 -0800 Subject: [PATCH] Added test for debug message [skip ci] --- test/expected/ivfflat_vector.out | 3 +++ test/sql/ivfflat_vector.sql | 2 ++ 2 files changed, 5 insertions(+) diff --git a/test/expected/ivfflat_vector.out b/test/expected/ivfflat_vector.out index 073cf20b..6b1332e5 100644 --- a/test/expected/ivfflat_vector.out +++ b/test/expected/ivfflat_vector.out @@ -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; diff --git a/test/sql/ivfflat_vector.sql b/test/sql/ivfflat_vector.sql index 594edb80..5b82fd12 100644 --- a/test/sql/ivfflat_vector.sql +++ b/test/sql/ivfflat_vector.sql @@ -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;