Re: SOCKET Conection on Windwos 2003 vs PostgreSQL 8.0.1

From: "Magnus Hagander" <mha(at)sollentuna(dot)net>
To: "Julio Cesar" <julio(at)ionics(dot)com(dot)br>, <pgsql-general(at)postgresql(dot)org>
Subject: Re: SOCKET Conection on Windwos 2003 vs PostgreSQL 8.0.1
Date: 2005-08-25 15:37:14
Message-ID: 6BCB9D8A16AC4241919521715F4D8BCE6C7929@algol.sollentuna.se
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> Hi,
>
> I´m Julio and a have a situation running W2003 and DBExpress.
>
> I connect to the W2003 with socket (:5432) and, when i save
> the package on my table, a new postgres.exe process start.
> Ok, no problems until here. I disconnect from the W2003 and
> the new proccess just die....
>
> The problem occurs when the cable connection fault between
> the two PC´s after the connection started. The new process
> that have been created on the W2003 (my server) dont die.
> Just stay there. I have to reboot the PostgreSQL 8.0.1 to
> clear the process.

The process should die once the TCP timeout has expired. This is IIRC 2 hours by default, it could be 4. You can chance this, but only on a per-server basis.

This happens when the connectino just goes away and there is no packet telling the server it's closing. There is no way for postgres to know the client went away.

//Magnus

Browse pgsql-general by date

  From Date Subject
Next Message tomtailor 2005-08-25 15:56:40 Resore PG-Data from Files after crash
Previous Message Julio Cesar 2005-08-25 15:20:41 SOCKET Conection on Windwos 2003 vs PostgreSQL 8.0.1