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 1twghs-00GdZP-L5 for pgsql-hackers@arkaria.postgresql.org; Mon, 24 Mar 2025 12:15:04 +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 1twghr-002T3O-4M for pgsql-hackers@arkaria.postgresql.org; Mon, 24 Mar 2025 12:15:03 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1twghq-002SyV-DP for pgsql-hackers@lists.postgresql.org; Mon, 24 Mar 2025 12:15:02 +0000 Received: from fhigh-b1-smtp.messagingengine.com ([202.12.124.152]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1twgho-000qso-21 for pgsql-hackers@lists.postgresql.org; Mon, 24 Mar 2025 12:15:01 +0000 Received: from phl-compute-07.internal (phl-compute-07.phl.internal [10.202.2.47]) by mailfhigh.stl.internal (Postfix) with ESMTP id 061B225401ED; Mon, 24 Mar 2025 08:14:58 -0400 (EDT) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-07.internal (MEProxy); Mon, 24 Mar 2025 08:14:59 -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=1742818498; x=1742904898; bh=p 0/VBfUGgNKixQnErKykxKQ8yjvDBbkDDiWNv9DaHw8=; b=eMkaiSq/DJm50KbmZ T0iijLFSFsr35Lmx6QFnbiPpDDhoxmI5TXF0h3QTAXnXoZitgTmHiLiW+zqfCaeQ B6dlAYwH2W4XTbf3sr5kH4wG2gFXrjXjIZi8QUBKO7ivVxxVcI5fZhulh/p151aQ pCHEaCTo1GLForALmqDVpvXFNvxXwzboDKNz9wGAGpPSPFmaYFu1r5P3t4RUdJm8 mPpa2bWFzJ9J3pkfqCNlATGeTgLxUJ7soRIG1n8Qgc1/Rm8BXSHHMnkT3NgSTskG jsW2OS9eiYjinUhtcai38V4V3l/R8DVweKsgxE6f59GXckpT2px/JWAYWYwpN+Su zDc1Q== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgdduheeljeegucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggv pdfurfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpih gvnhhtshculddquddttddmnecujfgurhepfffhvfevuffkgggtugfgjgesthekredttddt jeenucfhrhhomheptehlvhgrrhhoucfjvghrrhgvrhgruceorghlvhhhvghrrhgvsegrlh hvhhdrnhhoqdhiphdrohhrgheqnecuggftrfgrthhtvghrnhepledvkedvueelteefffev jefgfeeuleehjedtieevjeelffegfeelgedvteekvdetnecuffhomhgrihhnpegvnhhtvg hrphhrihhsvggusgdrtghomhdpphhoshhtghhrrdgvshenucevlhhushhtvghrufhiiigv pedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrlhhvhhgvrhhrvgesrghlvhhhrdhnoh dqihhprdhorhhgpdhnsggprhgtphhtthhopeejpdhmohguvgepshhmthhpohhuthdprhgt phhtthhopehpvghtvghrsegvihhsvghnthhrrghuthdrohhrghdprhgtphhtthhopegrsh hhuhhtohhshhdrsggrphgrthdrohhsshesghhmrghilhdrtghomhdprhgtphhtthhopehv ihhgnhgvshhhvddusehgmhgrihhlrdgtohhmpdhrtghpthhtohepphhgshhqlhdqhhgrtg hkvghrsheslhhishhtshdrphhoshhtghhrvghsqhhlrdhorhhgpdhrtghpthhtohepmhhi tghhrggvlhesphgrqhhuihgvrhdrgiihiidprhgtphhtthhopehtghhlsehsshhsrdhpgh hhrdhprgdruhhspdhrtghpthhtohepuggrnhhivghlseihvghsqhhlrdhsvg X-ME-Proxy: Feedback-ID: ia2694551:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 24 Mar 2025 08:14:57 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alvh.no-ip.org; s=schmee; t=1742818495; bh=5S8GFP3zfXJLt/ise5gqCB+hNjX82V4/kG/5cJ4La58=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=V5sirZ4+IGByZIPZQJFy9/9+iSDAVLoeeWndU886b76WfYK5jCjhjroGwmJEXzlPv Ij6nLsnY32T3Yy8xwBA/+oS4Gj4mWv7cd2uKemYWmDHbf98bTI7gkUz7tnvH9aaUCt o6hilgyNAKPqMLuORLk6S0Wr+ilTdlWyi5Q6G8cIVzrxze45E3qiWW8sDZr/LXaScM /L8UjYCSRH+eGyd3MlsqZi03swAm/Lp7pVakL1sq6TBurzuQ2rgMHHIGsFb/4s9ve0 p9pv84Ja/5rNYsB08BcPRqJ6ar3gDDmk7BdSz1ANJFEM/zx1MG8010Oum6BY5EQtvK 1fZhoi/nFPXUw== Received: by schmee.alvh.no-ip.org (Postfix, from userid 1000) id 356386E; Mon, 24 Mar 2025 13:14:55 +0100 (CET) Date: Mon, 24 Mar 2025 13:14:55 +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: <202503241214.vtq4medqpbri@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-24, Ashutosh Bapat wrote: > One concern I have with directory format is the dumped database is not > readable. This might make investigating a but identified the test a > bit more complex. Oh, it's readable all right. You just need to use `pg_restore -f-` to read it. No big deal. So I ran this a few times: /usr/bin/time make -j8 -Otarget -C /pgsql/build/master check-world -s PROVE_FLAGS="-c -j6" > /dev/null commenting out the call to test_regression_dump_restore() to test how much additional runtime does the new test incur. With test: 136.95user 116.56system 1:13.23elapsed 346%CPU (0avgtext+0avgdata 250704maxresident)k 4928inputs+55333008outputs (114major+14784937minor)pagefaults 0swaps 138.11user 117.43system 1:15.54elapsed 338%CPU (0avgtext+0avgdata 278592maxresident)k 48inputs+55333464outputs (80major+14794494minor)pagefaults 0swaps 137.05user 113.13system 1:08.19elapsed 366%CPU (0avgtext+0avgdata 279272maxresident)k 48inputs+55330064outputs (83major+14758028minor)pagefaults 0swaps without the new test: 135.46user 114.55system 1:14.69elapsed 334%CPU (0avgtext+0avgdata 145372maxresident)k 32inputs+55155256outputs (105major+14737549minor)pagefaults 0swaps 135.48user 114.57system 1:09.60elapsed 359%CPU (0avgtext+0avgdata 148224maxresident)k 16inputs+55155432outputs (95major+14749502minor)pagefaults 0swaps 133.76user 113.26system 1:14.92elapsed 329%CPU (0avgtext+0avgdata 148064maxresident)k 48inputs+55154952outputs (84major+14749531minor)pagefaults 0swaps 134.06user 113.83system 1:16.09elapsed 325%CPU (0avgtext+0avgdata 145940maxresident)k 32inputs+55155032outputs (83major+14738602minor)pagefaults 0swaps The increase in duration here is less than a second. My conclusion with these numbers is that it's not worth hiding this test in PG_TEST_EXTRA. If we really wanted to save some total test runtime, it might be better to write a regress schedule file for 027_stream_regress.pl which only takes the test that emit useful WAL, rather than all tests. -- Álvaro Herrera 48°01'N 7°57'E — https://www.EnterpriseDB.com/ "The ability of users to misuse tools is, of course, legendary" (David Steele) https://postgr.es/m/11b38a96-6ded-4668-b772-40f992132797@pgmasters.net