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 1pLazk-0006WU-Jr for pgsql-hackers@arkaria.postgresql.org; Sat, 28 Jan 2023 02:31:09 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pLazj-00070C-DM for pgsql-hackers@arkaria.postgresql.org; Sat, 28 Jan 2023 02:31:07 +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 1pLazi-0006vO-Bf for pgsql-hackers@lists.postgresql.org; Sat, 28 Jan 2023 02:31:07 +0000 Received: from wout4-smtp.messagingengine.com ([64.147.123.20]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pLazc-0006Gv-JQ for pgsql-hackers@postgresql.org; Sat, 28 Jan 2023 02:31:05 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id 406413200906; Fri, 27 Jan 2023 21:30:57 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Fri, 27 Jan 2023 21:30:57 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; h= cc:cc:content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm3; t=1674873056; x=1674959456; bh=BTXMqYoXYl GxrDBZs3Jj+5pRPgUS67oXSHJNEhAAu08=; b=0Rpp24y/8rCHiq1VrDpiLHL82K QFtPwQ4Pn7L6HfrhbtVBiQKR+pHPdNBB3y0GUVoPETRkgo2W8diSDiIQlkJ4g+78 zc3YF77ZMeaQBDeai4PQd9Q7ltCPRLy0jfXpEDmzBe8XY9rUvIkP+9bXUjMH6Zdn QbPt48586fg31haI/VDxjTL/cdzz+LAd5ivlkM9MLwGf2WfcWSQULwY2mlr1RziV S0ntsmj0Rh/OaZWG4Dasp0B9k4GE1DO8ZPzcTNJT2OAR4Ak1/dXb2JbrtcOAUgHF Sy6nYSeV5VAdy6AgZfyBWt/qyvkoiiOlQGGlJuK32wNfsIijnnwBH45ubkdw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; t=1674873056; x=1674959456; bh=BTXMqYoXYlGxrDBZs3Jj+5pRPgUS 67oXSHJNEhAAu08=; b=V7oCuXcK3M6Ehqoma4Rb1RsCu6qtUN6SrtcGJML3kGuL +iFG1JaXWX4Onw+wahGfqjmRwub44ksHO4sa1UAqxBzeB4yV690T+9hXQ+hqxMjm ZxIlzuC4MbpStsJAkKntMD5EkRKbtVDLGR51wnx9LLVL6X2/TWE3sYeCNO7dR6Ks 61kB9Rn16dfwJm5x4w2+CzizLOuMzfjqJcRJMokXBCTM/kmKYrONCfDYSpjoUPsh K0S8hFN8j/A+Vvj/bban8hlA9kmhDqZ+s/9gpXYB7OiGGHrj0yqfBZeDNy95C77G HQ+K6IhYj/vrT/PZGDmPxQTJgNEc885FaY7/JTS0xA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedruddvjedggeekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvfevuffkfhggtggujgesthdtredttddtvdenucfhrhhomheptehnughr vghsucfhrhgvuhhnugcuoegrnhgurhgvshesrghnrghrrgiivghlrdguvgeqnecuggftrf grthhtvghrnhepvdfffeevhfetveffgeeiteefhfdtvdffjeevhfeuteegleduheetvedu ieettddunecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomh eprghnughrvghssegrnhgrrhgriigvlhdruggv X-ME-Proxy: Feedback-ID: id4a34324:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 27 Jan 2023 21:30:56 -0500 (EST) Date: Fri, 27 Jan 2023 18:30:54 -0800 From: Andres Freund To: Tom Lane Cc: Melanie Plageman , Pg Hackers Subject: Re: Small omission in type_sanity.sql Message-ID: <20230128023054.uyqz2puajlcwptiz@awork3.anarazel.de> References: <20230128012509.5iwjktq4vu4kblef@awork3.anarazel.de> <3604661.1674869944@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3604661.1674869944@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi, On 2023-01-27 20:39:04 -0500, Tom Lane wrote: > 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. It's also kinda useful to have some basic validity testing early on, because if there's something wrong with the catalog values, it'll cause lots of issues later. > > Problems: > > - "Cross-check against pg_type entry" is far too strict about legal combinations > > of typstorage > > Perhaps, but it's enforcing policy about what we want in the > initial catalog data, not what is possible to support. True in generaly, but I don't think it matters much in this specific case. We don't gain much by forbidding 'e' -> 'x' mismatches, given that we allow 'x' -> 'p'. There's a lot more such cases in opr_sanity. There's a lot of tests in it that only make sense for validating the initial catalog contents. It might be useful to run a more lenient version of it later though. > 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)? Yea, I think so. A bit worried about the duplication that might require. But the *sanity tests also do also encode a lot of good cross-checks, that are somewhat easy to break in code (and / or have been broken in the past), so I think it's worth pursuing. Greetings, Andres Freund