Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 1A1E8632A86 for ; Fri, 9 Jul 2010 09:56:37 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 98711-03 for ; Fri, 9 Jul 2010 12:56:28 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from outbound.afilias.info (outbound.afilias.info [69.46.124.26]) by mail.postgresql.org (Postfix) with ESMTP id E150E6329CC for ; Fri, 9 Jul 2010 09:56:29 -0300 (ADT) Received: from ms5.yyz2.afilias-ops.info ([10.50.129.111] helo=smtp.afilias.info) by outbound.afilias.info with esmtp (Exim 4.69) (envelope-from ) id 1OXD7z-0003hc-5n; Fri, 09 Jul 2010 12:56:27 +0000 Received: from tor-gateway.afilias.info ([199.15.87.4] helo=[10.10.46.12]) by smtp.afilias.info with esmtps (SSLv3:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1OXD7z-0003b3-5K; Fri, 09 Jul 2010 12:56:27 +0000 Subject: Re: Need help in performance tuning. From: Brad Nicholson To: Tom Lane Cc: pgsql-performance@postgresql.org In-Reply-To: <8760.1278650566@sss.pgh.pa.us> References: <4C369346.6010501@postnewspapers.com.au> <8760.1278650566@sss.pgh.pa.us> Content-Type: text/plain; charset="UTF-8" Date: Fri, 09 Jul 2010 08:56:25 -0400 Message-ID: <1278680186.1914.36.camel@bnicholson-desktop> Mime-Version: 1.0 X-Mailer: Evolution 2.28.3 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.81 tagged_above=-10 required=5 tests=BAYES_05=-0.5, RCVD_IN_DNSWL_MED=-2.3, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201007/150 X-Sequence-Number: 39539 On Fri, 2010-07-09 at 00:42 -0400, Tom Lane wrote: > Samuel Gendler writes: > > On Thu, Jul 8, 2010 at 8:11 PM, Craig Ringer > > wrote: > >> If you're not using a connection pool, start using one. > > > I see this issue and subsequent advice cross this list awfully > > frequently. Is there in architectural reason why postgres itself > > cannot pool incoming connections in order to eliminate the requirement > > for an external pool? > > Perhaps not, but there's no obvious benefit either. Since there's > More Than One Way To Do It, it seems more practical to keep that as a > separate problem that can be solved by a choice of add-on packages. This sounds similar to the approach to taken with Replication for years before being moved into core. Just like replication, pooling has different approaches. I do think that in both cases, having a solution that works, easily, out of the "box" will meet the needs of most users. There is also the issue of perception/adoption here as well. One of my colleagues mentioned that at PG East that he repeatedly heard people talking (negatively) about the over reliance on add-on packages to deal with core DB functionality. -- Brad Nicholson 416-673-4106 Database Administrator, Afilias Canada Corp.