Manfred Spraul <[EMAIL PROTECTED]> 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 ---------------------------(end of broadcast)--------------------------- TIP 1: subscribe and unsubscribe commands go to [EMAIL PROTECTED]