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 1uydjo-00AlQJ-1F for pgsql-hackers@arkaria.postgresql.org; Tue, 16 Sep 2025 22:01:24 +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 1uydjk-002qYZ-RR for pgsql-hackers@arkaria.postgresql.org; Tue, 16 Sep 2025 22:01:21 +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 1uydjk-002qYR-Hz for pgsql-hackers@lists.postgresql.org; Tue, 16 Sep 2025 22:01:21 +0000 Received: from mail-lf1-x12d.google.com ([2a00:1450:4864:20::12d]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1uydjh-001CP7-0o for pgsql-hackers@lists.postgresql.org; Tue, 16 Sep 2025 22:01:20 +0000 Received: by mail-lf1-x12d.google.com with SMTP id 2adb3069b0e04-55f6f7edf45so5062166e87.2 for ; Tue, 16 Sep 2025 15:01:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1758060078; x=1758664878; darn=lists.postgresql.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=sCFldKy6Pf0kpT1M41pgrvJLN5yiSsalTdIeZmPMJAQ=; b=KrZRbo+fNbITey+ld1M4aVhHYv9DybqqatG5II+laVMsPccWOCKuPmIMwz5ADjttjH cn3B/Vi2yl/89IrQIEO7859fIPi1zQ4JNOY9GzqARS2iho4N/NoqX/Gkz4EwWtzuAvJY CntoCQ7VVEq2hpI2hTUavAOxJ0S6NE1TSt3kAHkEO8OYvGad3qpfsh5NPcO5S3LxxqDz Ri6VJagH0eYS/BdKiFb6xHhRGFqTl/wcme7UUoSphNPsxmsMLZ4BeU/O7FDpp9+EViu2 LnGKpDIPaGMttfu/vmNg2/HXFWBu0nxpUUZblv7nZgn7bEhkFU7wy74EozFB1yBiIVfk ZCMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1758060078; x=1758664878; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=sCFldKy6Pf0kpT1M41pgrvJLN5yiSsalTdIeZmPMJAQ=; b=af5Tek8734lmtv6Tk+UjOsRIsE/ojy/6Ns2PSt0ekCy5sKK5DOK3aezAjJbgRGtuGB ZAW9Tc5WEsELw8GMVkllJu2fvy1+I4FIVrmQFn7ytRC9evv0Y5BORcMW9KUDbBo3L1oG apQ98txLerFCnX8jgeHCL0JwwAOdXIpsBrlarGdDOma+r2++GLEwccZE+7uZF0Q4g8b6 leH8cUUYeg04Dfm5zU5rOqw7spwPo9w9RE+dIHLN2GGAT5Y4q/79N5IJtWTE0iZAmV8z 07cKFpQrUvkdulERas7GwNzynjIMUte8qhbnIUVkgKkf5Syuc+v0TU/tI4hJqHDSWD55 pImA== X-Gm-Message-State: AOJu0YyVW1PttQoJhQkir1F/7NhwMu23PtvjAqcDEXjTYlcvjijvyRcP CDPL6Ovy7vEZtjg+wTzgQsqmnE8SfeQbK+FDlEFOdP08IT+hginJMAxFgU3Ye2p+RVKTj8Wz6j8 NM2zhsDYb4mXXFOCM6LbN3Ux+CG91OKE= X-Gm-Gg: ASbGncvfigekryO4yzx33UnLe4oEAD1s3u6D7s0WUbkH+d/zoAxf5rVeg3OPTSqRGQF ACQfPkg4L7RewYb8dLBa0KRvgt/l6dLTDupndmsvkRx9XKlUmbzqOKplbICgVnTst9KAywmHJNq fz9WjVLdUanuhwsOJg6NzbOSIcDea4vXx9qU61fxi8t3MOM3L5UXQQ7vTk1ZDJRjF1DWlke/eEc hHOOg== X-Google-Smtp-Source: AGHT+IHH8Am2KqiiF6BtCcvR5iSGLwIFDOWM1BbRTk5bIWXcLlFSWYESYgrVtJ6J0cRQo8U0mbP8/d/NidDfE+JVO08= X-Received: by 2002:a05:651c:b0f:b0:336:cb18:dada with SMTP id 38308e7fff4ca-35f5fe9d7camr345181fa.2.1758060077665; Tue, 16 Sep 2025 15:01:17 -0700 (PDT) MIME-Version: 1.0 References: <36B1B121-A962-4CB3-B22C-23BA4F13F8D1@greg.burd.me> In-Reply-To: <36B1B121-A962-4CB3-B22C-23BA4F13F8D1@greg.burd.me> From: Masahiko Sawada Date: Tue, 16 Sep 2025 15:00:40 -0700 X-Gm-Features: AS18NWAMqoR9oMVCVJimTGnggrLErI_f7qpgARVxgfIF0K-a96KC8kyrUpfFRXs Message-ID: Subject: Re: [PATCH] Add tests for Bitmapset To: Greg Burd Cc: PostgreSQL Hackers , Nathan Bossart , Michael Paquier , Robert Haas Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Tue, Sep 16, 2025 at 12:04=E2=80=AFPM Greg Burd wrote: > > I've re-written the set of tests as suggested (I hope!). I've not > re-run the coverage report (yet) to ensure we're at least as well > covered as v3, but attached is v4 for your inspection (amusement?). > I've tried to author the SQL tests such that failures clearly indicate > what's at gone wrong. > > This exercise turned into a lot more LOC than I'd expected, I hope it > provides some value to the community for testing this important data > structure and helps to codify the API clearly. Thank you for updating the patch. It seems cfbot caught a regression test error[1] in a 32-bit build. Regards, [1] https://cirrus-ci.com/task/5290864655728640 --=20 Masahiko Sawada Amazon Web Services: https://aws.amazon.com