Manfred Spraul <[EMAIL PROTECTED]> writes:
> +  *  Used to set callback that prevents concurrent access to
> +  *  non-thread safe functions that libpq needs.
> +  *  The default implementation uses a libpq internal mutex.
> +  *  Only required for multithreaded apps on platforms that
> +  *  do not support the thread-safe equivalents and that want
> +  *  to use the functions, too.
> +  *  List of functions:
> +  *  - stderror, getpwuid, gethostbyname.

Wait a minute.  I am *not* buying into any proposal that we need to
support ENABLE_THREAD_SAFETY on machines where libc is not thread-safe.
We have other things to do than adopt an open-ended commitment to work
around threading bugs on obsolete platforms.  I don't believe that any
sane application programmer is going to try to implement a
multi-threaded app on such a platform anyway.

As I said before, I think we should rip out the useless mutex code that
is already there, not introduce a "better" solution to a non-problem.

                        regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

               http://archives.postgresql.org

Reply via email to