Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 532B31337B64 for ; Wed, 27 Oct 2010 17:41:25 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 70277-06 for ; Wed, 27 Oct 2010 20:41:19 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mh3.mail.rice.edu (mh3.mail.rice.edu [128.42.199.10]) by mail.postgresql.org (Postfix) with ESMTP id BC171133798F for ; Wed, 27 Oct 2010 17:41:17 -0300 (ADT) Received: from mh3.mail.rice.edu (localhost.localdomain [127.0.0.1]) by mh3.mail.rice.edu (Postfix) with ESMTP id AAD2628F6FB; Wed, 27 Oct 2010 15:41:16 -0500 (CDT) X-Virus-Scanned: by amavis-2.6.4 at mh3.mail.rice.edu, auth channel Received: from mh3.mail.rice.edu ([127.0.0.1]) by mh3.mail.rice.edu (mh3.mail.rice.edu [127.0.0.1]) (amavis, port 10026) with ESMTP id HpsvmoTOtQTS; Wed, 27 Oct 2010 15:41:16 -0500 (CDT) X-SMTP-Auth: no X-SMTP-Auth: no X-SMTP-Auth: no X-SMTP-Auth: no X-SMTP-Auth: no Received: from aart.is.rice.edu (aart.is.rice.edu [168.7.56.48]) by mh3.mail.rice.edu (Postfix) with ESMTP id 7731528F6EA; Wed, 27 Oct 2010 15:41:16 -0500 (CDT) Received: by aart.is.rice.edu (Postfix, from userid 18612) id D5CDF2D5A6; Wed, 27 Oct 2010 15:41:15 -0500 (CDT) Date: Wed, 27 Oct 2010 15:41:15 -0500 From: Kenneth Marshall To: Pierre C Cc: Robert Haas , Tom Lane , Mladen Gogala , pgsql-performance@postgresql.org Subject: Re: Select count(*), the sequel Message-ID: <20101027204115.GB27429@aart.is.rice.edu> References: <4CB9D89E.7050701@vmsinfo.com> <20101016184443.GA4993@aart.is.rice.edu> <2091.1288133491@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.16 (2007-06-09) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-4.21 tagged_above=-10 required=5 tests=BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201010/513 X-Sequence-Number: 40931 On Wed, Oct 27, 2010 at 09:52:49PM +0200, Pierre C wrote: >> Even if somebody had a >> great idea that would make things smaller without any other penalty, >> which I'm not sure I believe either. > > I'd say that the only things likely to bring an improvement significant > enough to warrant the (quite large) hassle of implementation would be : > > - read-only / archive tables (get rid of row header overhead) > - in-page compression using per-column delta storage for instance (no > random access penalty, but hard to implement, maybe easier for read-only > tables) > - dumb LZO-style compression (license problems, needs parallel > decompressor, random access penalty, hard to implement too) > Different algorithms have been discussed before. A quick search turned up: quicklz - GPL or commercial fastlz - MIT works with BSD okay zippy - Google - no idea about the licensing lzf - BSD-type lzo - GPL or commercial zlib - current algorithm Of these lzf can compress at almost 3.7X of zlib and decompress at 1.7X and fastlz can compress at 3.1X of zlib and decompress at 1.9X. The same comparison put lzo at 3.0X for compression and 1.8X decompress. The block design of lzl/fastlz may be useful to support substring access to toasted data among other ideas that have been floated here in the past. Just keeping the hope alive for faster compression. Cheers, Ken