The attached patch updates the thread test program to run stand-alone on
Windows. The test itself is bypassed in configure as discussed, and
libpq has been updated appropriately to allow it to build in thread-safe
mode.
To apply, apply the patch as normal, then rename
src/interface/libpq/pthread.h.win32 to
src/interface/libpq/pthread-win32.h. Finally, run autoconf to regenerate
configure.
Regards, Dave.