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 1vSUqU-00Fn6A-1K for pgsql-hackers@arkaria.postgresql.org; Mon, 08 Dec 2025 06:35:42 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vSUqS-00F6bF-30 for pgsql-hackers@arkaria.postgresql.org; Mon, 08 Dec 2025 06:35:41 +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.96) (envelope-from ) id 1vSUqS-00F6b6-0d for pgsql-hackers@lists.postgresql.org; Mon, 08 Dec 2025 06:35:40 +0000 Received: from fhigh-a5-smtp.messagingengine.com ([103.168.172.156]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vSUqP-003i50-2f for pgsql-hackers@lists.postgresql.org; Mon, 08 Dec 2025 06:35:39 +0000 Received: from phl-compute-02.internal (phl-compute-02.internal [10.202.2.42]) by mailfhigh.phl.internal (Postfix) with ESMTP id 731D614000CA; Mon, 8 Dec 2025 01:35:37 -0500 (EST) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-02.internal (MEProxy); Mon, 08 Dec 2025 01:35:37 -0500 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=1765175737; x=1765262137; bh=IaFoIjvm1Q +g4/0N5gloanT5iXVZ3h0WXTCPqgt+qGM=; b=RyssZ6YnChzCQB87LQ9xG8nOko di4KvNy40FKGP7IpImpri4FL9dqotTPnP6FalBcFACQMcGqTahJGBLZjKBRigsEk nAI+rGxFnCJ2s37sGIeu5t0ZycbD7Sb11Ks1gfcyiIQM9vZlsli2cfh1fgxmRVfW 9w89fYOFl94RHTgxm4bIrjSDLql/mZyC0OGXI3kxIE/3vDHoGGSZ1I+cxIhYAvsZ Yyzo2IcC841Z20rKjEnKCynPWOmm60j/W29Ac52iunEpTmxOPU+OX/R5Wkay50Pb 5r6KclqqKPp2Mp0DrqbwZxQEWDmvA0w2E8HqULOJ7eyVF6d9J58p6JMXHC3g== 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-sender:x-me-sender:x-sasl-enc; s=fm1; t= 1765175737; x=1765262137; bh=IaFoIjvm1Q+g4/0N5gloanT5iXVZ3h0WXTC Pqgt+qGM=; b=N9P6tLWfgjw4CMAHHbuyhUjRXsq2b5YFop7xGib3Zbmb7gwkFpu Zcbx/menUMSB61PJeG1F0pr+e5njP37UvioaFv1ctiWNCUIGmcYJJa3fBNVFbwUw j6Wqq4vNoahMs5NCQAdjAfRWXu1AFwHn7ermYfcn562IhnHcZfUO/0wXHn59OPDs 8gbgZmvJocbysVIqcXzQOoGu1wnT02gcnU3iCLS5D260mVWidab6ZETS9Qj1PqSo sUDoC++3md2535usWkDS8prI5ynim68ZIwmsOdplzTdow9ZabzwHDkrikbMpzAwf ky395WMkdgdiGY5fc/Mf9Iy1rge0sxrzkKQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgdduheelkecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr ihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfghrlh cuvffnffculdejtddmnecujfgurhepfffhvfevuffkfhggtggujgesghdtreertddtvden ucfhrhhomhepofhitghhrggvlhcurfgrqhhuihgvrhcuoehmihgthhgrvghlsehprghquh hivghrrdighiiiqeenucggtffrrghtthgvrhhnpeetleeifedufffhhfdtteelgeeggeff hfekueevteeigfduudevudetgfegiedvjeenucevlhhushhtvghrufhiiigvpedtnecurf grrhgrmhepmhgrihhlfhhrohhmpehmihgthhgrvghlsehprghquhhivghrrdighiiipdhn sggprhgtphhtthhopeefpdhmohguvgepshhmthhpohhuthdprhgtphhtthhopehsrghmih hmshgvihhhsehgmhgrihhlrdgtohhmpdhrtghpthhtoheplhhirdgvvhgrnhdrtghhrgho sehgmhgrihhlrdgtohhmpdhrtghpthhtohepphhgshhqlhdqhhgrtghkvghrsheslhhish htshdrphhoshhtghhrvghsqhhlrdhorhhg X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 8 Dec 2025 01:35:35 -0500 (EST) Date: Mon, 8 Dec 2025 15:35:23 +0900 From: Michael Paquier To: Sami Imseih Cc: Chao Li , PostgreSQL Hackers Subject: Re: [Proposal] Adding callback support for custom statistics kinds Message-ID: References: <4FEEC2B8-D9CF-4BD0-AA7E-44CE3E27ADD8@gmail.com> <5EC13E39-B41E-464A-B382-0ACEB18A15BB@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="c6Wqs503Iol2NuCz" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --c6Wqs503Iol2NuCz Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Dec 05, 2025 at 07:27:50PM -0600, Sami Imseih wrote: > Attached is the new test module that replaces the custom statistics > tests currently in the injection points tests. Under test_custom_stats, t= here > are two separate modules: one for variable-amount stats and one for > fixed-amount stats. With this, we can completely remove the > stats-related tests and supporting code under > src/test/modules/injection_points/. Yes, thanks. Structurally, this is better and more flexible than what we had originally, and I have noticed that you have copied the original files while adding more comments and renaming a bit things: the structure of the functions was exactly the same. Anyway, I have worked on that for a good portion of the day, splitting the module drop and the new module into two commits, and applied the result after tweaking quite a few things in terms of names and comments (no pgstat_*, a bit more "Var" and "Fixed", etc.), applying a much more consistent set of names across the board for the functions and the structures. This cleanup part is moved out of the way now, so that you ease the introduction of the next pieces you are proposing.=20 The tests for the reset of fixed-sized stats was a nice addition, indeed. If you have more areas that you think could be improved, ideas are of course welcome. -- Michael --c6Wqs503Iol2NuCz Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmk2casACgkQnvQgOdby QH2lJhAAqhG+QbDS1JSrHXAsNdhFsb5uS6avb0UameFZFRrniVSVNJhtMFf/7Fh3 ngDgo4VlAQtJbhTYvwBdtbCKhWBDlQ5bm0YRph9Z/y7OgMzO9H8D9i6mb7DHYp9y s9rCk92AUluXzdilzpnH4W+Vu8IRfxeQ1fSuGHol0Osz/GqU0eYN9f0/wnicRzCv QN7B93YuL1ivOk9PhWj+2QXnx/x0k7ti7575dHgvdN5S2KUAA/HCFi+W6XI/oEEQ eI2bhkmtdtZfh5njBAtza5FimqYQF+A9nMGeVJKiBKyecHniEJ+UFPR0qFraiVZO eAcM0t7Px4YErvAYioDuSJJFcfOpg/7ZYqBosM5OgaqXyYsmss0TrSZD62/BFa0K BBr8aSVujF1Jjj23cMx5Zts6qo7RQD0CG+2yHyolH1Vx+55/UwkeoZaqPoTffo3D 0k3r7S296L7V91FI7rau0e9REM1RxRZ8r1ySgH1q3Uvs2OgrdWWdFHLqGbWt+HdN zbpLM5oAzGE3EsBPrYleXlQI2XoZe8Zjyy+jdf3HWHYDCS/0R49CINDstP7bVOD4 YgRwA6TZNAmzX6STLg+0HCSj7fbKwOVFP31lBj0DUfWN2y7CeWbddw2YuXjZ/6PZ o40Rzx5HCw+wFZ04cuiKDq0ZUK07hXcJ59xVoBB2iBSjQbbXEEA= =lnnz -----END PGP SIGNATURE----- --c6Wqs503Iol2NuCz--