Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 67657B5DC0C for ; Tue, 20 Sep 2011 13:25:30 -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 11973-01 for ; Tue, 20 Sep 2011 16:25:24 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.8.0-rc2 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id ED8B7B5DC01 for ; Tue, 20 Sep 2011 13:25:23 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id p8KGPJOR009497; Tue, 20 Sep 2011 12:25:19 -0400 (EDT) To: Merlin Moncure cc: Claudio Freire , Robert Klemme , Stefan Keller , Jeff Janes , Peter Geoghegan , pgsql-performance@postgresql.org Subject: Re: Hash index use presently(?) discouraged since 2005: revive or bury it? In-reply-to: References: Comments: In-reply-to Merlin Moncure message dated "Tue, 20 Sep 2011 11:11:28 -0500" Date: Tue, 20 Sep 2011 12:25:19 -0400 Message-ID: <9496.1316535919@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.404 tagged_above=-10 required=5 tests=BAYES_00=-1.9, RP_MATCHES_RCVD=-0.504 X-Spam-Level: X-Archive-Number: 201109/289 X-Sequence-Number: 45065 Merlin Moncure writes: > just selects. update test is also very interesting -- the only test I > did for for updates is 'update foo set x=x+1' which was a win for > btree (20-30% faster typically). perhaps this isn't algorithm induced > though -- lack of wal logging could actually hurt time to commit > because it deserializes i/o. In 9.1+, you could remove WAL from the comparison by doing the tests on an unlogged table. regards, tom lane