Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1isZTa-0002Gm-So for pgsql-hackers@arkaria.postgresql.org; Fri, 17 Jan 2020 21:48:23 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1isZTY-0000D6-3s for pgsql-hackers@arkaria.postgresql.org; Fri, 17 Jan 2020 21:48:20 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1isZTX-00009k-NW for pgsql-hackers@lists.postgresql.org; Fri, 17 Jan 2020 21:48:19 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1isZTR-00048E-A3 for pgsql-hackers@lists.postgresql.org; Fri, 17 Jan 2020 21:48:18 +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 00HLmAsP018358; Fri, 17 Jan 2020 16:48:10 -0500 From: Tom Lane To: Alexander Korotkov cc: Julien Rouhaud , Tomas Vondra , Nikita Glukhov , PostgreSQL Hackers , Thomas Munro , Marc Cousin Subject: Re: Avoid full GIN index scan when possible In-reply-to: References: <17590.1564685940@sss.pgh.pa.us> <19189.1564687723@sss.pgh.pa.us> <19438.1565209940@sss.pgh.pa.us> <20200106152155.uuungi2p776p5lbk@development> <29242.1578670290@sss.pgh.pa.us> <20952.157902739! 1@sss.pgh.pa.us> <7614.1579043019@sss.pgh.pa.us> Comments: In-reply-to Alexander Korotkov message dated "Sat, 18 Jan 2020 00:33:14 +0300" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <18356.1579297690.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Fri, 17 Jan 2020 16:48:10 -0500 Message-ID: <18357.1579297690@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Alexander Korotkov writes: > On Wed, Jan 15, 2020 at 2:03 AM Tom Lane wrote: >> Hmm ... yeah, these test cases are not large enough to exercise any >> lossy-page cases, are they? I doubt we should try to make a new regres= sion >> test that is that big. (But if there is one already, maybe we could ad= d >> more test queries with it, instead of creating whole new tables?) > I've checked that none of existing tests for GIN can produce lossy > bitmap page with minimal work_mem =3D '64kB'. I've tried to generate > sample table with single integer column to get lossy page. It appears > that we need at least 231425 rows to get it. With wider rows, we > would need less number of rows, but I think total heap size wouldn't > be less. > So, I think we don't need so huge regression test to exercise this corne= r case. Ugh. Yeah, I don't want a regression test case that big either. v15 looks good to me. regards, tom lane