X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id C7C958B9D53 for ; Wed, 23 Feb 2005 15:15:54 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 29570-04 for ; Wed, 23 Feb 2005 15:15:42 +0000 (GMT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.196]) by svr1.postgresql.org (Postfix) with ESMTP id 84D178B9E93 for ; Wed, 23 Feb 2005 15:15:44 +0000 (GMT) Received: by wproxy.gmail.com with SMTP id 68so1491945wri for ; Wed, 23 Feb 2005 07:15:45 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding; b=grGIun0GQ4dbnnrS2x17QwSpwFxZFjpNF5Fc8X51XsC4wSxQ/RDoeJ8dIV6q0sxcW07tgiWOUtkHDvLY+QHGJT0x3S8890efpD8RSbL8AnayOhpBVmScQ1hMJWqZAWvMlxPgkPdnhRyZrjStK6sBYMzHBdeIgpjkbG6BuRB85ec= Received: by 10.54.35.69 with SMTP id i69mr37881wri; Wed, 23 Feb 2005 07:15:45 -0800 (PST) Received: by 10.54.15.34 with HTTP; Wed, 23 Feb 2005 07:15:44 -0800 (PST) Message-ID: Date: Wed, 23 Feb 2005 17:15:44 +0200 From: Sergei Georgiev Reply-To: Sergei Georgiev To: pgsql-jdbc@postgresql.org Subject: Socket timeouts (probably) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.024 tagged_above=0 required=5 tests=RCVD_BY_IP X-Spam-Level: X-Archive-Number: 200502/172 X-Sequence-Number: 12352 Hi, I have a really strange problem here. I've got two Fedora 2 machines - one for the database and one for a Java application to be run. When a transaction from the application is run against the database and the network cable is unplugged (or the machine is shut down) the database continues to hold the lock on the tables, which are used in the transaction. The lock is released in about 10-12 minutes, which in my case is not acceptable, because if another client starts a transaction against these locked tables his UI ties his hands until the lock on the tables is released and the transaction is complete. I started a 'netstat -atp' on the database machine and it turned out that the connection with the unplugged machine is still active (5 connections actually, because of the connection pooling). So I assumed that the sockets are just hanging there until they timeout and then the locks are released. My questions are is my assumption right and if that's true is there any way to set the postmaster's sockets timeout to for example 2 minutes. I appreciate any help on solving this. Best regards Sergei Georgiev