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 1s5bhg-006f6C-KH for pgsql-hackers@arkaria.postgresql.org; Sat, 11 May 2024 01:39:12 +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 1s5bhe-002h7g-MH for pgsql-hackers@arkaria.postgresql.org; Sat, 11 May 2024 01:39:11 +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 1s5bhe-002h7Y-Cy for pgsql-hackers@lists.postgresql.org; Sat, 11 May 2024 01:39:10 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1s5bhY-000RLh-Va for pgsql-hackers@lists.postgresql.org; Sat, 11 May 2024 01:39:10 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 44B1cv0T1686680; Fri, 10 May 2024 21:38:57 -0400 From: Tom Lane To: Mark Dilger cc: Alexander Korotkov , Pavel Borisov , Noah Misch , Peter Eisentraut , Aleksander Alekseev , Postgres hackers , Maxim Orlov , Andres Freund , Greg Stark , Julien Rouhaud , David Steele , Peter Geoghegan , Maxim Orlov , lubennikovaav@gmail.com Subject: Re: [PATCH] Improve amcheck to also check UNIQUE constraint in btree index. In-reply-to: References: <20220922151328.lakwdytvwnyyif3b@awork3.anarazel.de> <8c74cc5e-4b97-4cd7-9aaf-67886822a78c@eisentraut.org> <20240501022412.85@rfd.leadboat.com> <1375614.1715301775@sss.pgh.pa.us> <8635D8B1-45B7-4D67-86C7-D6ECB4F10B11@enterprisedb.com> Comments: In-reply-to Mark Dilger message dated "Fri, 10 May 2024 18:12:57 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1686677.1715391537.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Fri, 10 May 2024 21:38:57 -0400 Message-ID: <1686679.1715391537@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Mark Dilger writes: > Regardless of which of 1..4 you pick, I think it could all do with more = regression test coverage. Indeed. If we have no regression tests that reach this code, it's folly to touch it at all, but most especially so post-feature-freeze. I think the *first* order of business ought to be to create some test cases that reach this area. Perhaps they'll be too expensive to incorporate in our regular regression tests, but we could still use them to investigate Mark's concerns. regards, tom lane