Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ltsgd-0005Uo-M3 for pgsql-bugs@arkaria.postgresql.org; Thu, 17 Jun 2021 14:08:03 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ltsga-0003r1-TV for pgsql-bugs@arkaria.postgresql.org; Thu, 17 Jun 2021 14:08:00 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ltsga-0003qt-Mf for pgsql-bugs@lists.postgresql.org; Thu, 17 Jun 2021 14:08:00 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ltsgY-0004Fu-Ey for pgsql-bugs@lists.postgresql.org; Thu, 17 Jun 2021 14:08:00 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 15HE7sX7970433; Thu, 17 Jun 2021 10:07:54 -0400 From: Tom Lane To: Pawel Kudzia cc: pgsql-bugs@lists.postgresql.org Subject: Re: BUG #16792: silent corruption of GIN index resulting in SELECTs returning non-matching rows In-reply-to: References: <16792-b1913b6b4e098331@postgresql.org> Comments: In-reply-to Pawel Kudzia message dated "Thu, 17 Jun 2021 10:00:10 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <970431.1623938874.1@sss.pgh.pa.us> Date: Thu, 17 Jun 2021 10:07:54 -0400 Message-ID: <970432.1623938874@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Pawel Kudzia writes: > with help from IRC we've found that decreasing work_mem from 1MB to 256kB > or less makes the problem go away: Hmm. So that suggests that the index itself is *not* corrupt, but the problem is associated with a bug in the indexscan algorithms. Have you experimented with different index opclasses? Your original report said you were using gin__int_ops, but that's not the default, and we sort of deprecate intarray these days. regards, tom lane