• Tom Lane's avatar
    Tweak startup sequence so that running out of PROC array slots is · 2917f0a5
    Tom Lane authored
    detected sooner in backend startup, and is treated as an expected error
    (it gives 'Sorry, too many clients already' now).  This allows us not
    to have to enforce the MaxBackends limit exactly in the postmaster.
    Also, remove ProcRemove() and fold its functionality into ProcKill().
    There's no good reason for a backend not to be responsible for removing
    its PROC entry, and there are lots of good reasons for the postmaster
    not to be touching shared-memory data structures.
    2917f0a5
postmaster.c 57.3 KB