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.96) (envelope-from ) id 1w9Wdb-001Vdq-0o for pgsql-hackers@arkaria.postgresql.org; Sun, 05 Apr 2026 23:12:15 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1w9WdZ-005NyB-2M for pgsql-hackers@arkaria.postgresql.org; Sun, 05 Apr 2026 23:12:14 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1w9WdZ-005Nxv-1S for pgsql-hackers@lists.postgresql.org; Sun, 05 Apr 2026 23:12:13 +0000 Received: from fout-a2-smtp.messagingengine.com ([103.168.172.145]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1w9WdX-00000000o7m-1idw for pgsql-hackers@lists.postgresql.org; Sun, 05 Apr 2026 23:12:13 +0000 Received: from phl-compute-01.internal (phl-compute-01.internal [10.202.2.41]) by mailfout.phl.internal (Postfix) with ESMTP id 91D2EEC001E; Sun, 5 Apr 2026 19:12:09 -0400 (EDT) Received: from phl-frontend-03 ([10.202.2.162]) by phl-compute-01.internal (MEProxy); Sun, 05 Apr 2026 19:12:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; h= cc:cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm2; t=1775430729; x=1775517129; bh=PNAer+NEA6 Wq7XtuMZlJa1/4/h3mrGGp8Dm8SpvV84o=; b=RBA42AshvjxG0j7lpaVoi5NU2t 6/uyTtiGYrlWkPJO0nuzWzjJHVA0++36xtHjExencBhAkkNXvMUq3KfTCvFwHYc8 V+DARz65YEfidFdd/qJVUHv3duzNMZDsNQBaNzlVcGe5ZHLa7Rl2HYcsVkNyjwyR nz/9CCyX7lHh1Z2WDmnSsLRz0ocUUXJPOGIRYEB58b0otzWhhSUcgCpLXLu4t5a2 0Xb4YPTMGtuCiDOS6t8To3YqiucTk2r7q1mWRB72U3FqUq9h7V+c9TrDK2PelONX qt1rVlf51Ho+eP/Bv4qSNcIsx8tA2jX/HpVVFQeLstkkXr/emSeEz+jq6hmA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t= 1775430729; x=1775517129; bh=PNAer+NEA6Wq7XtuMZlJa1/4/h3mrGGp8Dm 8SpvV84o=; b=X22Vykcmo+mdWWUcEnhsHwwQ/81mjd16NmWdXfdDtqCd8aq3Ra+ JZUryvMaeoQX6S7qzKBsbtpz710wqM8Fxhr+EddBeseITTrgQFlN+FzYGZwuP1dn bqSvMzxUrGhx0bjAUtirhrR74+oX/ciNlT2U/4pqwQeoJIru+qZU4/ZCmZ2+hdOu ayi8r2uNU8jRZuSOnVyd0DXz8fpGfnK/xzZEQHyBGjhe20yOmR/nQ4UL/hnHIqZN d/IqH31UrjrUCuvJHnDHdMew7cWApZOE4YQff4Ws1ylp8H5joMKGIbAUVxHsfsLA wIgD1h45TMxKFahLzLe5f58ZG290eFBeGzQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefhedrtddtgdduiedtkecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr ihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjug hrpeffhffvvefukfhfgggtuggjsehttdfstddttddvnecuhfhrohhmpeetnhgurhgvshcu hfhrvghunhguuceorghnughrvghssegrnhgrrhgriigvlhdruggvqeenucggtffrrghtth gvrhhnpeeffffgledvffegtdevlefgtdeggffhvdekgfegteeiveejkeetudelveejhfeu geenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrnh gurhgvshesrghnrghrrgiivghlrdguvgdpnhgspghrtghpthhtohepiedpmhhouggvpehs mhhtphhouhhtpdhrtghpthhtoheplhhukhgrshesfhhithhtlhdrtghomhdprhgtphhtth hopehsmhhithhhphgsvddvhedtsehgmhgrihhlrdgtohhmpdhrtghpthhtohephhhlihhn nhgrkhgrsehikhhirdhfihdprhgtphhtthhopehpghhsqhhlqdhhrggtkhgvrhhssehlih hsthhsrdhpohhsthhgrhgvshhqlhdrohhrghdprhgtphhtthhopeiishholhhtrdhprghr rhgrghhisehpvghrtghonhgrrdgtohhmpdhrtghpthhtohepthhomhgrshesvhhonhgurh grrdhmvg X-ME-Proxy: Feedback-ID: id4a34324:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 5 Apr 2026 19:12:08 -0400 (EDT) Date: Sun, 5 Apr 2026 19:12:08 -0400 From: Andres Freund To: Lukas Fittl Cc: Heikki Linnakangas , PostgreSQL Hackers , Zsolt Parragi , Tomas Vondra , Peter Smith Subject: Re: Stack-based tracking of per-node WAL/buffer usage Message-ID: <3xbje45m5knff52mye5dfnrjdnwv7it2bzmqac3jqe66fvop4a@xvhy6zx7n6sb> References: <57biou6l65r7gr4nunoe6lignz2x6m3w45gihoypaez4pc46di@txj3bakhj66l> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi, On 2026-04-05 17:02:28 -0400, Andres Freund wrote: > With that I pushed 0001. For 0002 I: - fixed a few comments still refering to node in the generic Instr* functions - added comment about the async_mode buglet to the commit message - added an async_mode argument to InstrInitNode(), as its callsite already needed to be touched, and it felt wrong that InstrAllocNode() could do things that were not possible with InstrInitNode() - Deduplicated the code between InstrStop() and InstrStotNode() by introducing InstrStopCommon() After those (and some testing) I pushed this. Greetings, Andres Freund