X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 34F9052B01 for ; Thu, 18 Aug 2005 14:43:36 -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 99680-07 for ; Thu, 18 Aug 2005 17:43:32 +0000 (GMT) Received: from TWMAIL.ESNCC.COM (static-66-173-159-28.t1.cavtel.net [66.173.159.28]) by svr1.postgresql.org (Postfix) with ESMTP id 833B152A7F for ; Thu, 18 Aug 2005 14:43:24 -0300 (ADT) Received: from spawar2i8uvlb9 ([150.125.117.63]) by TWMAIL.ESNCC.COM with Microsoft SMTPSVC(5.0.2195.6713); Thu, 18 Aug 2005 13:43:24 -0400 From: "Lane Van Ingen" To: Subject: How to Control the Persistence of A PostgreSQL Connection Date: Thu, 18 Aug 2005 13:46:56 -0400 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.181 Importance: Normal X-OriginalArrivalTime: 18 Aug 2005 17:43:24.0538 (UTC) FILETIME=[55331DA0:01C5A41C] X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.087 required=5 tests=[AWL=0.037, FORGED_RCVD_HELO=0.05] X-Spam-Level: X-Archive-Number: 200508/239 X-Sequence-Number: 18558 Have been reading the manual and searching for connection timeout information, but I don't think what I have found answers my questions. Most of what I found so far is C library functions in Chapter 27 on version 8.0 manual (am not a C programmer). I saw connection timeout discussed a little bit with login / authentication type parameters, but it had to do with getting in, not maintaining a connection. We are connecting to PostgreSQL using clients running JBOSS. What I want to know is: - from the PostgreSQL side, how long will a connection to the database be kept open if inactive for a period of time, and where are the parameter(s) to affect that? - does PostgreSQL do connection pooling? - is there any way I can tell if I am getting into trouble on the number of connections open, and how long they have been open, outside of user complaints of lack of service (unable to connect)? I am on Windows 2003, using version 8.0.