X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id D8E0952807 for ; Thu, 19 May 2005 13:57:28 -0300 (ADT) 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 89199-06 for ; Thu, 19 May 2005 16:57:20 +0000 (GMT) Received: from koolancexeon.g2switchworks.com (mail.g2switchworks.com [63.87.162.25]) by svr1.postgresql.org (Postfix) with ESMTP id 3F74952859 for ; Thu, 19 May 2005 13:57:19 -0300 (ADT) Received: mail.g2switchworks.com 10.10.1.8 from 10.10.1.37 10.10.1.37 via HTTP with MS-WebStorage 6.5.6944 Received: from state.g2switchworks.com by mail.g2switchworks.com; 19 May 2005 11:57:29 -0500 Subject: Re: postgresql database connection From: Scott Marlowe To: chen@musc.edu Cc: pgsql-admin list , mckilldj@musc.edu In-Reply-To: <428CBFB8.10504@musc.edu> References: <428CBFB8.10504@musc.edu> Content-Type: text/plain Content-Transfer-Encoding: 7bit Message-Id: <1116521849.31821.91.camel@state.g2switchworks.com> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 (1.4.6-2) Date: Thu, 19 May 2005 11:57:29 -0500 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.006 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200505/251 X-Sequence-Number: 17680 On Thu, 2005-05-19 at 11:32, Chuming Chen wrote: > Hi, all, > > If the client didn't close the connection explicitly, how long it will > be kept then closed by the server. Does this effect the performance? Until the TCP/IP timeout occurs, which is usually several hours. It only affects performance if there's a lot (like several hundred) dead connections laying around, or if there are so many you run out of connections and your app can't get to the database.