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 1txqp5-00FWGO-4B for pgsql-hackers@arkaria.postgresql.org; Thu, 27 Mar 2025 17:15:19 +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 1txqp2-00AN5R-6K for pgsql-hackers@arkaria.postgresql.org; Thu, 27 Mar 2025 17:15:16 +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 1txqp1-00AN5B-QO for pgsql-hackers@lists.postgresql.org; Thu, 27 Mar 2025 17:15:15 +0000 Received: from fhigh-a3-smtp.messagingengine.com ([103.168.172.154]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1txqoy-001YGc-14 for pgsql-hackers@lists.postgresql.org; Thu, 27 Mar 2025 17:15:15 +0000 Received: from phl-compute-13.internal (phl-compute-13.phl.internal [10.202.2.53]) by mailfhigh.phl.internal (Postfix) with ESMTP id 5789D1140245; Thu, 27 Mar 2025 13:15:10 -0400 (EDT) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-13.internal (MEProxy); Thu, 27 Mar 2025 13:15:10 -0400 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 :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; t=1743095710; x=1743182110; bh=p 3JAfHf9EO5lgYzVDXWnAMGpESKPxepJDXgtUgD+n5g=; b=b3g9f3BnQWuLkaL2S Qr4DtjWYfm+RjFD45DBlc/PME5RdBNFGnPGanjXhxYHY7iSw3OtLvJyfWM7hxBdu BD0awUY/OFBLhhSNwkFB4QdEzEVVJbFusE+t/ZhepUg26AbZ6Miu/11ZypBAw3WM 3dC28NZBnK2W8VsSFMr3EXlINbpgLIkU6JK+rt6qbY8ulwD+NlIAWTPYpVM4RcXP Z4D+DUpPA3a149XBs+0jfXizPqY7RVZL9+w5lNvUlQp5UO1ycoERBi+VQUodYvpB 9+r/b1MaJWf1DdR5OVBL/Qw3G1VfO2+AFSrPBOqsvzoYGlbfolzhr1kxeHmk5omf 80jhg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgdduieekleekucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggv pdfurfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpih gvnhhtshculddquddttddmnecujfgurhepfffhvfevuffkgggtugfgjgesthekredttddt jeenucfhrhhomheptehlvhgrrhhoucfjvghrrhgvrhgruceorghlvhhhvghrrhgvsegrlh hvhhdrnhhoqdhiphdrohhrgheqnecuggftrfgrthhtvghrnhepvdektdffudfftdffffeh fffhjeejhffgieeuueekjeekfffgudffhfduffffueevnecuffhomhgrihhnpegvnhhtvg hrphhrihhsvggusgdrtghomhenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhep mhgrihhlfhhrohhmpegrlhhvhhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorhhgpdhnsg gprhgtphhtthhopeejpdhmohguvgepshhmthhpohhuthdprhgtphhtthhopehpvghtvghr segvihhsvghnthhrrghuthdrohhrghdprhgtphhtthhopegrshhhuhhtohhshhdrsggrph grthdrohhsshesghhmrghilhdrtghomhdprhgtphhtthhopehvihhgnhgvshhhvddusehg mhgrihhlrdgtohhmpdhrtghpthhtohepphhgshhqlhdqhhgrtghkvghrsheslhhishhtsh drphhoshhtghhrvghsqhhlrdhorhhgpdhrtghpthhtohepmhhitghhrggvlhesphgrqhhu ihgvrhdrgiihiidprhgtphhtthhopehtghhlsehsshhsrdhpghhhrdhprgdruhhspdhrtg hpthhtohepuggrnhhivghlseihvghsqhhlrdhsvg X-ME-Proxy: Feedback-ID: ia2694551:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 27 Mar 2025 13:15:09 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alvh.no-ip.org; s=schmee; t=1743095706; bh=fuWr8dtnLyeB5gcwe9v8+DJnp9yWiV/yZ33r7zeauhA=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=k5qqkN+UfLsyoz+WqEBJFgfMrsiWhhgHsiLi+WlZTqdgqXtnUdbS0/g3Ci94VDfqe fNlyaJKcOWPOudzklRJayRw7pB08YRk+xRNu18EwBobN5nUOgdDSATj3QX+Se21Mzi 1hw/lU4SwIoAhcAD/lW9SyVgI1zOoJVtXvXMcmoL9LVdsg/Vzd0KHT4WqkkLQms0li ajNJHc/8txyIXt2PJvNgMSDFWos3jKjS4CarHoYyp1gcO4iZ5k1WX5jbEddKQ7/TqD JHqB0ztInZ+Yze9+DKbbRQko6xYGqqjFmCellpbOzgNXrHeX1GoaI/oRgiBn9m3oZ1 g3ljnUJuMXRAA== Received: by schmee.alvh.no-ip.org (Postfix, from userid 1000) id CF0D585; Thu, 27 Mar 2025 18:15:06 +0100 (CET) Date: Thu, 27 Mar 2025 18:15:06 +0100 From: Alvaro Herrera To: Ashutosh Bapat Cc: vignesh C , Michael Paquier , Daniel Gustafsson , Tom Lane , Peter Eisentraut , PostgreSQL Hackers Subject: Re: Test to dump and restore objects left behind by regression Message-ID: <202503271715.5wa2etqxttoh@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2025-Mar-27, Ashutosh Bapat wrote: > On Thu, Mar 27, 2025 at 6:01 PM vignesh C wrote: > > Couple of minor thoughts: > > 1) I felt this error message is not conveying the error message correctly: > > + if ($src_node->pg_version != $dst_node->pg_version > > + or defined $src_node->{_install_path}) > > + { > > + fail("same version dump and restore test using default > > installation"); > > + return; > > + } > > > > how about something like below: > > fail("source and destination nodes must have the same PostgreSQL > > version and default installation paths"); > > The text in ok(), fail() etc. are test names and not error messages. > See [1]. Your suggestion and other versions that I came up with became > too verbose to be test names. So I think the text here is compromise > between conveying enough information and not being too long. We > usually have to pick the testname and lookup the test code to > investigate the failure. This text serves that purpose. Maybe fail("roundtrip dump/restore of the regression database") BTW another idea to shorten this tests's runtime might be to try and identify which of parallel_schedule tests leave objects behind and create a shorter schedule with only those (a possible implementation might keep a list of the slow tests that don't leave any useful object behind, then filter parallel_schedule to exclude those; this ensures test files created in the future are still used.) -- Álvaro Herrera 48°01'N 7°57'E — https://www.EnterpriseDB.com/ "I love the Postgres community. It's all about doing things _properly_. :-)" (David Garamond)