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 1n2b4c-0002aR-Ik for pgsql-hackers@arkaria.postgresql.org; Wed, 29 Dec 2021 15:41:06 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1n2b4a-0004c3-Le for pgsql-hackers@arkaria.postgresql.org; Wed, 29 Dec 2021 15:41:04 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n2b4a-0004bt-CY for pgsql-hackers@lists.postgresql.org; Wed, 29 Dec 2021 15:41:04 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n2b4Y-0001ag-3O for pgsql-hackers@lists.postgresql.org; Wed, 29 Dec 2021 15:41:03 +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 1BTFex4v2031847; Wed, 29 Dec 2021 10:40:59 -0500 From: Tom Lane To: Magnus Hagander cc: Bharath Rupireddy , PostgreSQL Hackers Subject: Re: Report checkpoint progress in server logs In-reply-to: References: Comments: In-reply-to Magnus Hagander message dated "Wed, 29 Dec 2021 15:35:40 +0100" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2031845.1640792459.1@sss.pgh.pa.us> Date: Wed, 29 Dec 2021 10:40:59 -0500 Message-ID: <2031846.1640792459@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Magnus Hagander writes: >> Therefore, reporting the checkpoint progress in the server logs, much >> like [1], seems to be the best way IMO. > I find progress reporting in the logfile to generally be a terrible > way of doing things, and the fact that we do it for the startup > process is/should be only because we have no other choice, not because > it's the right choice. I'm already pretty seriously unhappy about the log-spamming effects of 64da07c41 (default to log_checkpoints=on), and am willing to lay a side bet that that gets reverted after we have some field experience with it. This proposal seems far worse from that standpoint. Keep in mind that our out-of-the-box logging configuration still doesn't have any log rotation ability, which means that the noisier the server is in normal operation, the sooner you fill your disk. > I think the right choice to solve the *general* problem is the > mentioned pg_stat_progress_checkpoints. +1 regards, tom lane