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 1shIBF-00FsBJ-R5 for pgsql-hackers@arkaria.postgresql.org; Fri, 23 Aug 2024 00:29:30 +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 1shIBD-007Klv-3k for pgsql-hackers@arkaria.postgresql.org; Fri, 23 Aug 2024 00:29:27 +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 1shIBC-007Kln-BR for pgsql-hackers@lists.postgresql.org; Fri, 23 Aug 2024 00:29:27 +0000 Received: from fhigh4-smtp.messagingengine.com ([103.168.172.155]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1shIBA-000yqX-Da for pgsql-hackers@postgresql.org; Fri, 23 Aug 2024 00:29:25 +0000 Received: from phl-compute-02.internal (phl-compute-02.nyi.internal [10.202.2.42]) by mailfhigh.nyi.internal (Postfix) with ESMTP id 596751150A05; Thu, 22 Aug 2024 20:29:23 -0400 (EDT) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-02.internal (MEProxy); Thu, 22 Aug 2024 20:29:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; 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=fm1; t=1724372963; x=1724459363; bh=rQBL9RsOLZ mdKCOGLC/9cOI05IhmxXOs5Ku80iAci74=; b=E1LzZqrxr5cA4rSYksDs0YZSH/ 2EoWpEEdjDDRv5oEaro+r2nRewcdIbNTxbMEkX4xt3P35RTZ/VvUFW/O8R7+Q0uP Szc1a7O5VeHycLId8gp7x1+q2qVilLRID/Ne2/lXT3elVmDuph/sYyqxeiL81BtU CfJynx3APyWl25xmxa+JTVFbJOuVouHea/Rasb1KjXhmgyI2n3JPj7+cDVN+x2fP X5f571QfI0uFZvaM4tYBT8XSILYkMUR7To3DDm3xB4b4BXqqOgws/UvAhNNUzBPN EwUR4OSdMnFM1E5gnhQbokf/mpiH+zTLT0egJ/zoYcOHuh9ScOWGRxR6fVtQ== 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-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; t=1724372963; x=1724459363; bh=rQBL9RsOLZmdKCOGLC/9cOI05Ihm xXOs5Ku80iAci74=; b=FbPEjGfMoWTZJLHJM/zl+z9e8c2S0xi5W/8pafXKHXLP CQi7hFfrsfUBz2kBYYkwz++erknf5Ooxl1Awz3RzNXjOyDBrbgMatv42STHQzAiU SBoQsuBr3G0a2ZN1T4fR6lmBJlpdIkEokOx/Bhe5xv+ruMW8Yg5+3JD0X75HQoHz 2poH316uMTIbQ74x0wnbOZF7ogrR8zOCtdrOycWKAHMwNIFWVc4Mnuz0SmNhWD4K Gq3gaePtBRWG/189RN6ON5Gz2/lKpwbjn5OzJ6NcalGKHrmyNj39GeLemfES/YQW B+jrqktVS67x/r9fNp6exyEflo4u2+btZnsHLIiikQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddruddvuddgfeehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnh htshculddquddttddmnegfrhhlucfvnfffucdljedtmdenucfjughrpeffhffvvefukfhf gggtuggjsehgtderredttddvnecuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruc eomhhitghhrggvlhesphgrqhhuihgvrhdrgiihiieqnecuggftrfgrthhtvghrnhepteel ieefudffhffhtdetleeggeegfffhkeeuveetiefgudduvedutefggeeivdejnecuvehluh hsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepmhhitghhrggvlhes phgrqhhuihgvrhdrgiihiidpnhgspghrtghpthhtohepuddvpdhmohguvgepshhmthhpoh huthdprhgtphhtthhopegrlhhvhhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorhhgpdhr tghpthhtohepgiegmhhmmheshigrnhguvgigqdhtvggrmhdrrhhupdhrtghpthhtohepvh highhnvghshhdvudesghhmrghilhdrtghomhdprhgtphhtthhopegrmhgsohhrohguihhn keeisehgmhgrihhlrdgtohhmpdhrtghpthhtohephidrshhokhholhhovhesphhoshhtgh hrvghsphhrohdrrhhupdhrtghpthhtoheprghnughrvghssegrnhgrrhgriigvlhdruggv pdhrtghpthhtohepthhhohhmrghsrdhmuhhnrhhosehgmhgrihhlrdgtohhmpdhrtghpth htohepghhilhhlvghssegurghrohhlugdrnhgvthdprhgtphhtthhopegrvghkohhrohht khhovhesghhmrghilhdrtghomh X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 22 Aug 2024 20:29:18 -0400 (EDT) Date: Fri, 23 Aug 2024 09:29:13 +0900 From: Michael Paquier To: Alvaro Herrera 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: References: <202408221436.o6girevg72sx@alvherre.pgsql> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="naO6LMpIeJUw6V/l" Content-Disposition: inline In-Reply-To: <202408221436.o6girevg72sx@alvherre.pgsql> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --naO6LMpIeJUw6V/l Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Aug 22, 2024 at 10:36:38AM -0400, Alvaro Herrera wrote: > On 2024-Aug-22, Michael Paquier wrote: >> 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. >=20 > Oh! I thought the stats were useful by themselves. Yep, currently they're not, but I don't want to discard that they'll never be, either. Perhaps there would be a case where somebody would like to run a callback N times and trigger a condition? That's something where the stats could be useful, but I don't have a specific=20 case for that now. I'm just imagining possibilities. > That not being the case, I agree with simplifying; and the other > ways to enhance this point might not be necessary for now. Okay. >> Sticking some knowledge about the stats in the backend part of >> injection points does not sound like a good idea to me. >=20 > 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. Hmm. We could do that, but I'm not really on board with anything that adds more code footprint into the backend. For this one, this is even information specific to the code path where the injection point is added. -- Michael --naO6LMpIeJUw6V/l Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmbH19kACgkQnvQgOdby QH0bHBAAmG7yfouPcsr+9xa7+Z4JZH+YFgdWE8k8m291kG0GzWQkcX22VAlJlsB+ yWAK8WgMeN7MdeLWbz7uYatzXzQuCq2VDZGPEKQc/ldrW18HOYhhJaS9PScWzvoc bbJ6oQkNYzc1mYcmhl8uUXB1NOxEsixZsASwsv784FfKdv3KFYIOa25tJK3oCJOR +lcfJ2U1mjgcl+F6tL+GdSLU6qVpDNZAWhman8pZVJvx9xKQhqaSQ44pChm2y1El pTUHXQtem69WzoyeGSDqhpOM0xI9ixW/JkODhvcfgHkPqGiLajelRX/Fsv/Z85WM CXH4RzCuu0qBU3sSeNW1K7bKMwGk07d8FiYZreJtyXi86oi0VG4uTDP2lIoJtGQB wW/vG7TuFvCKWjOvmpjUIiO9SyzbJDXGffCbUHU+vz/hkwZzQHL18nBdIZF/AGMI 8q3fG5ZXAxxXx7oo5y6d425BP/tf5Luf6YVVZoK3iByQWAM0qRrvOsfXXWsT8cIX hwirP/dRQcFAn6xxh3dTvy7+tsfsUnoy8p4FUaGpH0UBYt4HkNrcddtn6auuyCoL LbIq0GVJVTzrGY6UqsIcuKvEoDk5oN4tIEp3tNuSS+cj80apMQCakkL99YCsu9qZ nnSSRA7QnnECR6ge/S0RYh1Un+s0Zczb+KoV4CGqMWuubkcKkz4= =ncvw -----END PGP SIGNATURE----- --naO6LMpIeJUw6V/l--