> I know, this sucks, but, I don't see any other way, other than linking> *ALL* libpq-using programs (including initdb and friends) with -Kpthread.
How about making a libpq.so (without pthread) and a thread safelibpq_r.so ?
Andreas