Received: from localhost (unknown [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id 0B8CC9FA1F4 for ; Mon, 1 Oct 2007 15:36:05 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-maia, port 10024) with ESMTP id 35950-01 for ; Mon, 1 Oct 2007 15:36:01 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from beaver.fastcrypt.com (beaver.fastcrypt.com [64.7.141.17]) by postgresql.org (Postfix) with ESMTP id 4925E9FA1E6 for ; Mon, 1 Oct 2007 15:36:01 -0300 (ADT) Received: from dave-cramers-computer-2.local (dcdsl.ebox.com [64.7.143.116]) by beaver.fastcrypt.com (Postfix) with ESMTP id 4FE6D158069D; Mon, 1 Oct 2007 14:41:10 -0400 (EDT) Message-ID: <47013E0F.8050508@fastcrypt.com> Date: Mon, 01 Oct 2007 14:35:59 -0400 From: Dave Cramer Reply-To: pg@fastcrypt.com User-Agent: Thunderbird 2.0.0.6 (Macintosh/20070807) MIME-Version: 1.0 To: Josh Berkus CC: Heikki Linnakangas , lindner@inuus.com, Oliver Jowett , pgsql-jdbc@postgresql.org Subject: Re: Prepared Statements vs. pgbouncer References: <20070929002513.GG3140@inuus.com> <46FDA4F2.8080507@opencloud.com> <20070929021522.GH3140@inuus.com> <24584.1191033096@sss.pgh.pa.us> <20070929072159.GI3140@inuus.com> <46FE3B1A.7020603@agliodbs.com> <46FED7FA.6060309@opencloud.com> <46FFC314.5080205@agliodbs.com> <47000C2E.8030409@opencloud.com> <4700B21C.1000008@enterprisedb.com> <47013A0E.6080607@agliodbs.com> In-Reply-To: <47013A0E.6080607@agliodbs.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200710/15 X-Sequence-Number: 17587 Josh Berkus wrote: > Heikki, > >> You might also consider if using pgbouncer or similar really is >> necessary. Perhaps you could get away with a per-client connection pool, >> with "min pool size" small enough, maybe 0, that the number of >> simultaneous connections to the server would stay reasonable. >> > > It becomes necessary whenever you have a large number of appservers > connecting to the same database server. Setting min pool size > downwards isn't really effective becuase then you're just adding > connection time delays ... exactly what you're trying to prevent by > using a connection pool. > > I'm working on a scalable project myself which is why I'm concerned > about this. The reason why we're planning to rely on pgBouncer is > that we'll have both java and non-java applications connecting to the > same database, and we don't want to manage two different > connection/failover pools. So it's important to us that PG-JDBC > function with independant connection pools. > > So where is it going to be easier to fix this ... pgBouncer, or pg-JDBC? pgBouncer is broken so I'd fix it. > > --Josh Berkus > > ---------------------------(end of broadcast)--------------------------- > TIP 6: explain analyze is your friend >