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 1v4efZ-003eoV-Av for pgsql-hackers@arkaria.postgresql.org; Fri, 03 Oct 2025 12:13:53 +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 1v4efX-00D3RG-8x for pgsql-hackers@arkaria.postgresql.org; Fri, 03 Oct 2025 12:13:51 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1v4efW-00D3R8-8o for pgsql-hackers@lists.postgresql.org; Fri, 03 Oct 2025 12:13:51 +0000 Received: from fhigh-a8-smtp.messagingengine.com ([103.168.172.159]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1v4efU-000C9j-0k for pgsql-hackers@lists.postgresql.org; Fri, 03 Oct 2025 12:13:50 +0000 Received: from phl-compute-09.internal (phl-compute-09.internal [10.202.2.49]) by mailfhigh.phl.internal (Postfix) with ESMTP id D67AB1400131; Fri, 3 Oct 2025 08:13:45 -0400 (EDT) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-09.internal (MEProxy); Fri, 03 Oct 2025 08:13:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=burd.me; h=cc:cc :content-transfer-encoding:content-type:content-type:date:date :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm2; t=1759493625; x=1759580025; bh=19Fy7jQOgk7OXtF2//O2E5wPNGjBcGEqy4oSsZEien4=; b= OKCxJuPp61uSm8IzQ/FMJw7iqJmbYXbLsQ9UKx53K+D62Wd7CzMD0ayiGf64SslJ o7MC0h5FuXH1Uh6ND8MU6YLAGNuhGS2Fs9A8kPC+8rC6V/wExfRSbRwLKmM90moM /kwADw4qUdd2XBVH0Q9q3LwTb3cYoOw2pccKGeG92Qyxc5Y3Ea7erjlvYeHZne9j 80m70A+UkjW3S5aChZjLKHasS7s5pFFOn5Up1b8UXJiJEazOWU87LGuOHBS66aQT WKbNbEI8sO31Ez3OZ81wb+wNVzclL6bv/rgDpODQ0rvluHNy3rohAuyQuMItw37O BmRRGnQOsaZirEhs0iYH7w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1759493625; x= 1759580025; bh=19Fy7jQOgk7OXtF2//O2E5wPNGjBcGEqy4oSsZEien4=; b=w 5W6rh7juH0H9Vz55o7uYGksUiVLBP0uFqfwkcGLC6soC3hbH3VLH19ngc4IEW/8I y/69UupbJjn/ll0gRrc8E7v7kTsb1094TPGV353tLw5xbBXRLiD7UZztSWdKH/b8 GgnUxcJYfRCMDXzMwMDAi2QCapTFkmRIVvotlaf6rPwBJt/iDvp5QnoR9+O9otjC hnX2mGc45JFJ+0494MUgDXiseIcYACL41/vdHWEOamlAY59+q/OWMgxpg4UM65qA yk+SOmPdThDkrRZn58D397T20Cz3peYCtXi2VpjNr0+1sxksTr/cMgQn3S1+imId CEiM1PpExQO+F2UGQ92tA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdeggdekkeekjecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr ihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjug hrpeffhffvvefkjghfuffogggtgfgusehtjehmtdertdejnecuhfhrohhmpefirhgvghcu uehurhguuceoghhrvghgsegsuhhrugdrmhgvqeenucggtffrrghtthgvrhhnpeegvdfftd elvdekteeljedvleduueevudfggeetudfgudejtdeikedtvefglefgieenucevlhhushht vghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehgrhgvghessghurhgurd hmvgdpnhgspghrtghpthhtohepgedpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohep uggrnhhivghlseihvghsqhhlrdhsvgdprhgtphhtthhopegughhrohiflhgvhihmlhesgh hmrghilhdrtghomhdprhgtphhtthhopehmihgthhgrvghlsehprghquhhivghrrdighiii pdhrtghpthhtohepphhgshhqlhdqhhgrtghkvghrsheslhhishhtshdrphhoshhtghhrvg hsqhhlrdhorhhg X-ME-Proxy: Feedback-ID: i675e48f3:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 3 Oct 2025 08:13:44 -0400 (EDT) Date: Fri, 3 Oct 2025 08:13:44 -0400 From: Greg Burd To: Daniel Gustafsson , David Rowley Cc: Michael Paquier , PostgreSQL Hackers Message-ID: <3E15C43D-8FDB-454F-A3E3-182210680C58@getmailspring.com> In-Reply-To: <197CAFC2-963B-4414-9A51-08AF648146E4@yesql.se> References: <197CAFC2-963B-4414-9A51-08AF648146E4@yesql.se> Subject: Re: [PATCH] Add tests for Bitmapset X-Mailer: Mailspring MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Oct 3 2025, at 4:25 am, Daniel Gustafsson wrote: >> On 3 Oct 2025, at 01:36, David Rowley wrote: >> >> 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: >> >> 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? Yes, it was an oversight after I re-worked the random function. > 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. I agree, and thank you both for the attention to detail and interest in this test suite. > > -- > Daniel Gustafsson best. -greg