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 1plm9u-00055O-Ru for pgsql-hackers@arkaria.postgresql.org; Mon, 10 Apr 2023 07:41:51 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1plm9t-0000iR-NQ for pgsql-hackers@arkaria.postgresql.org; Mon, 10 Apr 2023 07:41:49 +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 1plm9t-0000hq-9R for pgsql-hackers@lists.postgresql.org; Mon, 10 Apr 2023 07:41:49 +0000 Received: from mail.postgrespro.ru ([93.174.131.139]) by makus.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1plm9l-0005Wq-Ho for pgsql-hackers@postgresql.org; Mon, 10 Apr 2023 07:41:48 +0000 Received: from [192.168.0.104] (unknown [62.217.188.228]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mail.postgrespro.ru (Postfix) with ESMTPSA id DF42B21C4688; Mon, 10 Apr 2023 10:41:38 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=postgrespro.ru; s=mail; t=1681112499; bh=gFwD7UfEyaqdLmKQVNvEMxqhQNY7zTsCZKZs1z2VUqA=; h=Date:Subject:To:Cc:References:From:In-Reply-To; b=Ej8vfYWi4rVjtH+ZY8Bx5AMvnkViUvZHh5YgmkYCB3qicpUqGgTI1j2iDSAdF+PUl WUpEHywswyQ7ggUbrR3JTiXT0HYxm8xL2RsDTZfyPj7UH9TOwZ6ftEdJ2gZiS2erU6 oEvl00nZUmmLSPol2VLPpocAYk69Tys1icxP3eto= Content-Type: multipart/mixed; boundary="------------4q5Q2zK3iqcg8dYCL0r767Ua" Message-ID: Date: Mon, 10 Apr 2023 10:41:38 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.1 Subject: Re: pg_stat_bgwriter.buffers_backend is pretty meaningless (and more?) Content-Language: en-US To: Melanie Plageman Cc: Justin Pryzby , Andres Freund , Kyotaro Horiguchi , tgl@sss.pgh.pa.us, vignesh21@gmail.com, lukas@fittl.com, alvherre@alvh.no-ip.org, magnus@hagander.net, pgsql-hackers@postgresql.org, thomas.munro@gmail.com, m.sakrejda@gmail.com References: <20230306.152425.316894602450485455.horikyota.ntt@gmail.com> <20230306.154843.178021884584228317.horikyota.ntt@gmail.com> <20230306190919.ai6mxdq3sygyyths@awork3.anarazel.de> <20230306192409.daz5ivq4mbbr2ye7@liskov> <20230306193404.3btuacgc6um33mt2@awork3.anarazel.de> <20230307181844.hxnlfi3wa5lm7sm2@awork3.anarazel.de> <20230309194301.mjdddcoswgr6xoxa@awork3.anarazel.de> From: Pavel Luzanov In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk This is a multi-part message in MIME format. --------------4q5Q2zK3iqcg8dYCL0r767Ua Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 05.04.2023 03:41, Melanie Plageman wrote: > On Tue, Apr 4, 2023 at 4:35 PM Pavel Luzanov wrote: > >> After a little thought... I'm not sure about the term 'bootstrap >> process'. I can't find this term in the documentation. > There are various mentions of "bootstrap" peppered throughout the docs > but no concise summary of what it is. For example, initdb docs mention > the "bootstrap backend" [1]. > > Interestingly, 910cab820d0 added "Bootstrap superuser" in November. This > doesn't really cover what bootstrapping is itself, but I wonder if that > is useful? If so, you could propose a glossary entry for it? > (preferably in a new thread) I'm not sure if this is the reason for adding a new entry in the glossary. >> Do I understand correctly that this is a postmaster? If so, then the >> postmaster process is not shown in pg_stat_activity. > No, bootstrap process is for initializing the template database. You > will not be able to see pg_stat_activity when it is running. Oh, it's clear to me now. Thank you for the explanation. > You can query pg_stat_activity from single user mode, so it is relevant > to pg_stat_activity also. I take your point that bootstrap mode isn't > relevant for pg_stat_activity, but I am hesitant to add that distinction > to the pg_stat_io docs since the reason you won't see it in > pg_stat_activity is because it is ephemeral and before a user can access > the database and not because stats are not tracked for it. > > Can you think of a way to convey this? See my attempt attached. I'm not sure about the wording. But I think we can avoid the term 'bootstrap process' by replacing it with "database cluster initialization", which should be clear to everyone. -- Pavel Luzanov Postgres Professional: https://postgrespro.com --------------4q5Q2zK3iqcg8dYCL0r767Ua Content-Type: text/x-patch; charset=UTF-8; name="v2-0001-PATCH-v2-Document-standalone-backend-type-in-pg_s.patch" Content-Disposition: attachment; filename*0="v2-0001-PATCH-v2-Document-standalone-backend-type-in-pg_s.pa"; filename*1="tch" Content-Transfer-Encoding: base64 RnJvbSBmZjc2YjgxYTlkNTI1ODFmNmZkYWY5YzFmMzg4NWU4MjcyZDJhZTNjIE1vbiBTZXAg MTcgMDA6MDA6MDAgMjAwMQpGcm9tOiBQYXZlbCBMdXphbm92IDxwLmx1emFub3ZAcG9zdGdy ZXNwcm8ucnU+CkRhdGU6IE1vbiwgMTAgQXByIDIwMjMgMTA6MjU6NTIgKzAzMDAKU3ViamVj dDogW1BBVENIIHYyXSBbUEFUQ0ggdjJdIERvY3VtZW50IHN0YW5kYWxvbmUgYmFja2VuZCB0 eXBlIGluCiBwZ19zdGF0X2FjdGl2aXR5CgpSZXBvcnRlZC1ieTogUGF2ZWwgTHV6YW5vdiA8 cC5sdXphbm92QHBvc3RncmVzcHJvLnJ1PgpEaXNjdXNzaW9uOiBodHRwczovL3d3dy5wb3N0 Z3Jlc3FsLm9yZy9tZXNzYWdlLWlkL2ZjYmUyODUxLWYxZmItOTg2My01NGJjLWE5NWRjN2Ew ZDk0NiU0MHBvc3RncmVzcHJvLnJ1Ci0tLQogZG9jL3NyYy9zZ21sL21vbml0b3Jpbmcuc2d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