• Robert Haas's avatar
    libpq: Notice errors a backend may have sent just before dying. · c3e7c24a
    Robert Haas authored
    At least since the introduction of Hot Standby, the backend has
    sometimes sent fatal errors even when no client query was in
    progress, assuming that the client would receive it.  However,
    pqHandleSendFailure was not in sync with this assumption, and
    only tries to catch notices and notifies.  Add a parseInput call
    to the loop there to fix.
    
    Andres Freund suggested the fix.  Comments are by me.
    Reviewed by Michael Paquier.
    c3e7c24a
fe-exec.c 88.5 KB