summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Munro2023-03-17 01:44:12 +0000
committerThomas Munro2023-03-17 01:48:08 +0000
commitb23f2a729c9e9b028091717df2fed11c95f98cd9 (patch)
tree04b548531ab7e4e6a2b499ab71468f9d4eb66152
parent25ae3bba79221ceacf8a6ec0313a039ecd18e528 (diff)
Small tidyup for commit d41a178b, part II.
Further to commit 6a9229da, checking for NULL is now redundant. An "out of memory" error would have been thrown already by palloc() and treated as FATAL, so we can delete a few more lines. Back-patch to all releases, like those other commits. Reported-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/4040668.1679013388%40sss.pgh.pa.us
-rw-r--r--src/backend/postmaster/postmaster.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/backend/postmaster/postmaster.c b/src/backend/postmaster/postmaster.c
index 15e9b7c62ad..4a4758846c0 100644
--- a/src/backend/postmaster/postmaster.c
+++ b/src/backend/postmaster/postmaster.c
@@ -4746,11 +4746,6 @@ retry:
* freed by a later call to waitpid().
*/
childinfo = palloc(sizeof(win32_deadchild_waitinfo));
- if (!childinfo)
- ereport(FATAL,
- (errcode(ERRCODE_OUT_OF_MEMORY),
- errmsg("out of memory")));
-
childinfo->procHandle = pi.hProcess;
childinfo->procId = pi.dwProcessId;