• A
    Avoid infinite loop in processCopyEndResults · 25bc3855
    Asim R P 提交于
    The command "COPY enumtest FROM stdin;" hit an infinite loop on merge
    branch.  Code indicates that the issue can happen on master as well.
    QD backend went into infinite loop when the connection was already
    closed from QE end.  The TCP connection was in CLOSE_WAIT state.
    Libpq connection status was CONNECTION_BAD and asyncStatus was
    PGASYNC_BUSY.
    
    Fix the infinite loop by checking libpq connection status in each
    iteration.
    25bc3855
cdbcopy.c 19.8 KB