Received: from localhost (wm.hub.org [200.46.204.128]) by postgresql.org (Postfix) with ESMTP id ACBBA9F9F0F for ; Fri, 17 Nov 2006 11:08:56 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.128]) (amavisd-new, port 10024) with ESMTP id 42622-05 for ; Fri, 17 Nov 2006 15:08:49 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey- Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 21B949F9CF9 for ; Fri, 17 Nov 2006 11:08:48 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.6/8.13.6) with ESMTP id kAHF8ldd013526; Fri, 17 Nov 2006 10:08:47 -0500 (EST) To: "Simon Riggs" cc: "Balazs Nagy" , pgsql-bugs@postgresql.org, pgsql-performance@postgresql.org Subject: Re: [PERFORM] BUG #2737: hash indexing large tablefails, while btree of same index works In-reply-to: <1163761151.27956.592.camel@silverbirch.site> References: <200611051347.kA5DlVCk032222@wwwmaster.postgresql.org> <7530.1163202951@sss.pgh.pa.us> <1163233075.3634.944.camel@silverbirch.site> <1884.1163717296@sss.pgh.pa.us> <1163761151.27956.592.camel@silverbirch.site> Comments: In-reply-to "Simon Riggs" message dated "Fri, 17 Nov 2006 10:59:11 +0000" Date: Fri, 17 Nov 2006 10:08:47 -0500 Message-ID: <13525.1163776127@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200611/120 X-Sequence-Number: 16255 "Simon Riggs" writes: > Do we think there is hope of improving hash indexes? Sure. They lack WAL support, which is just a small matter of programming. And no one has ever spent any time on performance optimization for them, but it certainly seems like there ought to be scope for improvement. I don't we should toss them unless it's been proven that their theoretical performance advantages can't be realized for some reason. (This is unlike the situation for rtree, because with rtree there was no reason to expect that rtree could dominate gist along any axis.) > If there is hope, is there a specific place to look? I recall some speculation that using bucket size == page size might be a bad choice, because it leads to mostly-empty buckets for typical key sizes and fill factors. Using a configurable bucket size could help a lot. regards, tom lane