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 1v29gy-000qZ7-1a for pgsql-hackers@arkaria.postgresql.org; Fri, 26 Sep 2025 14:45:00 +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 1v29gv-002SEj-Pm for pgsql-hackers@arkaria.postgresql.org; Fri, 26 Sep 2025 14:44:58 +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 1v29gv-002SEb-76 for pgsql-hackers@lists.postgresql.org; Fri, 26 Sep 2025 14:44:58 +0000 Received: from fout-b1-smtp.messagingengine.com ([202.12.124.144]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1v29gs-000Esz-22 for pgsql-hackers@lists.postgresql.org; Fri, 26 Sep 2025 14:44:57 +0000 Received: from phl-compute-11.internal (phl-compute-11.internal [10.202.2.51]) by mailfout.stl.internal (Postfix) with ESMTP id 0858F1D00098; Fri, 26 Sep 2025 10:44:52 -0400 (EDT) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-11.internal (MEProxy); Fri, 26 Sep 2025 10:44:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kurilemu.de; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :reply-to:subject:subject:to:to; s=fm3; t=1758897891; x= 1758984291; bh=Nx5rJJc78kqs4lpIVMI/QvkyaSP0OzvWlLiXCKUqeAI=; b=M USsr2eeaqrbIONrN73xXJOpfSXT4FWRmkbzfp+FVoC1sQb5WuzsoMqaIERW3hW0x HJW8i1QJ8qsWqAFRKpE4GSAAQmMMp0x1cpH/04V08M5lR3uHi4yhjgComkKlxK/q xRN2EbDLn3zF3q5QdzksuKc3dVGOcvZ3n4lyrhVuEnUQtwGwDkQRqtMqzvzOHDk5 tZYwqemEsUX5h2uUIXrqPd+3SQ92etmLcQMJDES/bpQ6wjgXtFuDsim74X2X2C7r qf3qJWNcjWDK4izMlW9VUDEZV+YNCljqbkf6PPBN5ZQxpZMU+gH4+fLa8ZCcgaEw mVf8LvWMsJ3gGBoaYhf2w== 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=1758897891; x=1758984291; bh=N x5rJJc78kqs4lpIVMI/QvkyaSP0OzvWlLiXCKUqeAI=; b=WYhswELTjqnlV44W1 /yLOapwpXf9+7QdSunMhJDEJTwUu6EidEhH3inEc7N18mTljEpbZIW1/XaUnCBmz FZpkxNoK89QAwpdX+a/9Z2gWzZpbmj9Ve90MoW3qBTP1sOui/84mgo6B19xTFJGH xHMnkeIh/yKDF8d02Qrkshwc1fTlX82D2O471BmuVEhMjgwcAUg81HffCgMWuI6y PwM778oq3FJQRw14jMnoF6JnvfEPKdx9pkgyViVdxoIymM8eY/JY2xGGiD51qsfG 4AB2Om9l1Yt3NP2FfnOFi0PWDGmaV2nFpq2+0geGF9tzTJpAYR2zt1KDISYZ8Ye+ U2Upw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdeggdeileeigecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr ihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjug hrpeffhffvvefukfggtggugfgjsehtkeertddttdejnecuhfhrohhmpemllhhvrghrohcu jfgvrhhrvghrrgcuoegrlhhvhhgvrhhrvgeskhhurhhilhgvmhhurdguvgeqnecuggftrf grthhtvghrnhepteeuvdehffekvefgueehveetveekgfegtddtueefueehuddutdfhfeff hfejfeffnecuffhomhgrihhnpegvnhhtvghrphhrihhsvggusgdrtghomhenucevlhhush htvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrlhhvhhgvrhhrvges khhurhhilhgvmhhurdguvgdpnhgspghrtghpthhtohepvddpmhhouggvpehsmhhtphhouh htpdhrtghpthhtohepnhgrthhhrghnuggsohhsshgrrhhtsehgmhgrihhlrdgtohhmpdhr tghpthhtohepphhgshhqlhdqhhgrtghkvghrsheslhhishhtshdrphhoshhtghhrvghsqh hlrdhorhhg X-ME-Proxy: Feedback-ID: ie3de48e3:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 26 Sep 2025 10:44:51 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kurilemu.de; s=schmee; t=1758897889; bh=30FYxZm54uqWZFtxoGd+yr4aNj7N+7aSAj9Ugm/IFaU=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=HdBYfy23sLcGWHC1sYX3OoS9xFYCBSkqVvTiMZTcYoovoy18aGayc59ccxXtNn5c9 0eyrSCzA7M5zzndMU1YgBM0Fvk8aX1NqdJ/CSUjzfAF1/8Bw3ofpEA8j0zJGXWUZI6 5gilPOpwGy50LtP2zFvnOWS++bxnuBSxjCuV/tsjN4pr59rDDWPQEOseB/AehBDemo EIEA0ntfQjfAFwC8NHKsaRXae5jHAFU6WnFo6OZv1I0cI3d+WaHLiOaGpfSHlnj48z qxjgoI5A5utkr8/hroYyfHkqAcXpBKPJole5rFiZIknNTeCVM6rMvl7d1/NGsW3Ytw NVbDp6Ujeh85A== Received: by schmee.kurilemu.internal (Postfix, from userid 1000) id 2F9D178; Fri, 26 Sep 2025 16:44:49 +0200 (CEST) Date: Fri, 26 Sep 2025 16:44:49 +0200 From: =?utf-8?Q?=C3=81lvaro?= Herrera To: Nathan Bossart Cc: Pg Hackers Subject: Re: splitting src/bin/scripts/vacuumdb.c Message-ID: <202509261423.k3lcoxcbx5by@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-Sep-26, Nathan Bossart wrote: > Seems reasonable to me. Thanks, I had pushed this before receiving your email. > On Fri, Sep 26, 2025 at 01:55:50PM +0200, Álvaro Herrera wrote: > > Overall I'm quite happy with this small patch now, so I intend to push > > shortly barring objections. I'm not adding a new commitfest entry, just > > adding this new thread to the existing entry for REPACK. I kept the > > patch numbering as used in the other thread. > > Is there any way to separate the aforementioned changes into a separate > patch from the refactoring changes? That would make it a lot easier to > review. I think we have decent testing for vacuumdb, so I'm not too > concerned if this isn't feasible. Hmm, I guess I should have posted it that way for ease of review, but didn't think of it. You can sort-of look at the patch as git show --color-moved=zebra and you'll see the lines that are moved unchanged marked with one color, and the ones that are edited in a different color. It's a bit of a weird Christmas tree at this point, but if you look at it hard enough you can tell the unchanged ones apart. I had looked at the coverage of this file earlier today, and I agree that we have pretty decent coverage -- although it's one of the two worst-covered files in that subdirectory, the lines that aren't covered are mostly a few error messages. It might be a good idea to add some tests for those anyway, to ensure we don't break anything later. Thanks! -- Álvaro Herrera PostgreSQL Developer — https://www.EnterpriseDB.com/ Y una voz del caos me habló y me dijo "Sonríe y sé feliz, podría ser peor". Y sonreí. Y fui feliz. Y fue peor.