Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 80E8D1337CB8 for ; Wed, 13 Oct 2010 18:47:59 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 10629-05 for ; Wed, 13 Oct 2010 21:46:51 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from shrek.krogh.cc (2605ds1-ynoe.0.fullrate.dk [90.184.12.24]) by mail.postgresql.org (Postfix) with ESMTP id A65521337BE9 for ; Wed, 13 Oct 2010 14:59:54 -0300 (ADT) Received: from localhost (localhost [127.0.0.1]) by shrek.krogh.cc (Postfix) with ESMTP id 4CB56B1BB4; Wed, 13 Oct 2010 19:59:52 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at shrek.krogh.cc Received: from shrek.krogh.cc ([127.0.0.1]) by localhost (shrek.krogh.cc [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id sDwNM5362Bm1; Wed, 13 Oct 2010 19:59:49 +0200 (CEST) Received: from [90.184.13.151] (2605ds1-ynoe.2.fullrate.dk [90.184.13.151]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: jesper@krogh.cc) by shrek.krogh.cc (Postfix) with ESMTPSA id E60CFB1B3C; Wed, 13 Oct 2010 19:59:48 +0200 (CEST) Message-ID: <4CB5F394.6090909@krogh.cc> Date: Wed, 13 Oct 2010 19:59:48 +0200 From: Jesper Krogh User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.12) Gecko/20100915 Thunderbird/3.0.8 MIME-Version: 1.0 To: Robert Haas CC: Neil Whelchel , pgsql-performance@postgresql.org Subject: Re: Slow count(*) again... References: <201010091626.18636.neil.whelchel@gmail.com> <201010130138.39893.neil.whelchel@gmail.com> <4CB572CF.4080709@catalyst.net.nz> <201010130316.12922.neil.whelchel@gmail.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-10 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201010/216 X-Sequence-Number: 40635 On 2010-10-13 15:28, Robert Haas wrote: > On Wed, Oct 13, 2010 at 6:16 AM, Neil Whelchel wrote: > >> I might go as far as to rattle the cage of the developers to see if it makes >> any sense to add some column oriented storage capability to Postgres. That >> would be the hot ticket to be able to specify an attribute on a column so that >> the back end could shadow or store a column in a column oriented table so >> aggregate functions could work on them with good efficiency, or is that an >> INDEX? >> > I'd love to work on that, but without funding it's tough to find the > time. It's a big project. > Is it hugely different from just getting the visibillity map suitable for doing index-only scans and extracting values from the index directly as Heikki has explained? That would essentially do a column oriented table (the index itself) of a specific columns (or column set). ... still a huge task though. -- Jesper