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 1sh8vh-00DUR3-Vl for pgsql-hackers@arkaria.postgresql.org; Thu, 22 Aug 2024 14:36:50 +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 1sh8vg-0034x8-4N for pgsql-hackers@arkaria.postgresql.org; Thu, 22 Aug 2024 14:36:48 +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 1sh8ve-0034wz-Lp for pgsql-hackers@lists.postgresql.org; Thu, 22 Aug 2024 14:36:48 +0000 Received: from fhigh6-smtp.messagingengine.com ([103.168.172.157]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sh8vc-000ukV-Bf for pgsql-hackers@postgresql.org; Thu, 22 Aug 2024 14:36:45 +0000 Received: from phl-compute-02.internal (phl-compute-02.nyi.internal [10.202.2.42]) by mailfhigh.nyi.internal (Postfix) with ESMTP id 76B73114F8A6; Thu, 22 Aug 2024 10:36:42 -0400 (EDT) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-02.internal (MEProxy); Thu, 22 Aug 2024 10:36:42 -0400 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-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1724337402; x= 1724423802; bh=oR+jCdNH6BgzuhdIGDQZsfpsApeJ84sKB6TNCilxR9w=; b=m HasUw6GVwoVudA8JJ+94vkVs2YRyRT4/NpNk0wIc3ub3Rr4snBooZsEW6yjNnhhv EoJu3McIZGt1Sgi9kuV/yPrvk47xo6Yyp5QN6GlBfaBvk3D8yi/LbfKw1Nr7Fu9x ax4/qXzRNUzDuSWbms61y2zhwJSCWLGgM/mXxbuATcfd7WJrNVfQQ7jHweyKv+Ue c7pH8mD89umIBkeplNzZIoDqHdj/aQtMrmRKEaDUyc7zE1Fj3J65rX/1q/mH8VxM 6m6FqDvIM6eGlRzC4m0VKGWMvVY7yAszz2Stkl7SSDxefl6C71cpdfK7614fdc3r 4ePb/FpywYvSdjaPO8uqg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddruddvtddgjeejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnh htshculddquddttddmnecujfgurhepfffhvfevuffkgggtugfgjgesthekredttddtjeen ucfhrhhomheptehlvhgrrhhoucfjvghrrhgvrhgruceorghlvhhhvghrrhgvsegrlhhvhh drnhhoqdhiphdrohhrgheqnecuggftrfgrthhtvghrnhepvdektdffudfftdffffehfffh jeejhffgieeuueekjeekfffgudffhfduffffueevnecuffhomhgrihhnpegvnhhtvghrph hrihhsvggusgdrtghomhenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgr ihhlfhhrohhmpegrlhhvhhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorhhgpdhnsggprh gtphhtthhopeduvddpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtoheprghnughrvghs segrnhgrrhgriigvlhdruggvpdhrtghpthhtohepghhilhhlvghssegurghrohhlugdrnh gvthdprhgtphhtthhopegrvghkohhrohhtkhhovhesghhmrghilhdrtghomhdprhgtphht thhopegrmhgsohhrohguihhnkeeisehgmhgrihhlrdgtohhmpdhrtghpthhtohephhhorh hikhihohhtrgdrnhhtthesghhmrghilhdrtghomhdprhgtphhtthhopehthhhomhgrshdr mhhunhhrohesghhmrghilhdrtghomhdprhgtphhtthhopehvihhgnhgvshhhvddusehgmh grihhlrdgtohhmpdhrtghpthhtohepmhhitghhrggvlhesphgrqhhuihgvrhdrgiihiidp rhgtphhtthhopeihrdhsohhkohhlohhvsehpohhsthhgrhgvshhprhhordhruh X-ME-Proxy: Feedback-ID: ia2694551:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 22 Aug 2024 10:36:40 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alvh.no-ip.org; s=schmee; t=1724337398; bh=Zr4Y3ZkOUUOv28TjbcrgZHdhAkqtVmt20J+Tl2TF8+g=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=FYKfu0IhG3AA98aUKbSUvsx37KKZxSOP+uD7UKhpcWtlzSuePghjLJ8gCb2F4jdn+ vFvISi3DPyjFqilejaLzwhiP+nX8LK04mu4pBDqTPEo+ANAZ0wcgBbQGf5vDw0KyVS Xzqc08suAMRU9jrFi9gAG7v+l/u8bB7GZrKrNrWPvhGSElWGwJWWvPpIjw3jFgIMso kMMg1IPJWoRBG+JYHKTVMijwoBIqThwPOnJ37NuVKdtjcM9G7boVSqnWeKomFWmj98 pZpipGGU5m5bjQQxkqt3XrP0AHEBByZ9YlSNM/CK6/Qd8smOwFxnuHWV2cJmYVMQdQ kaG8Qlb5MJ/lA== Received: by schmee.alvh.no-ip.org (Postfix, from userid 1000) id 2B97DE9; Thu, 22 Aug 2024 10:36:38 -0400 (-04) Date: Thu, 22 Aug 2024 10:36:38 -0400 From: Alvaro Herrera To: Michael Paquier Cc: "Andrey M. Borodin" , vignesh C , Andrew Borodin , Yura Sokolov , Andres Freund , Thomas Munro , Gilles Darold , Alexander Korotkov , Daniel Gustafsson , Kyotaro Horiguchi , pgsql-hackers mailing list Subject: Re: MultiXact\SLRU buffers configuration Message-ID: <202408221436.o6girevg72sx@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-Aug-22, Michael Paquier wrote: > On Wed, Aug 21, 2024 at 01:55:06PM -0400, Alvaro Herrera wrote: > > Also, maybe it'd make sense for stats to be globally enabled, and that > > only the tests that require it would disable them? (It's probably easy > > enough to have a value "injection_points.stats=auto" which means, if the > > module is loaded in shared_preload_libraries them set stats on, > > otherwise turn them off.) > > I'm not sure that we need to get down to that until somebody has a > case where they want to rely on stats of injection points for their > stuff. At this stage, I only want the stats to be enabled to provide > automated checks for the custom pgstats APIs, so disabling it by > default and enabling it only in the stats test of the module > injection_points sounds kind of enough to me for now. Oh! I thought the stats were useful by themselves. That not being the case, I agree with simplifying; and the other ways to enhance this point might not be necessary for now. > > Or give the _LOAD() macro a boolean argument to > > indicate whether to collect stats for that injection point or not. > > Sticking some knowledge about the stats in the backend part of > injection points does not sound like a good idea to me. You could flip this around: have the bool be for "this injection point is going to be invoked inside a critical section". Then core code just needs to tell the injection points module what core code does, and it's injection_points that decides what to do with that information. -- Álvaro Herrera Breisgau, Deutschland — https://www.EnterpriseDB.com/ "Crear es tan difícil como ser libre" (Elsa Triolet)