Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bOWH4-0000yN-5w for pgsql-bugs@arkaria.postgresql.org; Sat, 16 Jul 2016 20:33:22 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bOWH3-0005Fe-Gc for pgsql-bugs@arkaria.postgresql.org; Sat, 16 Jul 2016 20:33:21 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bOWGP-0004VO-SO for pgsql-bugs@postgresql.org; Sat, 16 Jul 2016 20:32:41 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bOWGK-0006s8-DA for pgsql-bugs@postgresql.org; Sat, 16 Jul 2016 20:32:41 +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 u6GKWU1Q025691; Sat, 16 Jul 2016 16:32:30 -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> <2502.1466805945@sss.pgh.pa.us> <32645.1466868739@sss.pgh.pa.us> <19501.1466881277@sss.pgh.pa.us> <32702.1467039279@sss.pgh.pa.us> <1681.1467040869@sss.pgh.pa.us> <5399.1467058945@sss.pgh.pa.us> <21695.1468697736@sss.pgh.pa.us> <22562.1468699476@sss.pgh.pa.us> Comments: In-reply-to Peter Geoghegan message dated "Sat, 16 Jul 2016 13:10:15 -0700" Date: Sat, 16 Jul 2016 16:32:30 -0400 Message-ID: <25690.1468701150@sss.pgh.pa.us> X-Pg-Spam-Score: -3.2 (---) 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 Sat, Jul 16, 2016 at 1:04 PM, Tom Lane wrote: >> ... Maybe we should stick at least one simple test query in there >> before we drop the index again. > That's what I was thinking, but wasn't sure offhand which way it would > happen. Couldn't hurt much to just add one more test. Right. Done. > It is pretty awkward how the hash index searches are in > hash_index.sql, which must coordinate with create_index.sql, but I > didn't want to go against the grain and just put it all in one place. > Maybe I should have. Well, that structure is intended to work with indexes that are built and then left in place throughout the tests. For a short-lived index, the best thing is to create it, test it, drop it, and really you can do that about anywhere. But again, doing that on tenk1 is problematic because of its popularity in all sorts of query-planning tests; if you're going to add a short-lived index you need to do that in a test that's not meant to run concurrently with a lot of other stuff. Another approach we could have taken is to construct a table just for this purpose. But I think the way it is now is fine. In the longer term, if hash indexes ever become less of a second-class citizen, maybe we'd actually want to include a hash index on tenk1 throughout the tests. But I don't want to go there today. 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