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.96) (envelope-from ) id 1whXtB-000I3H-2K for pgsql-hackers@arkaria.postgresql.org; Wed, 08 Jul 2026 19:24:58 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1whXtA-0096BR-0T for pgsql-hackers@arkaria.postgresql.org; Wed, 08 Jul 2026 19:24:56 +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.96) (envelope-from ) id 1whXt9-0096BA-2o for pgsql-hackers@lists.postgresql.org; Wed, 08 Jul 2026 19:24:56 +0000 Received: from fhigh-a3-smtp.messagingengine.com ([103.168.172.154]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1whXt8-00000000Cih-2GDU for pgsql-hackers@lists.postgresql.org; Wed, 08 Jul 2026 19:24:55 +0000 Received: from phl-compute-10.internal (phl-compute-10.internal [10.202.2.50]) by mailfhigh.phl.internal (Postfix) with ESMTP id 320C21400073; Wed, 8 Jul 2026 15:24:53 -0400 (EDT) Received: from phl-frontend-03 ([10.202.2.162]) by phl-compute-10.internal (MEProxy); Wed, 08 Jul 2026 15:24:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eisentraut.org; 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=fm1; t=1783538693; x=1783625093; bh=vSMWq8uheALh9fK+kNTmPFJ9hboCGm8p rIn6L9Co8hE=; b=M7dXERjzA7koCZwWCdmiEatyFD8f9VFsHrFHkgrD+lQ5tdDo QThAv/ryX652z8cI1yd+WQAC8hfKE1PeJYXM235YTINvYFTc6sWIp5yZ75r8Qypc gb8Dqv5Ax5ypmjsxHHR4g2ogXrEozUSvwKPs9ua4Mr73hjvLFEn0BXHC6ogX4n+W LLicFVm7QX8UcsomdkCOEHh4cqjvrxYHHfSTjlUb//WXHcoJ02xhtYghS6U8urPv amuWv/uLOKlrur+pbFCJvNdhQV98j480UCtZxJWD+D1evTmeypOlGrvgIh2WUatd rQQnzbQITYp05hjAMLUhE4q55jDOj394Iye1PA== 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=1783538693; x= 1783625093; bh=vSMWq8uheALh9fK+kNTmPFJ9hboCGm8prIn6L9Co8hE=; b=D XOjAtMJzQ5RoL8mwg+WNad40dPIg+eFCvLtx2kofP59xlExKrCJI/C0+dM1T0ATf GA+1+mqR7x18ftbuXumL/5/27Or+3G21uVVo0iCGXmZpwiBivD1BO7JJFNN37Ltx /6jeNysvSm1m1F6BfhBbSFIyogM1sqGCwcjX4qKEZrEsnnf5hzgjgsCMTp9rzvJf WmZXD1M5cy+gV2G9BrU6fuuQJn4be1wcsJ6dan8vwHOjLOshet+vtS/zaNWeTYse TzDRmlhkMImDE02Hymvau5vZg/UbvhPelVtTy6sb3HZl31uDd5emLBnVX7rA4BtY FDXciwB2w6z639lXeLa0Q== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: dmFkZTEKrImbjAhWS/1Wuz1X6Yc5rvwOT95BLP0Uf62ubC27u20DmzeHi5xFGmW7CroXVY DD76D4dg557w7b1LZOhfdrdD5cFA3I3eYHVAL1MNouv0KB3tgSfyIdGgBT0c+zkbdufCnL zuh3rXWcsD5m/ee7rt9Oqak97QXtMRcexTZBdudA2aOrUASz5Zn1wh4BK3yawhIOdsXdAW 1tbIK1ITYjtEHGcRZZbyI4c30XEtcYYoCRXt6RzZBVfbLk3GaOx7eI+s7zp4rqynmELBrV Q/+Y3he7IoKklbKcooy8nxZAtdJlmSJcC2w0Yx9MRtZkd8a7EaLsGXM5gxG4ow0YUYLrjc ENyKF1KCphwHuv7PYHtSpdwv5QG93+Ei4YRtxqXEOQy4/h/JnuIF6zHhsq/xT1WBTxRQv0 bFB/wVvINbK18VOpz5jhLyLMOz0iPxBomGlIsmLZLRJDreacUaf+CVMCOcGvZa2kV4BvXh BXg576kleDrqNIdhMl0yjvKoqJzeJmgVbz3Jw9IowJMBCc4tSpCU7CR/weFq7rWVjcpKVn ZTg0dpmu6f4XP+S3EQYliVa3yBhRZo6w5kVMrTxGlpyOOjDMoOZLwDbelBxnbYawjUQpWh BS4kFVPIil8FkMNSKSC0pWLri4RTcXks/mlhcEJm5UBb9xdeGZOZweSLTc2g X-ME-Proxy: Feedback-ID: ie0a040ee:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 8 Jul 2026 15:24:52 -0400 (EDT) Message-ID: <08fa9f01-373e-4cb4-9650-ad20517e2de3@eisentraut.org> Date: Wed, 8 Jul 2026 21:24:51 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Add bms_offset_members() function for bitshifting Bitmapsets To: David Rowley , Greg Burd Cc: Tom Lane , Chao Li , PostgreSQL Hackers References: <278B9FE3-F349-4494-99C5-483105C1C999@gmail.com> <1900289.1776212948@sss.pgh.pa.us> <1913188.1776220247@sss.pgh.pa.us> <77f5109f-6d39-4cf1-8d0d-f826435d6cb6@app.fastmail.com> Content-Language: en-US From: Peter Eisentraut In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 20.04.26 01:52, David Rowley wrote: > On Mon, 20 Apr 2026 at 07:22, Greg Burd wrote: >> I applied, tested, and reviewed these changes. Thanks for doing this, only a few small things jumped out. > > Many thanks. I took all of those suggestions. > >> SELECT test_bms_offset_members('(b 1)', -2147483648); > > I made that one use member 0 instead of 1. That'll mean "new_highest" > goes to INT_MIN rather than INT_MIN + 1. In the function test_random_offset_operations(), the variable seed is declared as type uint64, then assigned from GetCurrentTimestamp() or PG_GETARG_INT64(), both of which return int64, then it is passed to pg_prng_seed(), which takes uint64, and then it is printed using INT64_FORMAT. Maybe this could be a bit more consistent?