X-Original-To: pgsql-general-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 5A63653748 for ; Mon, 9 May 2005 12:27:58 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 36800-04 for ; Mon, 9 May 2005 15:27:56 +0000 (GMT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.197]) by svr1.postgresql.org (Postfix) with ESMTP id F13EB5373E for ; Mon, 9 May 2005 12:27:54 -0300 (ADT) Received: by wproxy.gmail.com with SMTP id 68so1181998wri for ; Mon, 09 May 2005 08:27:54 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=ph1XGFTr7Mv9bgYAnwHXtZropYG30Np0kg3//1ndaJ/seq6iTyx3uqvJefcWtDhlpQUM4Uk2/OQKcLm27rF7wBJ4UJ00B8mkE4TQZ4v2DR6LQti7a464BPBfQ9PwYtl5bLEfpkE/HuXgZoJO3g7FPIm/Ej8vmwwLOFGP8HkfrbM= Received: by 10.54.84.2 with SMTP id h2mr2701404wrb; Mon, 09 May 2005 08:27:54 -0700 (PDT) Received: by 10.54.117.15 with HTTP; Mon, 9 May 2005 08:27:54 -0700 (PDT) Message-ID: <59d991c405050908271b55e673@mail.gmail.com> Date: Mon, 9 May 2005 11:27:54 -0400 From: Christopher Petrilli Reply-To: Christopher Petrilli To: Neil Conway Subject: Re: [PERFORM] "Hash index" vs. "b-tree index" (PostgreSQL 8.0) Cc: Ying Lu , pgsql-general@postgresql.org, pgsql-performance@postgresql.org In-Reply-To: <427F757A.8000407@samurai.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <427F6853.90308@cs.concordia.ca> <427F757A.8000407@samurai.com> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.319 tagged_above=0 required=5 tests=AWL, DNS_FROM_RFC_ABUSE, RCVD_BY_IP X-Spam-Level: X-Archive-Number: 200505/380 X-Sequence-Number: 77728 On 5/9/05, Neil Conway wrote: > I don't think we've found a case in which the hash index code > outperforms B+-tree indexes, even for "=3D". The hash index code also has > a number of additional issues: for example, it isn't WAL safe, it has > relatively poor concurrency, and creating a hash index is significantly > slower than creating a b+-tree index. This being the case, is there ever ANY reason for someone to use it?=20 If not, then shouldn't we consider deprecating it and eventually removing it. This would reduce complexity, I think. Chris --=20 | Christopher Petrilli | petrilli@gmail.com