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 1ovezq-00023a-Rx for pgsql-hackers@arkaria.postgresql.org; Thu, 17 Nov 2022 13:32:02 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ovezp-00062J-MU for pgsql-hackers@arkaria.postgresql.org; Thu, 17 Nov 2022 13:32:01 +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 1ovezp-000629-D9 for pgsql-hackers@lists.postgresql.org; Thu, 17 Nov 2022 13:32:01 +0000 Received: from mail-wm1-x32c.google.com ([2a00:1450:4864:20::32c]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1ovezm-0006nH-Sz for pgsql-hackers@lists.postgresql.org; Thu, 17 Nov 2022 13:32:00 +0000 Received: by mail-wm1-x32c.google.com with SMTP id ja4-20020a05600c556400b003cf6e77f89cso4678929wmb.0 for ; Thu, 17 Nov 2022 05:31:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=VKcWiL9Arq89v4bEDZ0A3H1sf0GBd4yc/kpANXHGKwQ=; b=omcD0eqWoKx3gsSlkDT3jhWHZO+P1B+R/Z2hFL3NwpY9Fmwiv+qj9YGp80yjkdv6Vm /eR++idOvGiCQak3l11IqdQuBOwdnD3J2pExXMH3LBpGaLDCLWzb7/jkRuGGA7t86U1B KH0riSy69kkAYS7NeUSl6fqDWc8C71r7s0hEs8MmN4nBJU7VArP5tYqh5Yx9hsUC86Nc aAft1PdM5WYVPnPC+x5OXCeUXqBK+VYyMeVDV5Xl+p6JJnyUKEs2iGVUupPKD2x5U0my AW41uWKi0gPM2i37IiEfhMvpRayaz3RAmQ7avTiVDcph5Sqph0KxqX8pGLNaGMcta2EM AkkA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=VKcWiL9Arq89v4bEDZ0A3H1sf0GBd4yc/kpANXHGKwQ=; b=UA/Vz2tIZMs1LtnYXH/N8vsya7PUOoWFlRic4GEs5rqwFEmZMg1G8Ei48fiNrGvcCK ree8QgvtzaBrnr+T4JtpApp0z9bRI3sbjni21z0TSbEiafFdZllx1Gw2otrptEWT7cTR iiFVLkVB1EIIEQPOlXNr4OiCga6lZDZXKwL1m5PbEAgrgdbAw+L/ZOGtEpYusPkCXFe6 SU9LQinrxPPFxlAt7b9iZWIcrH8Twt0hNaVXNtc7qFaEK4lA16/K+kJb23a1pP2CWfeN PCUWcXWRRiU/yA4VUa94i3bjk91bcDE40UXIAGgFMmfksxtfAw6LYxXtejsF6LWdhjXV umkA== X-Gm-Message-State: ANoB5pnPjdHsV4rQyWbrfrTTxeSaqKuJcR2wei9yigdLiVbiSmP7CRSx jtpCAtq4HAOMH2QFmq9VtbxOaBX7p1ThLsd0z1g= X-Google-Smtp-Source: AA0mqf7480qKsVd59MYXtwL1MonQUFWAoZY/GnlbBvgg4qkAYqYRHRielHtoaFVq8WGv5leSD/NcCA86yv6wU9TkNTY= X-Received: by 2002:a05:600c:47cf:b0:3cf:8051:47ae with SMTP id l15-20020a05600c47cf00b003cf805147aemr5346250wmo.24.1668691917485; Thu, 17 Nov 2022 05:31:57 -0800 (PST) MIME-Version: 1.0 References: <20220319001556.atuqbmafvc73pa2k@alap3.anarazel.de> <20220707000446.hefgyu5xikxwt4md@alap3.anarazel.de> In-Reply-To: From: Bharath Rupireddy Date: Thu, 17 Nov 2022 19:01:45 +0530 Message-ID: Subject: Re: Report checkpoint progress with pg_stat_progress_checkpoint (was: Report checkpoint progress in server logs) To: Robert Haas Cc: "Drouvot, Bertrand" , Nitin Jadhav , Andres Freund , Matthias van de Meent , Ashutosh Sharma , Julien Rouhaud , Bruce Momjian , Tom Lane , Magnus Hagander , PostgreSQL Hackers Content-Type: text/plain; charset="UTF-8" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Thu, Nov 17, 2022 at 12:49 AM Robert Haas wrote: > > > I also think that a new pg_stat_checkpoint view is needed > > because, right now, the PgStat_CheckpointerStats stats are exposed via > > the pg_stat_bgwriter view, having a separate view for checkpoint stats > > is good here. > > Yep. On Wed, Nov 16, 2022 at 11:44 PM Andres Freund wrote: > > > I also think that a new pg_stat_checkpoint view is needed > > because, right now, the PgStat_CheckpointerStats stats are exposed via > > the pg_stat_bgwriter view, having a separate view for checkpoint stats > > is good here. > > I agree that we should do that, but largely independent of the architectural > question at hand. Thanks. I quickly prepared a patch introducing pg_stat_checkpointer view and posted it here - https://www.postgresql.org/message-id/CALj2ACVxX2ii%3D66RypXRweZe2EsBRiPMj0aHfRfHUeXJcC7kHg%40mail.gmail.com. -- Bharath Rupireddy PostgreSQL Contributors Team RDS Open Source Databases Amazon Web Services: https://aws.amazon.com