Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 59E61B5DC2D for ; Wed, 14 Sep 2011 06:49:01 -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 78656-04 for ; Wed, 14 Sep 2011 09:48:50 +0000 (UTC) X-Greylist: delayed 00:05:20.786186 by SQLgrey-1.8.0-rc2 Received: from nm1.bullet.mail.ird.yahoo.com (nm1.bullet.mail.ird.yahoo.com [77.238.189.58]) by mail.postgresql.org (Postfix) with SMTP id 7CA0FB5DBCB for ; Wed, 14 Sep 2011 06:48:49 -0300 (ADT) Received: from [77.238.189.50] by nm1.bullet.mail.ird.yahoo.com with NNFMP; 14 Sep 2011 09:43:27 -0000 Received: from [212.82.108.250] by tm3.bullet.mail.ird.yahoo.com with NNFMP; 14 Sep 2011 09:43:27 -0000 Received: from [127.0.0.1] by omp1015.mail.ird.yahoo.com with NNFMP; 14 Sep 2011 09:43:27 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 750280.97293.bm@omp1015.mail.ird.yahoo.com Received: (qmail 53414 invoked by uid 60001); 14 Sep 2011 09:43:27 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.it; s=s1024; t=1315993407; bh=ihWsuT/od5ICBJIAVWQvpCFqa0O8gAb7SBS1z0TkT3M=; h=X-YMail-OSG:Received:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=pHNUAk3rqik6tCLZHohAo3o5CbbQQGz8qnsz6MwQoHcKFbFtZu9BKTE2nPHWwMAfvWpZ64vUcr19BMhpbms5QKk3yfiYl8+BMfW8ldM06UBXJy4dv5ez7+TkD5GF8jN96b0gDSAH+Z3dKlJ23ET/2gM/wiHDtPGpf26MIC2Xp3o= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.it; h=X-YMail-OSG:Received:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=mHqfVoNeO7MSeFvUnkWHMh21uuKVsMyGnNnl6tzB53j8uH9XpQ2GDOnYDDSZ86V8waYyz4je2PTjY6wKb8/IKNqVXHYymeMSMIdpLKKQVhCGQkcKnIvsAAqb8km+oVDdyPw5w6MAGsoAujVRWYCTQScrXQTSJXLx3B0/hgH8Phw=; X-YMail-OSG: yodFdDMVM1kf6Fy6MGd9MbpwnEMpPRFQEAakPnN6bRnlleD BrQB7.pDWkAKrFGQb1ZZFJecvY66gqufNsHhZqiAKinXfWj_k2Bdl2pu9EUy oJcYXI8L5oAxnppXUXVtfUGr3575EYuwUfWt07mSV2yEFOBjs97JHh1SQhFF XYzLjynDoDHaNoOo553BNPIW_gJx5T0Xoxu5JiFoHxmWc_ppJySfSeB86KHP rzHYR90RERSIqmQQneqfau_NLIeWWUo1gQNV3UXTYbxtZJx3ONPHLj_h51nX xdSYJA2UyvZ51TZU0kKFJB.aE6AkMlNuca53L5mICD0zTbDHf_Yk.rU7t9v6 5ZZxppM09UilIhmxZ66tFD_riULSKlZqTgLAdBP30YeQPox.MiB15.yM3zX_ M0qTnEDcRPKrKzjR7EM71UWHMsE92yh84_avWNYN77Qq_neNqAdYAFiIHl0g avuxmgX5PamTz5dkJiBmo4JVwP8Nh1MeJCQrfw2TUow-- Received: from [85.33.62.89] by web29009.mail.ird.yahoo.com via HTTP; Wed, 14 Sep 2011 10:43:27 BST X-Mailer: YahooMailWebService/0.8.113.315625 References: <16096.1315959870@sss.pgh.pa.us> Message-ID: <1315993407.43414.YahooMailNeo@web29009.mail.ird.yahoo.com> Date: Wed, 14 Sep 2011 10:43:27 +0100 (BST) From: Leonardo Francalanci Reply-To: Leonardo Francalanci Subject: Re: Hash index use presently(?) discouraged since 2005: revive or bury it? To: Tom Lane , Peter Geoghegan Cc: Stefan Keller , "pgsql-performance@postgresql.org" In-Reply-To: <16096.1315959870@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.899 tagged_above=-10 required=5 tests=BAYES_00=-1.9, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001 X-Spam-Level: X-Archive-Number: 201109/210 X-Sequence-Number: 44986 >> Hash indexes have been improved since 2005 - their performance was=0A= =0A>> improved quite a bit in 9.0. Here's a more recent analysis:=0A> =0A>= > http://www.depesz.com/index.php/2010/06/28/should-you-use-hash-index/=0A= > =0A> The big picture though is that we're not going to remove hash indexe= s,=0A> even if they're nearly useless in themselves=0A=0AWell, if they prov= ide 3x the performance of btree indexes on index creation,=0AI wouldn't cal= l them "useless" just because they're not logged or they can't=0Abe unique.= In fact, I think the docs should specify that in index creation=0Athey're = actually better than btree (if, in fact, they are and the "depesz" test=0Ai= s not a corner case).