X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 956083A4FB8 for ; Tue, 25 Jan 2005 00:20:08 +0000 (GMT) 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 40145-10 for ; Tue, 25 Jan 2005 00:20:03 +0000 (GMT) Received: from sraigw.sra.co.jp (sraigw.sra.co.jp [202.32.10.2]) by svr1.postgresql.org (Postfix) with ESMTP id 9C4C03A4A74 for ; Tue, 25 Jan 2005 00:20:02 +0000 (GMT) Received: from srascb.sra.co.jp (srascb [133.137.8.65]) by sraigw.sra.co.jp (Postfix) with ESMTP id BA252626AD; Tue, 25 Jan 2005 09:20:01 +0900 (JST) Received: from srascb.sra.co.jp (localhost [127.0.0.1]) by localhost.sra.co.jp (Postfix) with ESMTP id A141110CD07; Tue, 25 Jan 2005 09:20:01 +0900 (JST) Received: from sranhm.sra.co.jp (sranhm [133.137.44.16]) by srascb.sra.co.jp (Postfix) with ESMTP id 7B71710CD06; Tue, 25 Jan 2005 09:20:01 +0900 (JST) Received: from localhost (IDENT:t-ishii@dhcp-171-173.sra.co.jp [133.137.171.173]) by sranhm.sra.co.jp (8.9.3+3.2W/3.7W-srambox) with ESMTP id JAA02905; Tue, 25 Jan 2005 09:19:53 +0900 Date: Tue, 25 Jan 2005 09:21:09 +0900 (JST) Message-Id: <20050125.092109.71083385.t-ishii@sra.co.jp> To: gnari@simnet.is Cc: josh@agliodbs.com, pgsql-performance@postgresql.org Subject: Re: PgPool changes WAS: PostgreSQL clustering VS MySQL From: Tatsuo Ishii In-Reply-To: <1106591045.22635.7.camel@localhost.localdomain> References: <20050124.103033.21930526.t-ishii@sra.co.jp> <200501240952.40183.josh@agliodbs.com> <1106591045.22635.7.camel@localhost.localdomain> X-Mailer: Mew version 2.3 on Emacs 20.7 / Mule 4.1 =?iso-2022-jp?B?KBskQjAqGyhCKQ==?= Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.02 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200501/446 X-Sequence-Number: 10136 > On Mon, 2005-01-24 at 09:52 -0800, Josh Berkus wrote: > > [about keeping connections open in web context] > > Ah, clarity problem here. I'm talking about connection pooling tools from > > the client (webserver) side, such as Apache::DBI, PHP's pg_pconnect, > > Jakarta's connection pools, etc. Not pooling on the database server side, > > which is what pgPool provides. > > note that these sometimes do not provide connection pooling as such, > just persistent connections (Apache::DBI) Right. Same thing can be said to pg_pconnect. > > Most of these tools allocate a database connection to an HTTP/middleware > > client, and only release it after a specific period of inactivity. This > > means that you *could* count on "web-user==connection" for purposes of > > switching back and forth to the master -- as long as the connection-recycling > > timeout were set higher than the pgPool switch-off period. > > no. you can only count on web-server-process==connection, but not > web-user==connection, unless you can garantee that the same user > client always connects to same web-server process. I have same opinion. > am i missing something ? -- Tatsuo Ishii