dg(at)illustra(dot)com (David Gould) writes:
>> So ... since we're altering the protocol anyway ... the right fix is
>> to alter the protocol a little more.
>>
>> Client waits for "Z" ; if get "E" instead, BE startup failed.
> BE fails, client gets SIGPIPE? or client waits forever?
Neither: the client detects EOF on its input and realizes that the
backend failed. Already done and tested.
(SIGPIPE is only for *write* on a closed channel, not *read*.
Read just returns EOF.)
regards, tom lane