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 1wAKEs-002GzF-0h for pgsql-hackers@arkaria.postgresql.org; Wed, 08 Apr 2026 04:10:02 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wAKEq-004erZ-2Z for pgsql-hackers@arkaria.postgresql.org; Wed, 08 Apr 2026 04:10:01 +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 1wAKEp-004eYw-0h for pgsql-hackers@lists.postgresql.org; Wed, 08 Apr 2026 04:10:00 +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 1wAKEm-00000001EgB-2FJp for pgsql-hackers@lists.postgresql.org; Wed, 08 Apr 2026 04:09:59 +0000 Received: from phl-compute-03.internal (phl-compute-03.internal [10.202.2.43]) by mailfout.phl.internal (Postfix) with ESMTP id 20EEDEC045E; Wed, 8 Apr 2026 00:09:54 -0400 (EDT) Received: from phl-frontend-04 ([10.202.2.163]) by phl-compute-03.internal (MEProxy); Wed, 08 Apr 2026 00:09:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; h= cc:cc:content-transfer-encoding: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=1775621394; x=1775707794; bh=JTD8AE2M6V/O7Mj475xpUImug5QVXBloelu8JDx14TA=; b= cwHpfxVwFkfP6IGwwprAASlncXPjmWeSj9Mo4tpiAioyyZR8LiXPUfU/4e5sfd4T ++OLbdl2nTzFQocKQTbeigX6Lo59f7uVqs+WxlqfcPu/NXWE5fAqAAZ2gxH65tAP be+vf1uQZ1KfVxl1HhXqXx0tWJENl2XwY9X0xdOIaZpbSfbLlJku0nW2KQtOH2yk M3Zo8esWhNZAhLc3e5SatNEzu8YbhaovjRmJhO31f1hhSuHXw62qkbPPxYriYE4q Us1Myn6f/+5lBA7aqiZ/cQydDxNqf78rYXFwyMfusxX4sMjBq7xigTsvn+nR2JK2 jYnB+Vo4nkeqfRhgEOYeTw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :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=1775621394; x= 1775707794; bh=JTD8AE2M6V/O7Mj475xpUImug5QVXBloelu8JDx14TA=; b=d 2t9ca9XWMSEZN+OxSax+ebkMciQ4K1mNUPQutmTkPOjIhRoTh8R9NJQtE6sbz3WK mMMwoB3GlWC0Pa63gzH55m/+gHLxwu0rpV+JY9zwILbwvLzEYFHIewHgeIp637gH 0vZEikhpOB+W4imSPKKvLVqORhQwGfh31EAs7LSfZmjnzrUx7uZsH8fFXTK3bAr2 NR4buASkHNtj+XypPfDWwiuKJrvqBrhcDE/eHTs3CI5ECJI2RoXaVle7qW9feH9L A3izxI8sQ0VhnxCvqekSsouZbGE+xtUKUOXgHxt5FS3ZQhWdGkx0kHerNeC50qZd mtjNFqAuZsiQBDJBia1IQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefhedrtddtgddvvdehjecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr ihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjug hrpeffhffvvefukfhfgggtugfgjgestheksfdttddtjeenucfhrhhomheptehnughrvghs ucfhrhgvuhhnugcuoegrnhgurhgvshesrghnrghrrgiivghlrdguvgeqnecuggftrfgrth htvghrnheptdelledvgfejvdffieeukeefueelfffhgeffhffgffekveeuheeihefhiefg hfdvnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprg hnughrvghssegrnhgrrhgriigvlhdruggvpdhnsggprhgtphhtthhopeeipdhmohguvgep shhmthhpohhuthdprhgtphhtthhopehluhhkrghssehfihhtthhlrdgtohhmpdhrtghpth htohepshhmihhthhhpsgdvvdehtdesghhmrghilhdrtghomhdprhgtphhtthhopehhlhhi nhhnrghkrgesihhkihdrfhhipdhrtghpthhtohepphhgshhqlhdqhhgrtghkvghrsheslh hishhtshdrphhoshhtghhrvghsqhhlrdhorhhgpdhrtghpthhtohepiihsohhlthdrphgr rhhrrghgihesphgvrhgtohhnrgdrtghomhdprhgtphhtthhopehtohhmrghssehvohhnug hrrgdrmhgv X-ME-Proxy: Feedback-ID: id4a34324:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 8 Apr 2026 00:09:53 -0400 (EDT) Date: Wed, 8 Apr 2026 00:09:53 -0400 From: Andres Freund To: Lukas Fittl Cc: Heikki Linnakangas , PostgreSQL Hackers , Tomas Vondra , Peter Smith , Zsolt Parragi Subject: Re: Stack-based tracking of per-node WAL/buffer usage Message-ID: References: <3xbje45m5knff52mye5dfnrjdnwv7it2bzmqac3jqe66fvop4a@xvhy6zx7n6sb> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi, On 2026-04-07 15:27:45 -0700, Lukas Fittl wrote: > On Tue, Apr 7, 2026 at 3:19 PM Andres Freund wrote: > I think renaming makes sense - both to make sure extensions reconsider > how they use it, and because "totaltime" is a bad name anyway, because > its not just about timing (and hasn't been for many releases). > > "query_instr[_options]" seems reasonable to me, although we could drop > the "query_" since it'd be "queryDesc->query_instr" vs > "queryDesc->instr". Done that way. I earlier pushed 0002 too. > > Kinda wonder about having > > EXPLAIN (ANALYZE BUFFERS totals_only, WAL totals_only) ...; > > > > in plenty cases that'd be all one needs, at substantially lower cost. > > True. I don't like the name "totals_only", but I like the concept. I spent all of three seconds coming up with it... :) > Today someone has to go to pg_stat_statements to get just the total > numbers, without running them for all nodes with EXPLAIN ANALYZE (and > incurring its overhead). Yep. Greetings, Andres Freund