From: Jeff Davis Date: Wed, 14 Jan 2026 20:01:36 +0000 (-0800) Subject: Remove redundant assignment in CreateWorkExprContext X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ed425b5a200ac00488940f2354d3cf9f11091926;p=thirdparty%2Fpostgresql.git 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 --- 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);