• Tom Lane's avatar
    Fix canAcceptConnections() bugs introduced by replication-related patches. · 3892a2d8
    Tom Lane authored
    We must not return any "okay to proceed" result code without having checked
    for too many children, else we might fail later on when trying to add the
    new child to one of the per-child state arrays.  It's not clear whether
    this oversight explains Stefan Kaltenbrunner's recent report, but it could
    certainly produce a similar symptom.
    
    Back-patch to 8.4; the logic was not broken before that.
    3892a2d8
postmaster.c 135 KB