Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bGZF8-0007S6-MD for pgsql-bugs@arkaria.postgresql.org; Fri, 24 Jun 2016 22:06:30 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bGZF7-0000ez-Ul for pgsql-bugs@arkaria.postgresql.org; Fri, 24 Jun 2016 22:06:29 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bGZEU-0008ND-6w for pgsql-bugs@postgresql.org; Fri, 24 Jun 2016 22:05:50 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bGZER-0004Rc-RX for pgsql-bugs@postgresql.org; Fri, 24 Jun 2016 22:05:49 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id u5OM5jOT002503; Fri, 24 Jun 2016 18:05:45 -0400 From: Tom Lane To: Peter Geoghegan cc: Daniel Newman , danielnewman@umich.edu, Robert Haas , pgsql-bugs Subject: Re: BUG #14210: filter by "=" constraint doesn't work when hash index is present on a column In-reply-to: References: <20160623162507.17237.39471@wrigleys.postgresql.org> <30648.1466701447@sss.pgh.pa.us> <10331.1466723337@sss.pgh.pa.us> <1009.1466803245@sss.pgh.pa.us> Comments: In-reply-to Peter Geoghegan message dated "Fri, 24 Jun 2016 14:56:54 -0700" Date: Fri, 24 Jun 2016 18:05:45 -0400 Message-ID: <2502.1466805945@sss.pgh.pa.us> X-Pg-Spam-Score: -3.3 (---) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Peter Geoghegan writes: > On Fri, Jun 24, 2016 at 2:20 PM, Tom Lane wrote: >> I agree that we need to do something, but I'm not very clear on what >> the something is. I considered inventing a debug #define that would >> reduce the _h_spool threshold to the minimum workable amount (2, looks >> like), but I'm not sure how much that will help. What did you have >> in mind? > I think we should do that. Why do you say that you're not sure how > much it will help? Well, it won't run automatically --- unless someone spins up a buildfarm machine that adds that symbol to CPPFLAGS, and even then we'd only have coverage on one platform. However, the next step up would be to invent an index storage parameter or some such to force the decision, letting the standard regression tests include a reasonably-cheap case that would exercise _h_spool. But that seems like rather a large amount of work compared to the likely benefits. regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs