Received: from localhost (maia-1.hub.org [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id 987599FB3FC for ; Thu, 1 Mar 2007 04:58:31 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-new, port 10024) with ESMTP id 07540-01 for ; Thu, 1 Mar 2007 04:58:28 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from svr2.hagander.net (svr2.hagander.net [88.198.128.226]) by postgresql.org (Postfix) with ESMTP id A52F99FB350 for ; Thu, 1 Mar 2007 04:58:28 -0400 (AST) Received: from svr2.hagander.net (svr2.hagander.net [88.198.128.226]) by svr2.hagander.net (Postfix) with ESMTP id 31B57DCC62C; Thu, 1 Mar 2007 09:58:24 +0100 (CET) Received: by svr2.hagander.net (Postfix, from userid 1000) id 2C969DCC62D; Thu, 1 Mar 2007 09:58:24 +0100 (CET) Date: Thu, 1 Mar 2007 09:58:24 +0100 From: Magnus Hagander To: "Jonah H. Harris" Cc: Shiva Sarna , pgsql-performance@postgresql.org Subject: Re: increasing database connections Message-ID: <20070301085824.GB27639@svr2.hagander.net> References: <20070301051859.65918.qmail@web7714.mail.in.yahoo.com> <36e682920702282149y3529b175ob5814e3f957aec15@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <36e682920702282149y3529b175ob5814e3f957aec15@mail.gmail.com> User-Agent: Mutt/1.5.11 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.065 tagged_above=0 required=5 tests=AWL, BAYES_50 X-Spam-Level: X-Archive-Number: 200703/5 X-Sequence-Number: 23410 On Thu, Mar 01, 2007 at 12:49:14AM -0500, Jonah H. Harris wrote: > On 3/1/07, Shiva Sarna wrote: > >I am sorry if it is a repeat question but I want to know if database > >performance will decrease if I increase the max-connections to 2000. At > >present it is 100. > > Most certainly. Adding connections over 200 will degrade performance > dramatically. You should look into pgpool or connection pooling from > the application. Are you sure? I've heard of at least one installation which runs with 5000+ connections, and it works fine. (you know who you are - I don't know if it's public info, so I can't put out the details - but feel free to fill in :P) That said, there's certainly some overhead, and using pgpool if possible is good advice (depending on workload). I'm just wondering about the "dramatically" part. //Magnus