X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 1B239D1DF29 for ; Tue, 4 May 2004 12:46:41 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 14839-10 for ; Tue, 4 May 2004 12:46:07 -0300 (ADT) Received: from news.hub.org (news.hub.org [200.46.204.72]) by svr1.postgresql.org (Postfix) with ESMTP id 206D1D1B520 for ; Tue, 4 May 2004 12:46:07 -0300 (ADT) Received: from news.hub.org (news.hub.org [200.46.204.72]) by news.hub.org (8.12.9/8.12.9) with ESMTP id i44Fk6Sx050540 for ; Tue, 4 May 2004 15:46:06 GMT (envelope-from news@news.hub.org) Received: (from news@localhost) by news.hub.org (8.12.9/8.12.9/Submit) id i44FRsdR042648 for pgsql-performance@postgresql.org; Tue, 4 May 2004 15:27:54 GMT From: Joseph Shraibman X-Newsgroups: comp.databases.postgresql.performance Subject: Re: cache table Date: Tue, 04 May 2004 11:27:53 -0400 Organization: Hub.Org Networking Services Lines: 9 Message-ID: <4097B679.60301@selectacast.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@news.hub.org To: "scott.marlowe" User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7b) Gecko/20040421 X-Accept-Language: en-us, en In-Reply-To: To: pgsql-performance@postgresql.org X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200405/24 X-Sequence-Number: 6855 scott.marlowe wrote: > I think you might be interested in materialized views. You could create > this as a materialized view which should be very fast to just select * > from. That seems to be the count table I envisioned. It just hides the details for me. It still has the problems of an extra UPDATE every time the data table is updated and generating a lot of dead tuples.