From d40e365b11c7ffca78931ae8514264dc230c90a2 Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Tue, 17 Nov 2026 22:29:32 -0800 Subject: [PATCH] Added debug message when IVFFlat index scan no longer fits into work_mem [skip ci] --- src/ivfscan.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ivfscan.c b/src/ivfscan.c index 3691126d..40c70b49 100644 --- a/src/ivfscan.c +++ b/src/ivfscan.c @@ -335,6 +335,8 @@ AddScanItem(IvfflatScanOpaque so, double distance, ItemPointer heaptid) AddSortItem(so, distance, heaptid); so->useHeap = false; + + elog(DEBUG1, "ivfflat scan no longer fits into work_mem after %d tuples", heap->length); } } else