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 1jK64W-0006UM-Fe for pgsql-hackers@arkaria.postgresql.org; Thu, 02 Apr 2020 20:04:16 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jK64T-0007HJ-Ib for pgsql-hackers@arkaria.postgresql.org; Thu, 02 Apr 2020 20:04:13 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jK64T-0007HC-BV for pgsql-hackers@lists.postgresql.org; Thu, 02 Apr 2020 20:04:13 +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 1jK64R-0003CS-3g for pgsql-hackers@lists.postgresql.org; Thu, 02 Apr 2020 20:04:12 +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 032K461b000564; Thu, 2 Apr 2020 16:04:06 -0400 From: Tom Lane To: "Daniel Verite" cc: "movead.li@highgo.ca" , "ashutosh.bapat" , "pgsql-hackers" Subject: Re: A bug when use get_bit() function for a long bytea string In-reply-to: <84525289-3891-4368-9157-5452f53a6908@manitou-mail.org> References: <84525289-3891-4368-9157-5452f53a6908@manitou-mail.org> Comments: In-reply-to "Daniel Verite" message dated "Thu, 02 Apr 2020 18:58:59 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <562.1585857846.1@sss.pgh.pa.us> Date: Thu, 02 Apr 2020 16:04:06 -0400 Message-ID: <563.1585857846@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk "Daniel Verite" writes: > These 2 tests need to allocate big chunks of contiguous memory, so they > might fail for lack of memory on tiny machines, and even when not failing, > they're pretty slow to run. Are they worth the trouble? Yeah, I'd noticed those on previous readings of the patch. They'd almost certainly fail on some of our older/smaller buildfarm members, so they're not getting committed, even if they didn't require multiple seconds apiece to run (even on a machine with plenty of memory). It's useful to have them for initial testing though. It'd be great if there was a way to test get_bit/set_bit on large indexes without materializing a couple of multi-hundred-MB objects. Can't think of one offhand though. regards, tom lane