Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WfOuQ-0006bW-DE for pgsql-hackers@arkaria.postgresql.org; Wed, 30 Apr 2014 07:26:26 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WfOuP-0002O9-TH for pgsql-hackers@arkaria.postgresql.org; Wed, 30 Apr 2014 07:26:25 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WfOuO-0002Nu-CT for pgsql-hackers@postgresql.org; Wed, 30 Apr 2014 07:26:24 +0000 Received: from mail-ob0-f181.google.com ([209.85.214.181]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WfOuL-0006eS-Ex for pgsql-hackers@postgresql.org; Wed, 30 Apr 2014 07:26:23 +0000 Received: by mail-ob0-f181.google.com with SMTP id gq1so1530559obb.40 for ; Wed, 30 Apr 2014 00:26:20 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=QaIrhYb/TOsBdZEN7csxTbGU0bj+FXIznoMvHtfE6NI=; b=hFSnxP1emOkYs0Gu8r36x9onMe618ypiKPZ+2VChOyHg5wA3cDfypCnD7fpU69tAFt NtgIFHMkZKeSq/s6QqgLRa6N2sFsl/iamGKNLYu3Lkw6lQKmV5jkV3SAyOe/gpBViGDt Iz8sdL7gaWN3mEy0b7hESeSLLJdciHWb/UPdpRd3FJP+4VVhOR5k5Eq1iikCipx5W0gZ PQXkdBvmNOEfhJn1YxNG5Lj9c+0MSu7II7E21c8VYkJ/5Q7c6JLwUc+lmo1MKCubFilc dgQsDlwQ28iiQiYJwQYzlkoios0RV5A4qgioJ1Ykhy0+B9VxK4lyHN0DtoedmbRJ/4Sb bhsA== X-Gm-Message-State: ALoCoQlcKTOkp2VUooT11cMKcGP4qGkJZehkz3DCKZ5mATE4/Yge1C6kocef8YKCKowILFIrG3T3 MIME-Version: 1.0 X-Received: by 10.60.77.35 with SMTP id p3mr3835251oew.46.1398842780573; Wed, 30 Apr 2014 00:26:20 -0700 (PDT) Received: by 10.182.176.67 with HTTP; Wed, 30 Apr 2014 00:26:20 -0700 (PDT) In-Reply-To: References: <54977A8C-4AF5-4BCC-B021-78E9CA978077@gmail.com> Date: Wed, 30 Apr 2014 00:26:20 -0700 Message-ID: Subject: Re: GSoC on WAL-logging hash indexes From: Peter Geoghegan To: Robert Haas Cc: Tan Tran , Greg Stark , pgsql-advocacy , PostgreSQL-development Content-Type: text/plain; charset=UTF-8 X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org On Mon, Mar 3, 2014 at 8:12 AM, Robert Haas wrote: >> As a GSoC student, I will implement WAL recovery of hash indexes using the >> other index types' WAL code as a guide. Frankly, I'm skeptical of the idea that hash indexes will ever really be useful. I realize that that's a counter-intuitive conclusion, but there are many things we could do to improve B-Tree CPU costs to make them closer to those of hash indexes, without making them any less flexible. I myself would much rather work on that, and intend to. The O(1) cost seems attractive when you consider that that only requires that we read one index page from disk to service any given index scan, but in fact B-Trees almost always only require the same. They are of course also much more flexible. The concurrency characteristics B-Trees are a lot better understood. I sincerely suggest that we forget about conventional hash table type indexes. I fear they're a lost cause. -- Peter Geoghegan -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers