| From: | Nathan Bossart <nathan(at)postgresql(dot)org> |
|---|---|
| To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
| Subject: | pgsql: Fix return value of visibilitymap_get_status(). |
| Date: | 2025-07-24 15:14:00 |
| Message-ID: | E1uexdw-000WwK-10@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers |
Fix return value of visibilitymap_get_status().
This function is declared as returning a uint8, but it returns a
bool in one code path. To fix, return (uint8) 0 instead of false
there. This should behave exactly the same as before, but it might
prevent future compiler complaints.
Oversight in commit a892234f83.
Author: Julien Rouhaud <rjuju123(at)gmail(dot)com>
Discussion: https://postgr.es/m/aIHluT2isN58jqHV%40jrouhaud
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/15d33eb1924c1093102b8ce142ede4cb3912e85e
Modified Files
--------------
src/backend/access/heap/visibilitymap.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Michael Paquier | 2025-07-25 02:18:20 | pgsql: Lower bounds related to pgstats kinds |
| Previous Message | Amit Kapila | 2025-07-24 09:20:48 | pgsql: Fix duplicate transaction replay during pg_createsubscriber. |