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 1wKICv-000ogF-24 for pgsql-hackers@arkaria.postgresql.org; Tue, 05 May 2026 16:01:13 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wKICt-00Cp1C-2g for pgsql-hackers@arkaria.postgresql.org; Tue, 05 May 2026 16:01:11 +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 1wKICt-00Cp10-0C for pgsql-hackers@lists.postgresql.org; Tue, 05 May 2026 16:01:11 +0000 Received: from fout-a3-smtp.messagingengine.com ([103.168.172.146]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1wKICo-00000000KvH-16Q4 for pgsql-hackers@lists.postgresql.org; Tue, 05 May 2026 16:01:08 +0000 Received: from phl-compute-05.internal (phl-compute-05.internal [10.202.2.45]) by mailfout.phl.internal (Postfix) with ESMTP id B5DE9EC00DA; Tue, 5 May 2026 12:01:05 -0400 (EDT) Received: from phl-imap-15 ([10.202.2.104]) by phl-compute-05.internal (MEProxy); Tue, 05 May 2026 12:01:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=partin.io; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm3; t=1777996865; x=1778083265; bh=PmT1E4y2KKjzMJ5SbsANh2Mdz/pWFjvSNtHmAh91uDA=; b= xdIcY3At7j1u54HFE/jgkZ7VRISoVHzbGhvqTwry/d+PAhP0udRTNDqgBkieydcZ AZgDf3s+FEPR9+rLusaMaC9yhGdPTo3+H7Hgo7LFkrWipEflONeLlvdtI4yuELoI 2wSc8FQitATOVaykfzWnNjx1F0iLcME77mrVdfMUtdNiAsYQSgDF7mhxOe5JZ2r1 ARQYGk3bppSA29EPcvZE0uv9zo0W+zBJuORkvtY5nuadCW5xeIofm+RLPrX6C+bO dBmvbPgvr5NALWFzN5P8RwRaaWsViXrCM1bZjsCcdNFgbxJrpJIFdgXy6wTwn9VY Yvi1Hv8txks08uZfPkKHpA== 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 :references:reply-to:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1777996865; x= 1778083265; bh=PmT1E4y2KKjzMJ5SbsANh2Mdz/pWFjvSNtHmAh91uDA=; b=V FtwM5T/7AGmIJq4z8Ktiyq0xForzk4FmdCE5ij7XLsG04GVsu2iQHsqdP+6xDC0j /fgEFJQ0BlqvFlRsQ8qoZZ4JmRKCnt75HM9BVhqFK4TLAYU6NyaEYzA+ebj3QdpZ rjt0Z4WZJCJu3+SsIeMs2IVAqAbroZ6hDpfK5hEvA9eU69FTZ8207CKiZz0NUWvX U3hXd4mOA+3e9ThwhNssl7sgCRibw/+pms9b+DmUGf9Cykp35N/Q69Hf7C6K3YvW oChZ+Wo+Z3fo3TzXai3Dn2i+tpMZ9zDN+vznKY+upazNF8h0OOx8THKmq9H8tgBw +0G+ly+p7vMqPIt56ZCWQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefhedrtddtgddutddvudefucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujf gurhepofgggfgtfffkvefuvffhofhfjgesthhqredtredtjeenucfhrhhomhepfdfvrhhi shhtrghnucfrrghrthhinhdfuceothhrihhsthgrnhesphgrrhhtihhnrdhioheqnecugg ftrfgrthhtvghrnhepjeeihfeffeeivdehheehgeeitdfhtdduheeuleehkeeluedvhfev heekhfelgeetnecuffhomhgrihhnpegrmhgriihonhdrtghomhenucevlhhushhtvghruf hiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehtrhhishhtrghnsehprghrthhi nhdrihhopdhnsggprhgtphhtthhopedvpdhmohguvgepshhmthhpohhuthdprhgtphhtth hopehsuhhlrghmuhhlsehgmhgrihhlrdgtohhmpdhrtghpthhtohepphhgshhqlhdqhhgr tghkvghrsheslhhishhtshdrphhoshhtghhrvghsqhhlrdhorhhg X-ME-Proxy: Feedback-ID: idd01497b:Fastmail Received: by mailuser.phl.internal (Postfix, from userid 501) id 6F705780070; Tue, 5 May 2026 12:01:05 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Tue, 05 May 2026 16:01:04 +0000 Message-Id: Cc: "pgsql-hackers" Subject: Re: Cleanup: Replace sscanf with strtol/strtoul in snapmgr To: "Amul Sul" From: "Tristan Partin" X-Mailer: aerc 0.21.0 References: In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Tue May 5, 2026 at 2:24 AM CDT, Amul Sul wrote: > On Mon, May 4, 2026 at 9:19=E2=80=AFPM Tristan Partin = wrote: >> >> On Mon Apr 20, 2026 at 12:07 AM CDT, Amul Sul wrote: >> The patch generally looks good. One comment: >> >> > @@ -1359,17 +1365,36 @@ parseVxidFromText(const char *prefix, char **s= , const char *filename, >> > { >> > char *ptr =3D *s; >> > int prefixlen =3D strlen(prefix); >> > + long lval; >> > + unsigned long ulval; >> >> Perhaps better variable names would be procNumber and >> localTransactionId. >> > > Thanks, Andreas and Tristan, for the review ! > > I have renamed the variables as suggested but used the shorter forms > procno and xid instead of procNumber and localTransactionId. I also > applied similar changes to parseXidFromText (changing val to xid), but > kept val in parseIntFromText since it seems to be more appropriate for > a generic integer value. > > Updated patch attached. New patch looks good to me. I can confirm that the only changes in the=20 new version of the patch are the variable names. --=20 Tristan Partin PostgreSQL Contributors Team AWS (https://aws.amazon.com)