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 1sveAg-00GcX5-92 for pgsql-hackers@arkaria.postgresql.org; Tue, 01 Oct 2024 14:48:14 +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 1sveAf-000Tn7-B3 for pgsql-hackers@arkaria.postgresql.org; Tue, 01 Oct 2024 14:48:13 +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 1sveAf-000Tmz-1m for pgsql-hackers@lists.postgresql.org; Tue, 01 Oct 2024 14:48:13 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sveAb-0021nN-Cy for pgsql-hackers@postgresql.org; Tue, 01 Oct 2024 14:48:12 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 491Em8qo1831797; Tue, 1 Oct 2024 10:48:08 -0400 From: Tom Lane To: Robert Haas cc: Amul Sul , Sravan Kumar , PostgreSQL-development Subject: Re: pg_verifybackup: TAR format backup verification In-reply-to: References: <1115881.1727564342@sss.pgh.pa.us> <1466068.1727709896@sss.pgh.pa.us> <1636465.1727733671@sss.pgh.pa.u! s> Comments: In-reply-to Robert Haas message dated "Tue, 01 Oct 2024 10:39:51 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1831795.1727794088.1@sss.pgh.pa.us> Date: Tue, 01 Oct 2024 10:48:08 -0400 Message-ID: <1831796.1727794088@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Robert Haas writes: > Here is an attempt at cleaning this up. I'm far from convinced that > it's fully correct; my local compiler (clang version 15.0.7) doesn't > seem fussed about conflating size_t with uint64, not even with -Wall > -Werror. I don't suppose you have a fussier compiler locally that you > can use to test this? Sure, I can try it on mamba's host. It's slow though ... > Respectfully, if you'd just said in your first email about this "I > understand that you were trying to be consistent with a format string > somewhere else, but I don't think that's a good reason to do it this > way, so please use %llu and insert a cast," I would have just said > "fine, no problem" and I wouldn't have been irritated at all. I apologize for rubbing you the wrong way on this. It was not my intent. (But, in fact, I had not realized you copied that code from somewhere else.) regards, tom lane