From 288f8bc4f0dfc9ffb5bf66b30ffb015ae0bc23bf Mon Sep 17 00:00:00 2001
From: John Naylor <john.naylor@postgresql.org>
Date: Fri, 14 Feb 2025 14:30:14 +0700
Subject: [PATCH v2 2/8] TEMP disable tbm_lossify()

Lossifying a radix tree is not implemented yet, so remove
one source of difference between that and the hash table.
---
 src/backend/nodes/tidbitmap.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/backend/nodes/tidbitmap.c b/src/backend/nodes/tidbitmap.c
index 112f16c2424..4a5c0e6ad1b 100644
--- a/src/backend/nodes/tidbitmap.c
+++ b/src/backend/nodes/tidbitmap.c
@@ -1239,6 +1239,8 @@ tbm_mark_page_lossy(TIDBitmap *tbm, BlockNumber pageno)
 static void
 tbm_lossify(TIDBitmap *tbm)
 {
+
+#if 0
 	pagetable_iterator i;
 	PagetableEntry *page;
 
@@ -1299,6 +1301,7 @@ tbm_lossify(TIDBitmap *tbm)
 	 */
 	if (tbm->nentries > tbm->maxentries / 2)
 		tbm->maxentries = Min(tbm->nentries, (INT_MAX - 1) / 2) * 2;
+#endif
 }
 
 /*
-- 
2.51.0

