Patrick Welche <prlw1@newn.cam.ac.uk> writes:
> Also, what was the danger with linking pthread?
Basically, the worry with code that wants thread support is that it
might actually try to use that support, and the backend in general will
not survive that (no threading protections). Also, depending on your
platform, linking in thread support might incur some generalized
overhead costs even when it's not being used; for instance the malloc
functions might start using mutexes.
regards, tom lane