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 1tBYLK-004ZY1-Gd for pgsql-hackers@arkaria.postgresql.org; Thu, 14 Nov 2024 11:48:58 +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 1tBYLG-00303w-9s for pgsql-hackers@arkaria.postgresql.org; Thu, 14 Nov 2024 11:48:54 +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 1tBYLF-00303o-Fu for pgsql-hackers@lists.postgresql.org; Thu, 14 Nov 2024 11:48:54 +0000 Received: from fout-a5-smtp.messagingengine.com ([103.168.172.148]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tBYLD-001orA-1l for pgsql-hackers@postgresql.org; Thu, 14 Nov 2024 11:48:52 +0000 Received: from phl-compute-12.internal (phl-compute-12.phl.internal [10.202.2.52]) by mailfout.phl.internal (Postfix) with ESMTP id AF23B138038E; Thu, 14 Nov 2024 06:48:49 -0500 (EST) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-12.internal (MEProxy); Thu, 14 Nov 2024 06:48:49 -0500 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 :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; t=1731584929; x=1731671329; bh=b /CYV2gQBbGm3LWieOF1CTrAzCXPu5hOug5Glm1fFOA=; b=GbVkpxWryxw6Cz+mR Xp8kUE6nfjIa8lkylC9+GB53Oj7g/amKKFL3LiS41p55qjk3BpKOhmxRdPDXLydy ogksggDA2bDQTIZqExKSKSMK9jji8WaD1H77afSir/SSHZ9ZaypTVWbq6zTq9SQp f1nXGlvsBC+ghVbO44CY6Wy/UB++Q1yJLQCBf20H532gokrbuNcK6eFoRBMjy6J1 dYbJUi19IQT1bqys2FGxTNz5SbmacZ9HCeJv1XsR4gOt43zxJhFXaKbhv4gMF2Ru BcSLLQMkRdrdwBvxO4Cd4mH634hcfl9hHXNcskeDHq438CNWgU/D/DGeAdOVqzjN 7dvDg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrvddvgdefvdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdpuffr tefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnth hsucdlqddutddtmdenucfjughrpeffhffvvefukfggtggugfgjsehtkeertddttdejnecu hfhrohhmpeetlhhvrghrohcujfgvrhhrvghrrgcuoegrlhhvhhgvrhhrvgesrghlvhhhrd hnohdqihhprdhorhhgqeenucggtffrrghtthgvrhhnpedvkedtffduffdtffffheffhfej jefhgfeiueeukeejkeffgfdufffhudffffeuveenucffohhmrghinhepvghnthgvrhhprh hishgvuggsrdgtohhmnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghi lhhfrhhomheprghlvhhhvghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrghdpnhgspghrtg hpthhtohepfedpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtoheprhgrhhhilhgrshih vgguledtsehgmhgrihhlrdgtohhmpdhrtghpthhtohepmhhitghhrggvlhesphgrqhhuih gvrhdrgiihiidprhgtphhtthhopehpghhsqhhlqdhhrggtkhgvrhhssehpohhsthhgrhgv shhqlhdrohhrgh X-ME-Proxy: Feedback-ID: ia2694551:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 14 Nov 2024 06:48:49 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alvh.no-ip.org; s=schmee; t=1731584927; bh=smKxWaXyUP47dwu9v9nuaymkhY31Eaf//F2AQQDA0mw=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=pbJA3HD1MIdTJ6ZLPcGmU3tLgJ8oEk/hB3cRRVxLjWYP1Ffd5r+Lq8BFKXYnCQQTg f0pIWjQhVET26bzttGGVodGRgOAMopwlyT2D0xvufORS6QyGZfOyDdVx1F32bjlTfT WTDJ5FHivJnoD9zr6kOxyqZeM5m6Dmo8rBvUqvPx0QF75uL19uDN182IXGeBBlWoi0 RHvYA/HS0q+PZ3e89nT5H9MTkkOztpqbwJoZBlYa3/4++iuHRBCBgO4q4aO9ofY3PD 3UmMwtLlpEnFtwKgDaXbXjLdj8TDgRaNzQieyAAGPnGIuQGd9N+BI3OqCY+2LrSY5M mvdi1UHZPLWkQ== Received: by schmee.alvh.no-ip.org (Postfix, from userid 1000) id 45D61EE; Thu, 14 Nov 2024 12:48:47 +0100 (CET) Date: Thu, 14 Nov 2024 12:48:47 +0100 From: Alvaro Herrera To: Michael Paquier Cc: Rahila Syed , PostgreSQL-development Subject: Re: Enhancing Memory Context Statistics Reporting Message-ID: <202411141148.vqxmwtn2ln25@alvherre.pgsql> 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 On 2024-Nov-14, Michael Paquier wrote: > Already mentioned previously at [1] and echoing with some surrounding > arguments, but I'd suggest to keep it simple and just remove entirely > the part of the patch where the stats information gets spilled into > disk. With more than 6000-ish context information available with a > hard limit in place, there should be plenty enough to know what's > going on anyway. Functionally-wise I don't necessarily agree with _removing_ the spill code, considering that production systems with thousands of tables would easily reach that number of contexts (each index gets its own index info context, each regexp gets its own memcxt); and I don't think silently omitting a fraction of people's memory situation (or erroring out if the case is hit) is going to make us any friends. That said, it worries me that we choose a shared memory size so large that it becomes impractical to hit the spill-to-disk code in regression testing. Maybe we can choose a much smaller limit size when USE_ASSERT_CHECKING is enabled, and use a test that hits that number? That way, we know the code is being hit and tested, without imposing a huge memory consumption on test machines. -- Álvaro Herrera 48°01'N 7°57'E — https://www.EnterpriseDB.com/ "Tiene valor aquel que admite que es un cobarde" (Fernandel)