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 1vmCan-008j0W-1g for pgsql-hackers@arkaria.postgresql.org; Sat, 31 Jan 2026 15:08:57 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vmCak-008Pmm-0m for pgsql-hackers@arkaria.postgresql.org; Sat, 31 Jan 2026 15:08:55 +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.96) (envelope-from ) id 1vmCaj-008Pma-1z for pgsql-hackers@lists.postgresql.org; Sat, 31 Jan 2026 15:08:54 +0000 Received: from fhigh-a5-smtp.messagingengine.com ([103.168.172.156]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1vmCah-00000000NQr-2Atb for pgsql-hackers@lists.postgresql.org; Sat, 31 Jan 2026 15:08:54 +0000 Received: from phl-compute-01.internal (phl-compute-01.internal [10.202.2.41]) by mailfhigh.phl.internal (Postfix) with ESMTP id 2254F1400054 for ; Sat, 31 Jan 2026 10:08:50 -0500 (EST) Received: from phl-frontend-04 ([10.202.2.163]) by phl-compute-01.internal (MEProxy); Sat, 31 Jan 2026 10:08:50 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kurilemu.de; h= 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=1769872130; x= 1769958530; bh=3gID390QerTlWia4OiloHqnlJwTAvXpAq3QrSXCRvWg=; b=p +Tr/JTMwjM9tudJv1C6GMjfzanGJEnYwO32dBUV4lkh4w6UkYx+920HpE2BcH3ZY 8roC5DYdSrU87pPo9Z8zODM2/q60vIHEs34K+ZEPyfaxxP/dXuRUhBmkk92NYZf8 wdHML4kQcMOiE0JnXj/huLsFyOPE9fcyYy0GUKCCfkFoNrt94a0mT+ECtvkgITLI 9iGrBGvnqq5u2sM+xyfZuoRjhKyxA8fHmTT/X3sQi5RtqZe/YYs60Tva3OnIzftr 6+R7Qg44n6LnJ+PlmRlmlsne/J1Cs+UsQnDmT9EXPO8FZj2amrlRU/cHD2htDhwT mEhKeeNB2uT2EFiPCXzug== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=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=1769872130; x=1769958530; bh=3gID390QerTlW ia4OiloHqnlJwTAvXpAq3QrSXCRvWg=; b=q65UgSqcmPwMMl+JsVs90ClYKKDy8 5Di5/KPbeMZMj1LsfHfrWYIXYzW8ZiAXfe39jpMx7GA0ukDewFMjf/F1raMF7nk+ O39LdcthJU2NKroydj2pbrX92Y9vHlYqMehStFVSwSkh4/m20558cz1ZSqpmNBAp n3hYgkS8AA7Yqq36Uarmb38Q0qRvqgBO0HmWA89Oxx3mjs8PRfyVwb699W4Pm7ql 7N4+Idv2wgesDZv9vJkF+TgyJT62PqA5Vh8w5oLmRGqp4NNJtx2ee8jd5hZUifCO PdiTeDJ4aYPAGyjRipe+u7OQmF6atMBzkUL2Oa+1p6vanFawL/JMQPnFg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgddujedvvdegucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujf gurhepfffhvffukfggtggugfgjsehmkeerredttdejnecuhfhrohhmpemllhhvrghrohcu jfgvrhhrvghrrgcuoegrlhhvhhgvrhhrvgeskhhurhhilhgvmhhurdguvgeqnecuggftrf grthhtvghrnhepgeetudfftddvhfekfeelvedvteelheekgfevgfeuueevkeegleduveej keeiteeunecuffhomhgrihhnpegvnhhtvghrphhrihhsvggusgdrtghomhdpghhnuhdroh hrghenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegr lhhvhhgvrhhrvgeskhhurhhilhgvmhhurdguvgdpnhgspghrtghpthhtohepuddpmhhoug gvpehsmhhtphhouhhtpdhrtghpthhtohepphhgshhqlhdqhhgrtghkvghrsheslhhishht shdrphhoshhtghhrvghsqhhlrdhorhhg X-ME-Proxy: Feedback-ID: ie3de48e3:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Sat, 31 Jan 2026 10:08:40 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kurilemu.de; s=schmee; t=1769872118; bh=O0SxzWuS1MCTrfdFIXYFyqnOeFvZ98tn+hWtJqZ0Z4Q=; h=Date:From:To:Subject:In-Reply-To:From; b=i5biQRBWpYd4i01uDRvm220mRnlBGY5PKQfWreEY4BC9bKIHYC/yLtKAaK3BBUyl0 +Wf3th32ncus/guD/beRODPYZNL10x7SZqd0I6PKZU93gy/UGsvGzzzdz5s+o7DnVG Qr77wnUrMcQvoOzNTEA6rUyBUxiURGJbInH+lpYd9zRVhN48CvCnQyIvLcDkfkymx7 hxT2HeFg6lEHLZXq7WX8XGr6c8Us2oFMPYP459nUvN4HTNCq15KB4ycALZxU9s9ON/ S3fo0rtIjQ69gmns7biJ8wvdSZK3Jo52GIVKMyRZgCTsgpHDdiD2PYJ90WANivimV/ ZNVmHGxn0iCTA== Received: by schmee.kurilemu.internal (Postfix, from userid 1000) id 6F02674; Sat, 31 Jan 2026 16:08:38 +0100 (CET) Date: Sat, 31 Jan 2026 16:08:38 +0100 From: =?utf-8?Q?=C3=81lvaro?= Herrera To: Pg Hackers Subject: Re: splitting pg_resetwal output strings Message-ID: <202601311502.ohp4cx7hfms2@alvherre.pgsql> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="m4rixdodkhrlzpzv" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <202601310924.yoik5n3blgt4@alvherre.pgsql> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --m4rixdodkhrlzpzv Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit On 2026-Jan-31, Álvaro Herrera wrote: > This is not complete. It modifies PrintControlValues(), which is easy > because I just print each item in the entries.h file in the same order > they appear there. But for PrintNewControlValues() I'll need to add a > symbolic identifier to each string, that the code can use to scan the > array and print just those elements. I'll do that if there are no > objections to this idea here. It looks more or less like this. Patch 0001 is the same as before, and 0002 adds the symbolic names, which is used to create an enum and then to search for the correct lines to print in PrintNewControlValues. I decided to reuse simple_oid_list to store the integers values, which is kinda icky, so getting to something committable I think would have me add simple_int_list. Also, there's a few blocks that are duplicate cases of the same line measuring and printing logic; I suppose I should have a routine to simplify. -- Álvaro Herrera 48°01'N 7°57'E — https://www.EnterpriseDB.com/ "Most hackers will be perfectly comfortable conceptualizing users as entropy sources, so let's move on." (Nathaniel Smith) https://mail.gnu.org/archive/html/monotone-devel/2007-01/msg00080.html --m4rixdodkhrlzpzv Content-Type: text/x-diff; charset=utf-8 Content-Disposition: attachment; filename="0001-Split-out-entry-names-in-pg_resetwal.patch"