Andrew - Supernews <andrew+nonews@supernews.com> writes:
> The reason for the hang is that the sending end of the pipe from initdb
> to postgres is not being closed by popen(), so postgres never sees EOF
> on it. In this context I am suspicious of the fact that while libpq is
> being built with threading, the apps which link against it do not appear
> to be.
initdb does not use libpq ... it might link to it, because of sloppy
LIBS list management, but it doesn't ever call it. There is, by
definition, no running postmaster available for libpq to contact.
regards, tom lane