]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Remove redundant assignment in CreateWorkExprContext
authorJeff Davis <jdavis@postgresql.org>
Wed, 14 Jan 2026 20:01:36 +0000 (12:01 -0800)
committerJeff Davis <jdavis@postgresql.org>
Wed, 14 Jan 2026 20:01:36 +0000 (12:01 -0800)
commited425b5a200ac00488940f2354d3cf9f11091926
tree0b3c4390443b4c71ae81ad5be16efcc1b63f9eb5
parent556c92a68972818b24d31d060175ae8131d3297b
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@proxel.se>
Reported-by: Chao Li <lic@highgo.com>
Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>
Discussion: https://postgr.es/m/83a14f3c-f347-4769-9c01-30030b31f1eb@gmail.com
src/backend/executor/execUtils.c