Alvaro Herrera <alvherre(at)commandprompt(dot)com> writes:
> Some time ago I noticed that in postmaster.c there's a corner case which
> probably causes postmaster to exit in out-of-memory condition. See
> BackendStartup, near the bottom, there's a call to DLNewElem(). The
> problem is that this function calls palloc() and thus can elog(ERROR) on
> OOM, but postmaster has no way to defend itself from this and would die.
So? There are probably hundreds of palloc calls that are reachable from
the postmaster main loop. If this were allocating more than a few bytes
of memory, it might be worth worrying about.
regards, tom lane