Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1v4b7I-0024fs-2C for pgsql-hackers@arkaria.postgresql.org; Fri, 03 Oct 2025 08:26:16 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1v4b7G-00Bylj-3s for pgsql-hackers@arkaria.postgresql.org; Fri, 03 Oct 2025 08:26:14 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1v4b7F-00Bylb-QS for pgsql-hackers@lists.postgresql.org; Fri, 03 Oct 2025 08:26:14 +0000 Received: from smtp.outgoing.loopia.se ([93.188.3.37]) by makus.postgresql.org with smtp (Exim 4.96) (envelope-from ) id 1v4b7D-001B2b-1K for pgsql-hackers@lists.postgresql.org; Fri, 03 Oct 2025 08:26:13 +0000 Received: from s807.loopia.se (localhost [127.0.0.1]) by s807.loopia.se (Postfix) with ESMTP id BAE7E440A6D for ; Fri, 03 Oct 2025 10:26:09 +0200 (CEST) Received: from s979.loopia.se (unknown [172.22.191.6]) by s807.loopia.se (Postfix) with ESMTP id A1E584406D6; Fri, 03 Oct 2025 10:26:09 +0200 (CEST) Received: from s472.loopia.se (unknown [172.22.191.5]) by s979.loopia.se (Postfix) with ESMTP id 9F11810BC44E; Fri, 03 Oct 2025 10:26:09 +0200 (CEST) X-Virus-Scanned: amavisd-new at amavis.loopia.se X-Spam-Flag: NO X-Spam-Score: -1.2 X-Spam-Level: X-Spam-Status: No, score=-1.2 tagged_above=-999 required=6.2 tests=[ALL_TRUSTED=-1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1] autolearn=disabled Authentication-Results: s472.loopia.se (amavisd-new); dkim=pass (2048-bit key) header.d=yesql.se Received: from s899.loopia.se ([172.22.191.5]) by s472.loopia.se (s472.loopia.se [172.22.190.12]) (amavisd-new, port 10024) with UTF8LMTP id uD-Q2CQqHLtR; Fri, 3 Oct 2025 10:26:09 +0200 (CEST) X-Loopia-Auth: user X-Loopia-User: daniel@yesql.se X-Loopia-Originating-IP: 89.255.232.236 Received: from smtpclient.apple (customer-89-255-232-236.stosn.net [89.255.232.236]) (Authenticated sender: daniel@yesql.se) by s899.loopia.se (Postfix) with ESMTPSA id D94432C8BAD5; Fri, 03 Oct 2025 10:26:08 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yesql.se; s=loopiadkim1707475645; t=1759479969; bh=UhGSVTOQb4JqND9nxhF5yaCKNIzGqksBjgysnCVohDQ=; h=Subject:From:In-Reply-To:Date:Cc:References:To; b=VeP7kyldML5JCxTWjTaiyEzw/NTT+2uFmo34mkcaZNxUeep0lrmw9A7FutJavq+BN +suVGuyxAYNIDEy/Kox+DbkEbonTHH/Hv8NSl1eNdiPADEl122qr3KXdaBOyrnKWzA RXWUo1EwPolxGdrI6j6jzU1eCka4dWlZiC0lwWvJCEyaPDPjAOsXFncKshHKfJk87j uTnqx8SJoKDMCl+1XSZ0fIjsTXW54C8pGtxRWoovNlHDFAACjYgZAN8589SBweGI4Z A7BUB1R3KGBHU5xy2+67ALW+4vM4Q0wBAwIed1k+6SHe1GwpSuYCSYLYGunYcjwjhj MEvMYFoA5X1JQ== Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3776.700.51.11.2\)) Subject: Re: [PATCH] Add tests for Bitmapset From: Daniel Gustafsson In-Reply-To: Date: Fri, 3 Oct 2025 10:25:58 +0200 Cc: Michael Paquier , Greg Burd , PostgreSQL Hackers Content-Transfer-Encoding: quoted-printable Message-Id: <197CAFC2-963B-4414-9A51-08AF648146E4@yesql.se> References: <76DBEF5D-EA47-4C30-8D28-97B3B88E2E2D@greg.burd.me> <978D21E8-9D3B-40EA-A4B1-F87BABE7868C@yesql.se> To: David Rowley X-Mailer: Apple Mail (2.3776.700.51.11.2) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > On 3 Oct 2025, at 01:36, David Rowley wrote: >=20 > On Fri, 3 Oct 2025 at 01:33, Daniel Gustafsson = wrote: >> Another nitpick would be to remove the test for NULL in = test_bms_make_singleton >> since that is a STRICT function, making the test for NULL superfluous = code: >=20 > I see test_random_operations() is also strict. Is it worth getting rid > of the SQL NULL checks on the inputs there too? Aka, the attached. Indeed, but reading the code I wonder if STRICT was a mistake and the = intention was to allow NULL input? That being said, the function is never called = with NULL so that's mostly academic thinking. +1 for removing the NULL = checks and simplifying the code. -- Daniel Gustafsson