Re: [HACKERS] Re: SIGPIPE gripe

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [HACKERS] Re: SIGPIPE gripe
Дата
Msg-id 14199.894316596@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: [HACKERS] Re: SIGPIPE gripe  (dg@illustra.com (David Gould))
Список pgsql-hackers
dg@illustra.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

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [HACKERS] Postgresql6.3.2 libdld and the twilight zone.
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [HACKERS] RE: [QUESTIONS] Best way to halt an unending query.