X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 5DE1052F0F for ; Sat, 20 Aug 2005 12:10:49 -0300 (ADT) 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 70818-04 for ; Sat, 20 Aug 2005 15:10:31 +0000 (GMT) Received: from cassarossa.samfundet.no (cassarossa.samfundet.no [129.241.93.19]) by svr1.postgresql.org (Postfix) with ESMTP id 5230D52DC1 for ; Sat, 20 Aug 2005 12:10:29 -0300 (ADT) Received: from trofast.sesse.net ([129.241.93.32]) by cassarossa.samfundet.no with esmtp (Exim 4.50) id 1E6UzK-00036J-Bt for pgsql-performance@postgresql.org; Sat, 20 Aug 2005 17:10:27 +0200 Received: from sesse by trofast.sesse.net with local (Exim 3.36 #1 (Debian)) id 1E6UzJ-0003Zr-00 for ; Sat, 20 Aug 2005 17:10:25 +0200 Date: Sat, 20 Aug 2005 17:10:25 +0200 From: "Steinar H. Gunderson" To: pgsql-performance@postgresql.org Subject: Re: index as large as table Message-ID: <20050820151025.GA12890@uio.no> Mail-Followup-To: pgsql-performance@postgresql.org References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Operating-System: Linux 2.6.11.8 on a i686 X-Message-Flag: Outlook? --> http://www.mozilla.org/products/thunderbird/ User-Agent: Mutt/1.5.10i X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.016 required=5 tests=[AWL=0.016] X-Spam-Level: X-Archive-Number: 200508/295 X-Sequence-Number: 14042 On Sat, Aug 20, 2005 at 11:08:13PM +1000, Gavin Sherry wrote: > Of course. The idea is that, generally speaking, you're only interested in > a small portion of the data stored in the table. Indexes store extra data > so that they can locate the portion you're interested in faster. I think his question was more why you needed the data in itself, when you had everything you needed in the index anyway. (Actually, you don't -- indexes don't carry MVCC information, but I guess that's a bit beside the point.) There has been discussion on "heap tables" or whatever you'd want to call them (ie. tables that are organized as a B+-tree on some index) here before; I guess the archives would be a reasonable place to start looking. /* Steinar */ -- Homepage: http://www.sesse.net/