X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id A16FD9DC841 for ; Tue, 17 Jan 2006 18:53:14 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 56445-02 for ; Tue, 17 Jan 2006 18:53:16 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from davinci.ethosmedia.com (server227.ethosmedia.com [209.128.84.227]) by postgresql.org (Postfix) with ESMTP id E5EF49DC80F for ; Tue, 17 Jan 2006 18:53:11 -0400 (AST) X-EthosMedia-Virus-Scanned: no infections found Received: from [64.81.245.111] (account josh@agliodbs.com HELO [192.168.1.27]) by davinci.ethosmedia.com (CommuniGate Pro SMTP 4.1.8) with ESMTP id 8836804; Tue, 17 Jan 2006 14:56:00 -0800 From: Josh Berkus Reply-To: josh@agliodbs.com Organization: Aglio Database Solutions To: pgsql-performance@postgresql.org Subject: Re: Suspending SELECTs Date: Tue, 17 Jan 2006 14:59:02 -0800 User-Agent: KMail/1.8 Cc: Alessandro Baretta , Tom Lane References: <43CB71AC.20203@barettadeit.com> <9766.1137433907@sss.pgh.pa.us> <43CD4BD0.9090807@barettadeit.com> In-Reply-To: <43CD4BD0.9090807@barettadeit.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200601171459.02398.josh@agliodbs.com> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.076 required=5 tests=[AWL=0.076] X-Spam-Score: 0.076 X-Spam-Level: X-Archive-Number: 200601/274 X-Sequence-Number: 16752 Alessandro, > I understand most of these issues, and expected this kind of reply. > Please, allow me to insist that we reason on this problem and try to > find a solution. My reason for doing so is that the future software > industry is likely to see more and more web applications retrieving data > from virtually endless databases, and in such contexts, it is sensible > to ask the final client--the web client--to store the "cursor state", > because web interaction is intrinsically asynchronous, and you cannot > count on users logging out when they're done, releasing resources > allocated to them. Think of Google. I think you're trying to use an unreasonable difficult method to solve a problem that's already been solved multiple times. What you want is called "query caching." There are about 800 different ways to do this on the middleware or application layer which are 1000% easier than what you're proposing. -- --Josh Josh Berkus Aglio Database Solutions San Francisco