Skip site navigation (1) Skip section navigation (2)

psql & "unexpected EOF on client connection"

From: gateley(at)jriver(dot)com
To: pgsql-bugs(at)postgresql(dot)org
Subject: psql & "unexpected EOF on client connection"
Date: 2001-01-31 20:55:34
Message-ID: 3A787BC6.F6F28FAE@jriver.com (view raw or flat)
Thread:
Lists: pgsql-bugs
Hi Y'all.

I have been getting the dreaded "unexpected EOF on client
connection" in my system logs, but the surprising thing is that
it comes from psql (I think). I am executing psql
via a 'system' system call, and about 1 time out of 20 I get
the "unexpected EOF" message. Unfortunately, this
also causes the 'system' call to return an error, even though
all SQL code was executed properly. (After searching
postgresql.org I found out that the message normally
means that PGfinish wasn't called.)

the exact code in question is:
res=system("/usr/bin/psql <a-file-name");

Gory details available on request.

Thanks for any help,

John Gateley
gateley(at)jriver(dot)com, J. River, Inc.



Responses

pgsql-bugs by date

Next:From: Stanislas PinteDate: 2001-01-31 21:53:52
Subject: DB crash on "drop table" interruption
Previous:From: Stephan SzaboDate: 2001-01-31 16:59:59
Subject: Re: cannot index functions with multiple arguments

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group