Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bG83i-000074-Qc for pgsql-bugs@arkaria.postgresql.org; Thu, 23 Jun 2016 17:04:54 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bG83i-00008L-8B for pgsql-bugs@arkaria.postgresql.org; Thu, 23 Jun 2016 17:04:54 +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 1bG835-0007t4-1F for pgsql-bugs@postgresql.org; Thu, 23 Jun 2016 17:04:15 +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 1bG82y-0001Mx-0m for pgsql-bugs@postgresql.org; Thu, 23 Jun 2016 17:04:13 +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 u5NH47SZ030649; Thu, 23 Jun 2016 13:04:07 -0400 From: Tom Lane To: danielnewman@umich.edu cc: pgsql-bugs@postgresql.org Subject: Re: BUG #14210: filter by "=" constraint doesn't work when hash index is present on a column In-reply-to: <20160623162507.17237.39471@wrigleys.postgresql.org> References: <20160623162507.17237.39471@wrigleys.postgresql.org> Comments: In-reply-to danielnewman@umich.edu message dated "Thu, 23 Jun 2016 16:25:07 -0000" Date: Thu, 23 Jun 2016 13:04:07 -0400 Message-ID: <30648.1466701447@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 danielnewman@umich.edu writes: > When I run the query `select * from hash_issue_table where hash_issue_column > like '2184';` I get 701 results. When I run the query > When I run the query `select * from hash_issue_table where hash_issue_column > = '2184';`, I get 0 results. However, if I drop the hash index and rerun the > second query, I get the same results. Sounds like a corrupted hash index to me; which is not terribly surprising given hash indexes' lack of WAL support. Can you reproduce this after rebuilding the hash index? 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