Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1uGIse-00GPoJ-3t for pgsql-admin@arkaria.postgresql.org; Sat, 17 May 2025 14:51:16 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1uGIsb-006iM5-CE for pgsql-admin@arkaria.postgresql.org; Sat, 17 May 2025 14:51:13 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1uGIsb-006iLx-0g for pgsql-admin@lists.postgresql.org; Sat, 17 May 2025 14:51:13 +0000 Received: from mailout.easymail.ca ([64.68.200.34]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1uGIsU-002FyP-34 for pgsql-admin@lists.postgresql.org; Sat, 17 May 2025 14:51:11 +0000 Received: from localhost (localhost [127.0.0.1]) by mailout.easymail.ca (Postfix) with ESMTP id BFE4063667; Sat, 17 May 2025 14:51:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=elevated-dev.com; s=easymail; t=1747493465; bh=bloF8l+0Q9zxI2HE69u4pnO5ocTS1eZ8D3eMHS/SzhE=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=fXzy6ASJz5UVX8U2dTwXyWO4TU+Cv1F0jPPqg/8hBPu0IAbgwtS/Q4ZR2bCO/V8aX Y+LR21URybt9HyptmorocSSE/VItgHgAbTpWDarqwSDhIkirO4OAvoM2b6DliBbUNu tGsQnCbWzRwDUCONiYI+mZrFBlMNu3/+ZQ4n5u3Fz3dcPh1h+1FA3vDv2dICwKSv02 6zROTbJvPK0Don/DPOX4mcBDcwEzb0GKeRXS7X5LTJdTmTbXhm/aDaaQrRpccacQan j/kmdrkxXg0nV327jQUjF2Tr78MwAM/wDpIV+F1PLWGg7gGhC63/3ixbm7mLtwqbGQ 65MeoiZZIYSdA== X-Virus-Scanned: Debian amavisd-new at emo07-pco.easydns.vpn Received: from mailout.easymail.ca ([127.0.0.1]) by localhost (emo07-pco.easydns.vpn [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id KILxqxzRxWOC; Sat, 17 May 2025 14:51:04 +0000 (UTC) Received: from smtpclient.apple (165.140.184.195.ip.vcn.com [165.140.184.195]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mailout.easymail.ca (Postfix) with ESMTPSA id 9009D63666; Sat, 17 May 2025 14:51:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=elevated-dev.com; s=easymail; t=1747493464; bh=bloF8l+0Q9zxI2HE69u4pnO5ocTS1eZ8D3eMHS/SzhE=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=isC64hb4HA7BP6aeDFGdOnSRj+KwukszC69vE9/8WoJNe6yjVC8XVj+amWCkWb3Bm 4MbLkVel5uEoGXueosqiNXiUdwC8SdyaHmmzj04zgUZBvbo9qWZ6kY/xQ4YYss2ets ikvPCs2Lg+L3Kf//Zg0iVPWBuCqiWeqhYm+gttFa00ra6gX/gBNKxHKoQMcrMi6CTV iww/oPT0F00w7QnUnbUFghvZDlISV+UR/zPjf+NP3SVDjyMAdaJwZVTdWvTqKvqMMC ncVThKuEnW2OunwDIDYFGgmnuQtfKJWmA5adWHfb3ImqMMFQf0JEz4DtoQstyK21Lm DD53klQEw0lnw== Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3826.500.181.1.5\)) Subject: Re: pg_stat_statements, write activity From: Scott Ribe In-Reply-To: Date: Sat, 17 May 2025 08:50:53 -0600 Cc: pgsql-admin Content-Transfer-Encoding: quoted-printable Message-Id: <4D3DD5A9-AB6C-4BE1-8F21-091B482C6B48@elevated-dev.com> References: <30BA99F7-F935-4020-B53B-0D70FFA7D205@elevated-dev.com> To: Laurenz Albe X-Mailer: Apple Mail (2.3826.500.181.1.5) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > On May 16, 2025, at 1:37=E2=80=AFPM, Laurenz Albe = wrote: >=20 > Sometimes, a backend writes a block to disk itself. This might happen = if a lot > of cache pressure, but usually it happens when the table is extended = with new > blocks. Ah, that's the piece I was missing! Do the written blocks get counted as dirty first, or only as written?=