From e731952524e9808fa3e83e1571ec098736ea0b73 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Tue, 3 Nov 2026 15:39:36 +0100 Subject: [PATCH v2 01/11] Fix accidentally casting away const Recently introduced in commit 6e58d6356fc. Discussion: https://www.postgresql.org/message-id/flat/70b86618-4038-4b19-8847-1a400d99d477%40eisentraut.org --- 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)); \ -- 2.56.0