diff options
author | Thomas Munro <tmunro@postgresql.org> | 2023-03-17 14:44:12 +1300 |
---|---|---|
committer | Thomas Munro <tmunro@postgresql.org> | 2023-03-17 14:44:12 +1300 |
commit | 10b6745d313c6e8f3523306d3d415c57c9039c5d (patch) | |
tree | 28ad505a05130628be2777e1bbeb710402210ada | |
parent | 9bfd2822b3201f6b0de1e87305b11ee3885b36d9 (diff) | |
download | postgresql-10b6745d313c6e8f3523306d3d415c57c9039c5d.tar.gz postgresql-10b6745d313c6e8f3523306d3d415c57c9039c5d.zip |
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.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/backend/postmaster/postmaster.c b/src/backend/postmaster/postmaster.c index 27184fb3c4c..4c49393fc5a 100644 --- a/src/backend/postmaster/postmaster.c +++ b/src/backend/postmaster/postmaster.c @@ -4790,11 +4790,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; |