Jessica Richard <rjessil(at)yahoo(dot)com> writes:
> server closed the connection unexpectedly
> This probably means the server terminated abnormally
> before or while processing the request.
> If this a Postgres disconnection or a disconnection on the OS side?
Well, you can't tell for certain from the client side. The postmaster
log would tell. But unless you have a flaky network, this is probably
the result of a backend crash :-(. Can you reproduce it, or get a gdb
stack trace?
regards, tom lane