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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user