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 1wAqig-000SBS-1C for pgsql-hackers@arkaria.postgresql.org; Thu, 09 Apr 2026 14:50:58 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wAqie-006FFT-29 for pgsql-hackers@arkaria.postgresql.org; Thu, 09 Apr 2026 14:50:57 +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 1wAqie-006FFL-1E for pgsql-hackers@lists.postgresql.org; Thu, 09 Apr 2026 14:50:57 +0000 Received: from mail-oa1-x30.google.com ([2001:4860:4864:20::30]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wAqic-00000000CIt-2umd for pgsql-hackers@postgresql.org; Thu, 09 Apr 2026 14:50:57 +0000 Received: by mail-oa1-x30.google.com with SMTP id 586e51a60fabf-40974bf7781so741091fac.0 for ; Thu, 09 Apr 2026 07:50:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1775746253; x=1776351053; darn=postgresql.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=b6PiScNl4LjhFFNyTTgLpoDaUfE1FiKxBjK7P8TwL9Y=; b=Myk+emCl2ER5/ssLXYmUJXazN3mzBYJYsd1/w9hJ9vsri1+Uq7fnpZHMWSVyX+PPwg ui8Kk1JtBekxN9a3xDCBUSZbR5+fvFj9bbkoLP2O/L48k36b/2CKI3eRTpdXIuRZiP+5 MeVwWhwTamGvPbVBt8RaLFpGAM6wThPr4vR708MGNdSqp8XkwwkNUZ7/dBmdQi8jkQYf jTAKvumywOm041Gns/BmDlzHRAqhF0t22XPpHBpf11MuT3tfi33lvlwZfmaSwMe0ZSG8 qlggTrT2ujxE41UXzOngwuEC5O8nXQEp/QCTlKlvdPO1yYHdvvN9fbUx4w2rvDntKQqr OHJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1775746253; x=1776351053; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=b6PiScNl4LjhFFNyTTgLpoDaUfE1FiKxBjK7P8TwL9Y=; b=pY8e8D/b2TLWntKOWzwaYUnGIkKFh/Cu99KCX9OWKuFp61o6sXtOVWffqiYVwR/oLx XLpsZ8qQpMnh+mH9FVtTBLKNuTZfe1g8AcwbHQb6BQSqBf8HE6jdPue0j0G43CDawb7s nYvWaaLLRdJrbUI3LfxIRcItx3z4m4XEz+dlzAb/x7M1xog+lHEJUe0dDqIH+lOXQf5D dU8APAt8tjT2UNo3lVUDkGCOoSJkzy71TBKQrwvOxH5rcLtGQxSym9fcQCIn7m12CB6I M+St8fkZHmzIOCQtrLrG/CxyS97rseQCHocndd6UT8KORGjTQP0KGrMntwSz/cDYKsjj FNWA== X-Gm-Message-State: AOJu0YwrFTqO5CHn7HvBrrSekTi5o95vh3JJMuGIrqM8kUUiam3Guom5 q13dj8ypqSdqYVbwmumgrDkpxPqMIxmVhd3eS/UdmkDfpFUw4ettLWkQ X-Gm-Gg: AeBDiet1L1fXppCmTeX6V6wFTnDvPuPUtm872wXqL9YIgGHmFTrPQM9/C3IpDbQwRyf stLkVXFtqlL0BeV4oTkoX2p7QkHpmWyZH/UA3xFVwIRZ+nSx+ezoO043TzA3eJXq7nuf+ff35wM yoE46H7a0bjQu/nsvJdfG2EXfdkoJ0J0ql7xcIWFvIoHwjTK/vNGQagSiA8stvfA1ynGja4uAdY ralfidw39z07VpDVaMaNxy3RcpTMLxh0l4hY7lk1z9g5JUV761jhpdj0VEdEN3raii+r+fzDek7 DhgAdZ8U73NcNtVziPql3k3Tt/+pkCgAMn5wWiuMFlUO2HoTGJ7bNrepYeIO7LMSOGD/6j8vnM5 jXjTfSbaFozL0aeJEY8iUHh//z+vlx0F+T8kJeG6QavGq/JyW8/s+P4DqqObRJKV60koMlRE5Rf JGtD2tW6oew2PIzE5Pz7Ez6fvk0ivSe7eDLsH04QTQayv7F1s/0l53p4cKp/dvdGgrre8KSF56S dzdr6KCbEftyEsWb5V6vA== X-Received: by 2002:a05:6820:81c3:b0:67d:e78f:38d2 with SMTP id 006d021491bc7-68a6b73b02amr1527935eaf.25.1775746252645; Thu, 09 Apr 2026 07:50:52 -0700 (PDT) Received: from nathan (162-195-168-172.lightspeed.stlsmo.sbcglobal.net. [162.195.168.172]) by smtp.gmail.com with ESMTPSA id 006d021491bc7-6823d419d09sm11147397eaf.15.2026.04.09.07.50.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Apr 2026 07:50:51 -0700 (PDT) Date: Thu, 9 Apr 2026 09:50:49 -0500 From: Nathan Bossart To: Andres Freund Cc: pgsql-hackers@postgresql.org, Tom Lane , Alexander Lakhin , Sami Imseih , Bharath Rupireddy , Treat , satyanarlapuram@gmail.com, tndrwang@gmail.com Subject: Re: pgstat vs aset Message-ID: References: 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 On Wed, Apr 08, 2026 at 07:04:58PM -0400, Andres Freund wrote: > In [1] I looked at pgstat memory usage after sort of a complaint by Nathan. > The conversion of "PgStat Shared Ref" to slab seems like an improvement we > obviously should make [2]. > > [...] > > But I think for this use case we actually have a more fitting memory context > type for this workload, i.e. GenerationContext. With that the size after the > same vacuum is Nice. > [2] It's a big enough saving that I'm kinda wondering about whether we should > try to sneak it into 19. I don't know whether it's appropriate to try to sneak this into v19 at this point, but it at least seems like a "moment v20 opens for development" thing. Should we double check there's no meaningful performance differences? Otherwise, this seems like an easy win. -- nathan