pgsql: Remove redundant assignment in CreateWorkExprContext

From: Jeff Davis <jdavis(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Remove redundant assignment in CreateWorkExprContext
Date: 2026-01-14 20:02:01
Message-ID: E1vg744-000Tvl-25@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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 <andreas(at)proxel(dot)se>
Reported-by: Chao Li <lic(at)highgo(dot)com>
Reviewed-by: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Discussion: https://postgr.es/m/83a14f3c-f347-4769-9c01-30030b31f1eb@gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/ed425b5a200ac00488940f2354d3cf9f11091926

Modified Files
--------------
src/backend/executor/execUtils.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Michael Paquier 2026-01-15 00:38:02 pgsql: Introduce routines to validate and free MVNDistinct and MVDepend
Previous Message Andres Freund 2026-01-14 16:20:27 pgsql: lwlock: Improve local variable name