X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (neptune.hub.org [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id E8A8FD1B52F for ; Wed, 14 Jan 2004 18:01:47 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 72762-04 for ; Wed, 14 Jan 2004 14:01:17 -0400 (AST) Received: from oxygen.nocdirect.com (oxygen.nocdirect.com [69.73.167.175]) by svr1.postgresql.org (Postfix) with ESMTP id EE57BD1B469 for ; Wed, 14 Jan 2004 14:01:10 -0400 (AST) Received: from cuscon3667.tstt.net.tt ([209.94.215.189] helo=rasadam.com) by oxygen.nocdirect.com with asmtp (Exim 4.24) id 1AgpK3-0003Md-6F for pgsql-performance@postgresql.org; Wed, 14 Jan 2004 12:00:55 -0600 Message-ID: <40058606.10605@rasadam.com> Date: Wed, 14 Jan 2004 14:10:14 -0400 From: Adam Alkins User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6b) Gecko/20031205 Thunderbird/0.4 X-Accept-Language: en-us, en MIME-Version: 1.0 To: pgsql-performance@postgresql.org Subject: Re: 100 simultaneous connections, critical limit? References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - oxygen.nocdirect.com X-AntiAbuse: Original Domain - postgresql.org X-AntiAbuse: Originator/Caller UID/GID - [0 0] / [47 12] X-AntiAbuse: Sender Address Domain - rasadam.com X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200401/144 X-Sequence-Number: 5319 scott.marlowe wrote: >A few tips from an old PHP/Apache/Postgresql developer. > >1: Avoid pg_pconnect unless you are certain you have load tested the >system and it will behave properly. pg_pconnect often creates as many >issues as it solves. > > I share the above view. I've had little success with persistent connections. The cost of pg_connect is minimal, pg_pconnect is not a viable solution IMHO. Connections are rarely actually reused. -- Adam Alkins http://www.rasadam.com