"Clinton James" <cjames@callone.net> writes:
> When trying to copy data I get the following message.
> pqReadData() -- backend closed the channel unexpectedly.
> Can anyone point me in the direction for fixing this?
A debugger backtrace from the backend core dump would be a good start.
You might have to compile with -g to get a useful backtrace.
regards, tom lane