Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oviWg-0008RT-Pr for pgsql-hackers@arkaria.postgresql.org; Thu, 17 Nov 2022 17:18:10 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oviWf-0008JP-FD for pgsql-hackers@arkaria.postgresql.org; Thu, 17 Nov 2022 17:18:09 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oviWf-0008JG-5x for pgsql-hackers@lists.postgresql.org; Thu, 17 Nov 2022 17:18:09 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oviWd-00037o-6V for pgsql-hackers@lists.postgresql.org; Thu, 17 Nov 2022 17:18:08 +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 2AHHI0pm1904122; Thu, 17 Nov 2022 12:18:00 -0500 From: Tom Lane To: Andres Freund cc: Robert Haas , Melanie Plageman , Bharath Rupireddy , "Drouvot, Bertrand" , Nitin Jadhav , Matthias van de Meent , Ashutosh Sharma , Julien Rouhaud , Bruce Momjian , Magnus Hagander , PostgreSQL Hackers Subject: Re: Report checkpoint progress with pg_stat_progress_checkpoint (was: Report checkpoint progress in server logs) In-reply-to: <20221117162431.a3kqnpgjjsa7foxy@awork3.anarazel.de> References: <20220319001556.atuqbmafvc73pa2k@alap3.anarazel.de> <20220707000446.hefgyu5xikxwt4md@alap3.anarazel.de> <20221116195232.wynvnlng2ivne76b@awork3.anarazel.de> <20221117162431.a3kqnpgjjsa7foxy@awork3.anarazel.de> Comments: In-reply-to Andres Freund message dated "Thu, 17 Nov 2022 08:24:31 -0800" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1904119.1668705480.1@sss.pgh.pa.us> Date: Thu, 17 Nov 2022 12:18:00 -0500 Message-ID: <1904120.1668705480@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Andres Freund writes: > I think pgstat_progress_start_command() needs the changecount stuff, as does > pgstat_progress_update_multi_param(). But for anything updating a single > parameter at a time it really doesn't do anything useful on a platform that > doesn't tear 64bit writes (so it could be #ifdef > PG_HAVE_8BYTE_SINGLE_COPY_ATOMICITY). Seems safe to restrict it to that case. regards, tom lane