[PATCH] Use the correct data type in visibilitymap_get_status
Julien Rouhaud <julien.rouhaud@free.fr>
From: Julien Rouhaud <julien.rouhaud@free.fr>
To:
Date: 2025-07-24T07:32:34Z
Lists: pgsql-hackers
Oversight in a892234f830e which changed the surrouding function to return an
uint8 rather than a bool.
---
src/backend/access/heap/visibilitymap.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/backend/access/heap/visibilitymap.c b/src/backend/access/heap/visibilitymap.c
index 745a04ef26e..e826e8e46c6 100644
--- a/src/backend/access/heap/visibilitymap.c
+++ b/src/backend/access/heap/visibilitymap.c
@@ -364,7 +364,7 @@ visibilitymap_get_status(Relation rel, BlockNumber heapBlk, Buffer *vmbuf)
{
*vmbuf = vm_readbuf(rel, mapBlock, false);
if (!BufferIsValid(*vmbuf))
- return false;
+ return 0;
}
map = PageGetContents(BufferGetPage(*vmbuf));
--
2.50.1
--InDeVTQdZ9cyBIOY--