"Kyoko Noro" <kyouko(dot)noro(at)hp(dot)com> writes:
> Sometimes pqSocketCheck doesn't return and our appication hang.
pqSocketCheck isn't accessible from outside libpq, and furthermore
it's often called with the *intention* of waiting for something to
happen. You need to provide more details of what you are doing
and what is happening (vs. what you expected to happen).
regards, tom lane