Re: libpq and psql not on same page about SIGPIPE

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: libpq and psql not on same page about SIGPIPE
Дата
Msg-id 20249.1101941015@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: libpq and psql not on same page about SIGPIPE  (Bruce Momjian <pgman@candle.pha.pa.us>)
Ответы Re: libpq and psql not on same page about SIGPIPE
Список pgsql-hackers
Manfred Spraul <manfred@colorfullife.com> writes:
> Is that really worthwhile? There are half a dozend assumption about the 
> C library and kernel internal efficiency of the signal handling 
> functions in the proposal. Adding a PQinitLib function is obviously a 
> larger change, but it solves the problem.

Not really: it only solves the problem *if you change the application*,
which is IMHO not acceptable.  In particular, why should a non-threaded
app expect to have to change to deal with this issue?  But we can't
safely build a thread-safe libpq.so for general use if it breaks
non-threaded apps that haven't been changed.

As for the efficiency argument, we have been doing two pqsignal()s per
send() for years and years; I see no reason to think this is worse.
        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: New compile warnings for inheritance
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: libpq and psql not on same page about SIGPIPE