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 4EE0032ABB9 for ; Thu, 7 Oct 2004 08:46:28 +0100 (BST) 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 78834-10 for ; Thu, 7 Oct 2004 07:45:55 +0000 (GMT) Received: from sraigw.sra.co.jp (sraigw.sra.co.jp [202.32.10.2]) by svr1.postgresql.org (Postfix) with ESMTP id 7F0CB32A822 for ; Thu, 7 Oct 2004 08:44:58 +0100 (BST) Received: from srascb.sra.co.jp (srascb [133.137.8.65]) by sraigw.sra.co.jp (Postfix) with ESMTP id EAA2062072; Thu, 7 Oct 2004 16:16:48 +0900 (JST) Received: from srascb.sra.co.jp (localhost [127.0.0.1]) by localhost.sra.co.jp (Postfix) with ESMTP id CA96010CD06; Thu, 7 Oct 2004 16:16:48 +0900 (JST) Received: from sranhm.sra.co.jp (sranhm [133.137.44.16]) by srascb.sra.co.jp (Postfix) with ESMTP id A55F110CD04; Thu, 7 Oct 2004 16:16:48 +0900 (JST) Received: from localhost (IDENT:t-ishii@srapc2345.sra.co.jp [133.137.44.184]) by sranhm.sra.co.jp (8.9.3+3.2W/3.7W-srambox) with ESMTP id QAA15134; Thu, 7 Oct 2004 16:16:48 +0900 Date: Thu, 07 Oct 2004 16:18:42 +0900 (JST) Message-Id: <20041007.161842.77062117.t-ishii@sra.co.jp> To: tgl@sss.pgh.pa.us Cc: matt@ymogen.net, pg@rbt.ca, awerman2@hotmail.com, scottakirkwood@gmail.com, pgsql-performance@postgresql.org Subject: Re: Caching of Queries From: Tatsuo Ishii In-Reply-To: <23362.1097118734@sss.pgh.pa.us> References: <012501c4aaf0$f12d0930$8300a8c0@solent> <20041007.100847.26272104.t-ishii@sra.co.jp> <23362.1097118734@sss.pgh.pa.us> 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.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200410/78 X-Sequence-Number: 8554 > Tatsuo Ishii writes: > > First, it's not a particular problem with pgpool. As far as I know any > > connection pool solution has exactly the same problem. Second, it's > > easy to fix if PostgreSQL provides a functionarity such as:"drop all > > temporary tables if any". > > I don't like that definition exactly --- it would mean that every time > we add more backend-local state, we expect client drivers to know to > issue the right incantation to reset that kind of state. > > I'm thinking we need to invent a command like "RESET CONNECTION" that > resets GUC variables, drops temp tables, forgets active NOTIFYs, and > generally does whatever else needs to be done to make the session state > appear virgin. When we add more such state, we can fix it inside the > backend without bothering clients. Great. It's much better than I propose. > I now realize that our "RESET ALL" command for GUC variables was not > fully thought out. We could possibly redefine it as doing the above, > but that might break some applications ... > > regards, tom lane >