pgsql: Fix argument given to buffer_readv_encode_error()

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Fix argument given to buffer_readv_encode_error()
Date: 2026-10-16 05:31:14
Message-ID: E1xHaXC-00000001pOw-2KhK@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix argument given to buffer_readv_encode_error()

buffer_readv_encode_error() expects a uint8 for its "error_count"
argument, but the value given was a boolean. That's harmless in
practice, but let's be clean.

Thinko in 047cba7fa0f8.

Author: Antonin Houska <ah(at)cybertec(dot)at>
Reviewed-by: Steven Niu <niushiji(at)gmail(dot)com>
Discussion: https://postgr.es/m/8073.1791959482@localhost
Backpatch-through: 18

Branch
------
REL_18_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/368e12de252707ffa50f9a471bd9c36709c4b2f0

Modified Files
--------------
src/backend/storage/buffer/bufmgr.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Richard Guo 2026-10-16 07:49:03 pgsql: Fix bogus Assert in find_var_for_subquery_tle
Previous Message David Rowley 2026-10-16 05:01:04 pgsql: Add sentinel_ok() check to BumpCheck().