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 1vqydS-004OU9-1P for pgsql-hackers@arkaria.postgresql.org; Fri, 13 Feb 2026 19:15:26 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vqycQ-00FvLe-1x for pgsql-hackers@arkaria.postgresql.org; Fri, 13 Feb 2026 19:14:22 +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 1vqycP-00FvLT-2x for pgsql-hackers@lists.postgresql.org; Fri, 13 Feb 2026 19:14:22 +0000 Received: from fout-b6-smtp.messagingengine.com ([202.12.124.149]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1vqycN-00000000Uji-0GcN for pgsql-hackers@lists.postgresql.org; Fri, 13 Feb 2026 19:14:20 +0000 Received: from phl-compute-01.internal (phl-compute-01.internal [10.202.2.41]) by mailfout.stl.internal (Postfix) with ESMTP id 34FE81D000CB; Fri, 13 Feb 2026 14:14:17 -0500 (EST) Received: from phl-frontend-04 ([10.202.2.163]) by phl-compute-01.internal (MEProxy); Fri, 13 Feb 2026 14:14:18 -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=fm2; t=1771010057; x= 1771096457; bh=IZ2W80N78rva/Tsi4ZOT+lMrGRbtczZ16gocQqn/W3M=; b=M RmE4Y54spaGUGKiTBfx7QPMCeDOcQAAbyE5+ckkFK6UkfCC1N6Qh3VdFW49QHplk kzHpWrON/dPEkW96fZuYxnG1fDTWJVWFHzGc7SQl9FQJ/eWbALB/kIw2CXa0Ki6H 9XwZ+DEJV62osP1ukLGRcDPSlVVsX8XHVQJeXi243sgfpQsIYfdZsakTo41ncMnu seHzzvn8eyzC8QEYB2HsAVLLFI59qHWCTSHITOnp/Jdtv0O4b65OjTrhslMFZm8o 8TI7pUh4e6SgR+8i/h/wDEuS4Wb3kLCweXsqXCH7mbq7RBd/CPlvOZ78jpUQUqfs GkzvfkSkYamILEVwws0og== 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=fm3; t=1771010057; x=1771096457; bh=I Z2W80N78rva/Tsi4ZOT+lMrGRbtczZ16gocQqn/W3M=; b=KRWFp3DqgmKYDqs6G 5HFQrW9LJTLiakIREAchlw1jArNu6xcvmNA81/JLPi5cfhWdbuaqukBWeRgg1fuG QpR77o6QiH9AsRcnBYa1kpdpeazGhkA5aACoBU1ajanfXK5O0Pp3tiwaRJ+p9/ca Tb9dUHJwQkDGwCAc6G/FuQCx3978NXCJxxqdYkkTCVUR7rLgdLs34BiXdQR3uPUH MSLF1dXzO7WnZrhHmJIijGfczNP9cb80uwBdEJnafnQcER4jfOEOKBzdlnrRgrFd Bv3rz/wF+SsIAtEXYbbdfBtoOoTAGKrpmsS6mGpqrw7NmzOvCsKtr2mlUhF7NHtx S2Sow== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgddvtdeltdeiucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujf gurhepfffhvfevuffkgggtugfgjgesthekredttddtjeenucfhrhhomheplmhlvhgrrhho ucfjvghrrhgvrhgruceorghlvhhhvghrrhgvsehkuhhrihhlvghmuhdruggvqeenucggtf frrghtthgvrhhnpeetuedvheffkeevgfeuheevteevkefggedttdeufeeuheduuddthfef fffhjeefffenucffohhmrghinhepvghnthgvrhhprhhishgvuggsrdgtohhmnecuvehluh hsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprghlvhhhvghrrhgv sehkuhhrihhlvghmuhdruggvpdhnsggprhgtphhtthhopedvpdhmohguvgepshhmthhpoh huthdprhgtphhtthhopehpvghtvghrsegvihhsvghnthhrrghuthdrohhrghdprhgtphht thhopehpghhsqhhlqdhhrggtkhgvrhhssehlihhsthhsrdhpohhsthhgrhgvshhqlhdroh hrgh X-ME-Proxy: Feedback-ID: ie3de48e3:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 13 Feb 2026 14:14:17 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kurilemu.de; s=schmee; t=1771010054; bh=DHGbal4MGPUwUDVRM+Nkfjj2/n6B1KV5JrHzfiEIJuU=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=g4ATYTXYomP4XVV6EqKuoTWEsDapcCTJS8VyqScjx6F4upx8pC6Fn3LXyHiNbgNTJ ZOM2LNS/JQdyGp3Ou+fx1uoZkvpmxR/lIuTmeKCSy+fv1YomXI2Cp4xi3OF1c0bzxd GG275OtO+yot3+JB7nZiEbelblbNp5zjocjyTb7K6/dYcfnKqFfiPZDQ7uu3IY+ibB OSxsGn9b/eH6AiKwBR2cO5BJBCFJW0a9IVPn7v3lEuqyBMRiVvfemllVC/O8BJEehW 3BybjfF0gMQIM/9QIGZN5bYy2PiOYqKiql3Jv+YWu+owvL1jUGd6bn6SbQom71FKsb MUWTbGN9ghg3A== Received: by schmee.kurilemu.internal (Postfix, from userid 1000) id D66E46B; Fri, 13 Feb 2026 20:14:14 +0100 (CET) Date: Fri, 13 Feb 2026 20:14:14 +0100 From: =?utf-8?Q?=C3=81lvaro?= Herrera To: Peter Eisentraut Cc: Pg Hackers Subject: Re: splitting pg_resetwal output strings Message-ID: <202602131910.utbebc6fld7p@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <71956939-843a-4218-8280-85ff5d6138c9@eisentraut.org> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2026-Feb-13, Peter Eisentraut wrote: > On 31.01.26 10:41, Álvaro Herrera wrote: > > Here's a proposal. The idea is to have a separate file (entries.h right > > now but proposal for better names are welcome) which lists those > > strings, together with the printf specifiers needed to actually print > > them. This way, we can measure the length of each exactly as they > > translate before printing anything, and then line up everything to the > > same output length. > > I think this basically also applies to most --help output and some other > things. So maybe having a general way to print a list of things > automatically aligned in two columns would be good. Yeah, that was my thinking as well, but I wanted to start small in order to ensure it works properly everywhere and then have a month long emergency if everything breaks; also, reaching consensus on exactly how to use it in --help and other places is going to require some longer discussion. So I propose we commit this for 19, with some obvious cosmetic cleanups, then we make the technique more general (in src/common/ or something) and use it in other tools for 20. -- Álvaro Herrera PostgreSQL Developer — https://www.EnterpriseDB.com/