On 9/5/07, Richard Huxton <dev@xxxxxxxxxxxx> wrote: > Steve Crawford wrote: > > A while back I had to restart the server and today discovered that some > > of the client machines have psql processes dating back several months. > > > > Obviously no TCP connection on the server end but client-side shows the > > connection as "ESTABLISHED". > > The OS should clear that connection down after a timeout - hours > perhaps, but months doesn't sound right. When the connection gets closed > down psql should exit. Unless psql is turning on keepalive or similar, or the OS is forcing it on by default, there are no timeouts for idle TCP connections. If the command was transported to the server successfully and psql was just waiting for a result, the connection is idle and nothing will happen if the server end suddenly goes away. ---------------------------(end of broadcast)--------------------------- TIP 1: if posting/reading through Usenet, please send an appropriate subscribe-nomail command to majordomo@xxxxxxxxxxxxxx so that your message can get through to the mailing list cleanly