Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pLaBb-0002H9-0z for pgsql-hackers@arkaria.postgresql.org; Sat, 28 Jan 2023 01:39:19 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pLaBZ-0004uP-GY for pgsql-hackers@arkaria.postgresql.org; Sat, 28 Jan 2023 01:39:17 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pLaBZ-0004uF-7V for pgsql-hackers@lists.postgresql.org; Sat, 28 Jan 2023 01:39:17 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pLaBS-0005qg-Oq for pgsql-hackers@postgresql.org; Sat, 28 Jan 2023 01:39:16 +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 30S1d4xI3604662; Fri, 27 Jan 2023 20:39:04 -0500 From: Tom Lane To: Andres Freund cc: Melanie Plageman , Pg Hackers Subject: Re: Small omission in type_sanity.sql In-reply-to: <20230128012509.5iwjktq4vu4kblef@awork3.anarazel.de> References: <20230128012509.5iwjktq4vu4kblef@awork3.anarazel.de> Comments: In-reply-to Andres Freund message dated "Fri, 27 Jan 2023 17:25:09 -0800" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3604660.1674869944.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Fri, 27 Jan 2023 20:39:04 -0500 Message-ID: <3604661.1674869944@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Andres Freund writes: > Tom, is there a reason we run the various sanity tests early-ish in the > schedule? It does seem to reduce their effectiveness a bit... Originally, those tests were mainly needed to sanity-check the hand-maintained initial catalog data, so it made sense to run them early. Since we taught genbki.pl to do a bunch more work, that's perhaps a bit less pressing. There's at least one test that intentionally sets up a bogus btree opclass, which we'd have to drop again if we wanted to run the sanity checks later. Not sure what other issues might surface. You could find out easily enough, of course ... > Problems: > - "Cross-check against pg_type entry" is far too strict about legal comb= inations > of typstorage Perhaps, but it's enforcing policy about what we want in the initial catalog data, not what is possible to support. So there's a bit of divergence of goals here too. Maybe we need to split up the tests into initial-data-only tests (run early) and tests that should hold for user-created objects too (run late)? regards, tom lane