From 225564b3bcf3fdbaa78d47e67d3b5da6fb5e8d39 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Tue, 3 Nov 2026 15:39:36 +0100 Subject: [PATCH 01/10] Fix accidentally casting away const Recently introduced in commit 6e58d6356fc. --- src/include/access/detoast.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/include/access/detoast.h b/src/include/access/detoast.h index 93b7a253760..238af79f719 100644 --- a/src/include/access/detoast.h +++ b/src/include/access/detoast.h @@ -23,7 +23,7 @@ */ #define VARATT_EXTERNAL_GET_POINTER(toast_pointer, attr) \ do { \ - varattrib_1b_e *attre = (varattrib_1b_e *) (attr); \ + const varattrib_1b_e *attre = (const varattrib_1b_e *) (attr); \ Assert(VARATT_IS_EXTERNAL(attre)); \ Assert(VARSIZE_EXTERNAL(attre) == sizeof(toast_pointer) + VARHDRSZ_EXTERNAL); \ memcpy(&(toast_pointer), VARDATA_EXTERNAL(attre), sizeof(toast_pointer)); \ base-commit: 3ba886b35a2804dcd275868a19135a31ceb81386 -- 2.56.0