That's pretty bizarre ... I didn't think there were any code paths that would get to proc_exit without emitting an error message.
Can you set a debugger breakpoint at proc_exit and see what the call stack looks like? (You can slow things down enough to attach to the backend with gdb by using the -W switch: PGOPTIONS="-W 30" psql ...
regards, tom lane
************************************************************************************* This email may contain confidential and privileged material for the sole use of the intended recipient. Any review, use, distribution or disclosure by others is prohibited. If you are not the intended or authorised recipient please contact the sender by reply email and delete all copies of this message