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 1s4Auc-001NTI-IF for pgsql-hackers@arkaria.postgresql.org; Tue, 07 May 2024 02:50:39 +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 1s4AuY-00HUS5-04 for pgsql-hackers@arkaria.postgresql.org; Tue, 07 May 2024 02:50:34 +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 1s4AuW-00HURY-7j for pgsql-hackers@lists.postgresql.org; Tue, 07 May 2024 02:50:34 +0000 Received: from wfout5-smtp.messagingengine.com ([64.147.123.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 1s4AuP-001oG9-R3 for pgsql-hackers@postgresql.org; Tue, 07 May 2024 02:50:31 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailfout.west.internal (Postfix) with ESMTP id 5D0941C001A6; Mon, 6 May 2024 22:50:23 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Mon, 06 May 2024 22:50: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=fm3; t=1715050223; x=1715136623; bh=SylABeakkr QjU0YOWCQY7flC37gHXNU7cQtZZf3KYfs=; b=l6iwxuoypVhnaXOwcQ5VZfeiYy vUMzVLa/MkGxeQzEjf4zeZ7tqmU6DJpCV/ya0fRvFIcKCBxT8td3Gm+0ucNAH7S5 ArtlZFoAwd4XxkYw7Keq2uYKISfRdIh9PTHs3GG90tdCxQ4D7DNXboU5OaCc0H92 VxNszfj1aYZWkHf3U+1A/WH7hxrpbbQ78cwKw4r6qG8FQKBvwY1c8ZoKm8gk8fBd AqU5475jFNqwB2SthmMgPE4U2X7nxAOVjMLMifeg/WI5mekEukbojsKFyXOfrhSn eE2L6YtXuMmVBaO9fIOLscoNmyAdO79y5fv6rX47ZwBS9zPTHFbTvXcOftvw== 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= fm3; t=1715050223; x=1715136623; bh=SylABeakkrQjU0YOWCQY7flC37gH XNU7cQtZZf3KYfs=; b=PI7z02g60GzrZ1UhmLUoKQIfi//LLUbGl3/KobUW+PFm zM2PgO+58mBnkQqICpOKfcK+VfW2iJrCTFBc0Kt6+hjUzkb/qZAxTY1BOx2HEqBO r/bv0flZvoZuv99lLp4fvEUpcmraeSQLzPt2OYmUY04LG0kJTrBWtJYQtGqwbWyf d+k2a5AsUSOgbnAus6YlzBqmrudAM3cHK9oaLHPNPX8ojN3VZh85odES5hDDEAen ZLINHnbGNHHBKC43OKlAQBVVnexuW1n7ETfl9tpaZvpqFGTSW+Z1D0oUxyxA+Xn/ sS59fQ2SZnhA67SUs3wmDmXp9Pn80d8tSkh6leRWjA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrvddvjedgieehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne gfrhhlucfvnfffucdljedtmdenucfjughrpeffhffvvefukfhfgggtuggjsehgtderredt tddvnecuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesph grqhhuihgvrhdrgiihiieqnecuggftrfgrthhtvghrnhepteelieefudffhffhtdetleeg geegfffhkeeuveetiefgudduvedutefggeeivdejnecuvehluhhsthgvrhfuihiivgeptd enucfrrghrrghmpehmrghilhhfrhhomhepmhhitghhrggvlhesphgrqhhuihgvrhdrgiih ii X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 6 May 2024 22:50:20 -0400 (EDT) Date: Tue, 7 May 2024 11:50:05 +0900 From: Michael Paquier To: Tristan Partin Cc: pgsql-hackers , Andres Freund Subject: Re: Use pgstat_kind_infos to read fixed shared stats structs Message-ID: References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="9mTjbQht5pSxBtlh" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --9mTjbQht5pSxBtlh Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, May 06, 2024 at 02:07:53PM -0500, Tristan Partin wrote: > This was originally thought of by Andres in > 5891c7a8ed8f2d3d577e7eea34dacff12d7b6bbd. +1 because you are removing a duplication between the order of the items in PgStat_Kind and the order when these are read. I suspect that nobody would mess up with the order if adding a stats kind with a fixed number of objects, but that makes maintenance slightly easier in the long-term :) > Not a fix, per se, but it does remove a comment. Perhaps the discussion will > just lead to someone deleting the comment, and keeping the code as is. > Either way, a win :). Yup. Let's leave that as something to do for v18. -- Michael --9mTjbQht5pSxBtlh Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmY5lt0ACgkQnvQgOdby QH3eJA/+MNv1/tQDwP4R4eHIPwrJtKryJF8OuaRDJjN/5gIRqIbQDf0Kiu6zus16 /y4kSJqKl36HN8ig5nGm9ZErGwV0a1C8ZntUmm2pWDM1rQSuoFhNjBl/GrMNN2v2 ZANUqG5Zrfy8KHD7Xr6p/GAJlDmwKZgjzHrFrlbbM0A8y85wJ5C3jxUVhEL5pPvt 36nDfMf3kP3BXVT0mlqMr0Nk8fYWcWpEhC241g9VwXRrGU/mv/JNLGsu8NERqgOS 00CFUUwiLhiaN4KWRotawlOPUKXYRJWVEg8dt5Hy6bakjPNaHoJbGQ+qEqRzBAxT pMn2TV6/3ZtYxoEg2Z7+Fhs/alrMqBUYSwtWJCAZrehBStFJLymQKV+IpwvPyrgh h/YTplt5lB319Km+B/Hln3xPHqXivzana49P9sRnXrmznhNM6cMsvwh+onI2Bkpm h4uAxDCX+5bbZcnJNg1lKpXsuqjdsLEBBR1eMBPkvQ59xTkeMtv4LFM3uPtYjbit KG30nIvt0Fgb6yy81dV01v/l2fAR+mNYSWKRNb1XLmiLt11irZsKvFnaI7ufVEjV PI05EOSox+qQY54UCM0hQs0YdxlbwH+NeFrJ/s4HvScBWMQbjDNljxrVJQlvv/oL jCF2qlfrlu+2MATAQi9xpEm+zbi8VrJYYQ99hMl22k1zXpKGrBI= =0FTF -----END PGP SIGNATURE----- --9mTjbQht5pSxBtlh--