From ed425b5a200ac00488940f2354d3cf9f11091926 Mon Sep 17 00:00:00 2001 From: Jeff Davis Date: Wed, 14 Jan 2026 12:01:36 -0800 Subject: [PATCH] Remove redundant assignment in CreateWorkExprContext In CreateWorkExprContext(), maxBlockSize is initialized to ALLOCSET_DEFAULT_MAXSIZE, and it then immediately reassigned, thus the initialization is a redundant. Author: Andreas Karlsson Reported-by: Chao Li Reviewed-by: Tom Lane Discussion: https://postgr.es/m/83a14f3c-f347-4769-9c01-30030b31f1eb@gmail.com --- src/backend/executor/execUtils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/executor/execUtils.c b/src/backend/executor/execUtils.c index cc3c5de71eb..a7955e476f9 100644 --- a/src/backend/executor/execUtils.c +++ b/src/backend/executor/execUtils.c @@ -321,7 +321,7 @@ CreateExprContext(EState *estate) ExprContext * CreateWorkExprContext(EState *estate) { - Size maxBlockSize = ALLOCSET_DEFAULT_MAXSIZE; + Size maxBlockSize; maxBlockSize = pg_prevpower2_size_t(work_mem * (Size) 1024 / 16);