1
0
mirror of https://github.com/postgres/postgres.git synced 2026-01-26 09:41:40 +03:00

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
This commit is contained in:
Jeff Davis
2026-01-14 12:01:36 -08:00
parent 556c92a689
commit ed425b5a20

View File

@@ -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);