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.96) (envelope-from ) id 1vghHM-000PDY-0P for pgsql-hackers@arkaria.postgresql.org; Fri, 16 Jan 2026 10:42:08 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vghHK-002oNa-2p for pgsql-hackers@arkaria.postgresql.org; Fri, 16 Jan 2026 10:42:07 +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.96) (envelope-from ) id 1vghHJ-002oNR-2V for pgsql-hackers@lists.postgresql.org; Fri, 16 Jan 2026 10:42:06 +0000 Received: from fhigh-a3-smtp.messagingengine.com ([103.168.172.154]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vghHH-000jyJ-0V for pgsql-hackers@lists.postgresql.org; Fri, 16 Jan 2026 10:42:05 +0000 Received: from phl-compute-08.internal (phl-compute-08.internal [10.202.2.48]) by mailfhigh.phl.internal (Postfix) with ESMTP id 612801400094; Fri, 16 Jan 2026 05:42:02 -0500 (EST) Received: from phl-frontend-03 ([10.202.2.162]) by phl-compute-08.internal (MEProxy); Fri, 16 Jan 2026 05:42:02 -0500 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=fm1; t=1768560122; x= 1768646522; bh=ktarIAMExKKqHF8aS0fn2K2iJfitHTHx5nouH7omCKY=; b=C G82Xd3ClmfFBzDQUX/RU3D3HFrjSXd7aYBGgAmKppGPzp3MRa4jhvEkFynPz647S 71u6hs63SXgFlEcw1ZY/eJzLM8cz+DkYnZPmIPqjIN+r6rQPDYfRb+R044RJDL6t OjSUQeJWnRgLjGO1GE+hXLhoWuSq2uPGpYfahG87wXB8/E1EfCywgQX2lNOnsGBK 7RKZuI594K/2ZK8Ix31+iMtaS4kgdAfHqp+fqZn+Q0bKL6M05ln+kE/tKlrk00Pb UqZOvlaxgEubqizfqGQwEUet2l+JpqXNqx2q/FMCqyPij0bjhI7Qv7vp51guHSAP kRpwn7gCj3P2LeJjtxlWA== 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=1768560122; x=1768646522; bh=k tarIAMExKKqHF8aS0fn2K2iJfitHTHx5nouH7omCKY=; b=K+XSIXnsSPApyF6pz gBIssOTXMIpLzV9SLXo4JTaqvmiZrMGb92eF+GElpDvRgxZqm3FGZWbp3cHGMp78 W3qBuO59A+FNLhUALAMnJ9sZfF2eESCxGzmUUG1i4eR8Qq3nxGzRxGxSl6FX4AMZ xsXPgXRvawR+tjwb5XMsZQA3C4xm7/LCl1+nQPdffmqNPIe5awdYnnhhYEjnSEku ex3WiGYyuhYLvQ7oqk+errpNAr50kBif8OFcvI9BYXdaeA96qcagFQp+Stb8JK2v DfM0TXtXzC/zZ/bMajZ9uRiuGaZE6vIOjdXKfJf/5YmOeMhHn8hWOpFKi1gqFB0t VmGHw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgdduvdekjeefucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujf gurhepfffhvfevuffkgggtugfgjgesthekredttddtjeenucfhrhhomheplmhlvhgrrhho ucfjvghrrhgvrhgruceorghlvhhhvghrrhgvsehkuhhrihhlvghmuhdruggvqeenucggtf frrghtthgvrhhnpeetuedvheffkeevgfeuheevteevkefggedttdeufeeuheduuddthfef fffhjeefffenucffohhmrghinhepvghnthgvrhhprhhishgvuggsrdgtohhmnecuvehluh hsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprghlvhhhvghrrhgv sehkuhhrihhlvghmuhdruggvpdhnsggprhgtphhtthhopeegpdhmohguvgepshhmthhpoh huthdprhgtphhtthhopegughhrohiflhgvhihmlhesghhmrghilhdrtghomhdprhgtphht thhopehgrghvihhnjeeltdegudejsehgmhgrihhlrdgtohhmpdhrtghpthhtohepphhgsh hqlhdqhhgrtghkvghrsheslhhishhtshdrphhoshhtghhrvghsqhhlrdhorhhgpdhrtghp thhtohepmhhitghhrggvlhesphgrqhhuihgvrhdrgiihii X-ME-Proxy: Feedback-ID: ie3de48e3:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 16 Jan 2026 05:42:01 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kurilemu.de; s=schmee; t=1768560118; bh=xYyzOsLDvwL15RsiML95F82vjvjfpQGvRKUdfdmNhsc=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=ADrPI4UI/OInYk8ZTlse0BkQ9IqVE2bBCljVjQKQidkoH5+jbq2LxwBt3LmwUOBiz xVe0U9V4udhGo8uSA5XzIIkrt5aMs3dheZlLSBxMmLknpxEF86yL3EgeZbdMQWDmHF i7y3hjDQTqfX3JA7N5tvueIUqgjfkqQxFGUdqLbi+9CFUgOiy0GrLtiMbST+67fYQL J1rIx/tii5Xb3DCBYo+cf1FCkk4tL1xi0O5R7/hIXCMt8X5KnZU09jv144jZPhcFBf qkSJhV3CYdaeyLiQsUCCJJO9lhk++qxKEvfhn9MX4e9TLGslfH3HmJcc3tupmjw5uD 5x63XduIyabVw== Received: by schmee.kurilemu.internal (Postfix, from userid 1000) id 5B3777A; Fri, 16 Jan 2026 11:41:58 +0100 (CET) Date: Fri, 16 Jan 2026 11:41:58 +0100 From: =?utf-8?Q?=C3=81lvaro?= Herrera To: David Rowley Cc: Michael Paquier , Gavin LYU , pgsql-hackers@lists.postgresql.org Subject: Re: [PATCH] remove incorrect comment in pg_resetwal.c Message-ID: <202601161035.bjcuyonxxdzn@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 2026-Jan-16, David Rowley wrote: > I think fixing it rather than removing it is the way to go. cc8d41511 > removed the first va arg and didn't update the comment. > > git diff cc8d41511~1..cc8d41511 -- */pg_resetwal.c | grep translator -C 3 > @@ -156,13 +157,13 @@ main(int argc, char *argv[]) > { > /*------ > translator: the second %s is > a command line argument (-e, etc) */ > - fprintf(stderr, _("%s: invalid > argument for option %s\n"), progname, "-e"); > + pg_log_error("invalid argument > for option %s", "-e"); > fprintf(stderr, _("Try \"%s > --help\" for more information.\n"), progname); Right. So the fix is to remove the word "second". But there are more mistakes of the same ilk in the same commit, visible if you remove the "-- */pg_resetwal.c" part of your command line. So I propose to park the following in Michael's trivial fixes branch. diff --git a/src/bin/pg_basebackup/pg_receivewal.c b/src/bin/pg_basebackup/pg_receivewal.c index 4f9a7b076ca..ddfec298fb7 100644 --- a/src/bin/pg_basebackup/pg_receivewal.c +++ b/src/bin/pg_basebackup/pg_receivewal.c @@ -770,7 +770,7 @@ main(int argc, char **argv) if (replication_slot == NULL && (do_drop_slot || do_create_slot)) { - /* translator: second %s is an option name */ + /* translator: %s is an option name */ pg_log_error("%s needs a slot to be specified using --slot", do_drop_slot ? "--drop-slot" : "--create-slot"); pg_log_error_hint("Try \"%s --help\" for more information.", progname); diff --git a/src/bin/pg_resetwal/pg_resetwal.c b/src/bin/pg_resetwal/pg_resetwal.c index b2c4b9db395..2e3dfd7c94a 100644 --- a/src/bin/pg_resetwal/pg_resetwal.c +++ b/src/bin/pg_resetwal/pg_resetwal.c @@ -188,7 +188,7 @@ main(int argc, char *argv[]) if (endptr == optarg || *endptr != '\0' || errno != 0) { /*------ - translator: the second %s is a command line argument (-e, etc) */ + translator: %s is a command line argument (-e, etc) */ pg_log_error("invalid argument for option %s", "-e"); pg_log_error_hint("Try \"%s --help\" for more information.", progname); exit(1); -- Álvaro Herrera 48°01'N 7°57'E — https://www.EnterpriseDB.com/ "No tengo por qué estar de acuerdo con lo que pienso" (Carlos Caszeli)