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 1kGBtR-0003YM-V0 for pgsql-hackers@arkaria.postgresql.org; Thu, 10 Sep 2020 02:00:57 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kGBtQ-0003sE-Kt for pgsql-hackers@arkaria.postgresql.org; Thu, 10 Sep 2020 02:00:56 +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 1kGBtQ-0003s7-E7 for pgsql-hackers@lists.postgresql.org; Thu, 10 Sep 2020 02:00:56 +0000 Received: from mail-il1-x135.google.com ([2607:f8b0:4864:20::135]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1kGBtN-0001l4-Uz for pgsql-hackers@postgresql.org; Thu, 10 Sep 2020 02:00:55 +0000 Received: by mail-il1-x135.google.com with SMTP id a8so4285380ilk.1 for ; Wed, 09 Sep 2020 19:00:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telsasoft-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=xbmASXDpCali0YUwBDRmPr0/T0M8d3jlQ6bm/qabAhg=; b=bwV1860EhIxR8D8hWOKOAjF4BZftL6ssZvKL+JJT/k2yGx3p5YXvQDZmy4yQO2WD/L tcWznCzOYH3z1nYfgtf1dM2Hnt9lu/6MqAXzJrzL7besammbMfByq4iWGMX1zaMzueLL pYpH9lc02+5sQVRqxIgfbnrY8SQ68ztWi6Uaba367PGzYsBG/kIz6bkHq2o/BiBN6FGJ B87xK7M9NcBBp2u3pOvUzFN89lnzUUwaciJ7Tw3zCxUI/recswOWjqpYUOvM4yvG7m4p vRa06FdgSdIpWn/95K5vfrBFi4xBtaa1yVUftAvLNKQT9ZW8igZQPafwRGUE79G1+fxj wxjg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=xbmASXDpCali0YUwBDRmPr0/T0M8d3jlQ6bm/qabAhg=; b=Za4zIJBFggAOvgCsFyqh/pKQbdA39tNilNvUoqpmVa/7zA3Y8tD89lx7uifHM3aC8Y V1Iaimq5a/dd4lj3Ql6H6dVTtcDiROHsLFv/50b2G423Q4ZYl6Kqiv0lJM0fYQgdtkSM 9ZvXhp3qaMDHdtpklDd7r+i0zcjZE1wAsXsLUL4xtc/YqvtOswfbYfO/6js47OJ1wan+ 09TnoOA/WPA08S1g5NU5bEeJURXfmejQfDPe2SYOUJUxY+RRoPgG6TPZHZy5zspXpdzo ccWeyJhHiOXWGwY17dLDo02CHWLjLeUrHSgWCW5Z0ng/HslkGn7tkY+9refPK1npeREZ wrOQ== X-Gm-Message-State: AOAM530pdIKvnV28rPYPAG8dXjHsunroAiZnaJbx33BDn5eXrpwWIzwU gNMv6ecXb44G15ygyh2IzIpypw== X-Google-Smtp-Source: ABdhPJwx4UUok1qpyZ2xDQb+CTk3qDh6lItvjlz8rDGTMoH7NFD4iFYWA9ahQejAGa2xvRWatGV9LA== X-Received: by 2002:a92:d40f:: with SMTP id q15mr6261593ilm.71.1599703253193; Wed, 09 Sep 2020 19:00:53 -0700 (PDT) Received: from pryzbyj.telsasoft (charmander.telsasoft.com. [50.244.222.1]) by smtp.gmail.com with ESMTPSA id k1sm1701861ili.54.2020.09.09.19.00.51 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 09 Sep 2020 19:00:52 -0700 (PDT) Received: by pryzbyj.telsasoft (Postfix, from userid 1000) id 0A89A8006F0; Wed, 9 Sep 2020 21:00:50 -0500 (CDT) Date: Wed, 9 Sep 2020 21:00:50 -0500 From: Justin Pryzby To: Michael Paquier Cc: k.jamison@fujitsu.com, pgsql-hackers@postgresql.org Subject: Re: please update ps display for recovery checkpoint Message-ID: <20200910020050.GB18552@telsasoft.com> References: <20200818225238.GP17022@telsasoft.com> <20200820080905.GA10353@paquier.xyz> <20200831065244.GB6555@paquier.xyz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200831065244.GB6555@paquier.xyz> User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Mon, Aug 31, 2020 at 03:52:44PM +0900, Michael Paquier wrote: > On Thu, Aug 20, 2020 at 05:09:05PM +0900, Michael Paquier wrote: > > That could be helpful. Wouldn't it be better to use "end-of-recovery > > checkpoint" instead? That's the common wording in the code comments. > > > > I don't see the point of patch 0002. In the same paragraph, we > > already know that this applies to any checkpoints. > > Thinking more about this.. Could it be better to just add some calls > to set_ps_display() directly in CreateCheckPoint()? This way, both > the checkpointer as well as the startup process at the end of recovery > would benefit from the change. What would you want the checkpointer's ps to say ? Normally it just says: postgres 3468 3151 0 Aug27 ? 00:20:57 postgres: checkpointer Or do you mean do the same thing as now, but one layer lower, like: @@ -8728,6 +8725,9 @@ CreateCheckPoint(int flags) + if (flags & CHECKPOINT_END_OF_RECOVERY) + set_ps_display("recovery checkpoint"); -- Justin