We are loading into postgresql database using COPY <TABLE> FROM STDIN. We are running postgres 7.4 on Solaris 8. When we try the load
from a main() it works fine. But when the same is tried with multithreaded application it fails giving the either one of following errors

"could not receive data from server: Invalid argument" OR
"could not receive data from server: No such file or directory"

We are unable to find what is the exact reason ? Any help is greatly

Thanks a lot