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 1tLWwV-00FNDD-8d for pgsql-hackers@arkaria.postgresql.org; Thu, 12 Dec 2024 00:20:35 +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 1tLWwS-004Eus-Pu for pgsql-hackers@arkaria.postgresql.org; Thu, 12 Dec 2024 00:20:34 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tLWwS-004Euk-2g for pgsql-hackers@lists.postgresql.org; Thu, 12 Dec 2024 00:20:33 +0000 Received: from fout-a4-smtp.messagingengine.com ([103.168.172.147]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tLWwQ-002MpA-HT for pgsql-hackers@lists.postgresql.org; Thu, 12 Dec 2024 00:20:32 +0000 Received: from phl-compute-06.internal (phl-compute-06.phl.internal [10.202.2.46]) by mailfout.phl.internal (Postfix) with ESMTP id A36841380223; Wed, 11 Dec 2024 19:20:29 -0500 (EST) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-06.internal (MEProxy); Wed, 11 Dec 2024 19:20:29 -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=1733962829; x=1734049229; bh=L6NVdX+g9d oozB2hFZn8v7BSZ8vA8H4vj3cQj2RZmy4=; b=Pp6+JqT+TLCyoDwBy8b/tyokr7 85+5Qxu7NPZpxPwKrYstyWu3WHCg0Kzvb/Lfs7zpwC6bCVC6Ce5IiaLpZ8HZoEzX snH3FI7El2TsF8Kc1YfBcdQbEilJez7E1Yv+5fRnYQwUwE9mDAq3lnwwFAzVqqp6 yw4q4GIkDJhpf3SszPVjIFq9x6Np3VOX6P2qIqvuesgWPDner6XjCVkniBq1B6ro 9VaHlDuxRTqFF+zAXmoi7eYZ3frWNrWCpze3SucjdbOaDZSM7kMMThYomm7nPEjR tkBGyG7rykeB/FekmKRdnePucu3PWeezaaXSBFC+EkjojWOUz1GdzPwl+0Pw== 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= 1733962829; x=1734049229; bh=L6NVdX+g9doozB2hFZn8v7BSZ8vA8H4vj3c Qj2RZmy4=; b=tXTawUEoZsGL8A21M1e3Tn5llbSn9bnzBouckKcGKrA/CVpMpND zOxNjFCoydYnZeoNQ+oPQ3EP2kx9QmlXRCIy6k9dHpNPRhZnMNQGvgVUHJ1ztKhI tgEpGaCX1BgpIZK5jwSYKqgxe/aqLbDhqQG9TNKkuE2hMJLO6BDh3B6LKUMGC52l 7j8gW3R4H2WBIwspmiNfvJJNOSyLY+HnaJUEvO+TQ2XzE5x5Z55BHECO6i7W8dt1 GvNFdCDZF4FnReCozGrIjizvAqcpUG4Lm17+mG8CVGBgjfE1Wlipz+/vTtUHWmex OLFFYo1VmvKwwnflGa6KZqJKtCw6cQImRtQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrkedugddvudcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdpuffr tefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecufghrlhcuvffnffculdejtd dmnecujfgurhepfffhvfevuffkfhggtggujgesghdtreertddtvdenucfhrhhomhepofhi tghhrggvlhcurfgrqhhuihgvrhcuoehmihgthhgrvghlsehprghquhhivghrrdighiiiqe enucggtffrrghtthgvrhhnpeetleeifedufffhhfdtteelgeeggeffhfekueevteeigfdu udevudetgfegiedvjeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrih hlfhhrohhmpehmihgthhgrvghlsehprghquhhivghrrdighiiipdhnsggprhgtphhtthho pedvpdhmohguvgepshhmthhpohhuthdprhgtphhtthhopegsvghrthhrrghnuggurhhouh hvohhtrdhpghesghhmrghilhdrtghomhdprhgtphhtthhopehpghhsqhhlqdhhrggtkhgv rhhssehlihhsthhsrdhpohhsthhgrhgvshhqlhdrohhrgh X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 11 Dec 2024 19:20:27 -0500 (EST) Date: Thu, 12 Dec 2024 09:20:15 +0900 From: Michael Paquier To: Bertrand Drouvot Cc: pgsql-hackers@lists.postgresql.org Subject: Re: Fix comments related to pending statistics Message-ID: References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="l9VyQ8M4Vcft45m+" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --l9VyQ8M4Vcft45m+ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Dec 11, 2024 at 07:32:38AM +0000, Bertrand Drouvot wrote: > On Wed, Dec 11, 2024 at 02:56:08PM +0900, Michael Paquier wrote: >> Your suggestion does not look completely right to me. There is >> nothing preventing us from using something else than event counters >> since we don't use memcpy() and there is no comparison work, no? It >> seems to me that we could remove the entire sentence instead. >=20 > Do you mean also remove the comments in pgstat_function_flush_cb() and > pgstat_subscription_flush_cb()? Those comments look fine to me given > the places where those pending entries are created meaning in > pgstat_init_function_usage() for the functions and pgstat_report_subscrip= tion_error() > and pgstat_report_subscription_conflict() for the subscriptions. My apologies for the confusion. I see no problem with the existing comments in pgstat_subscription_flush_cb() and pgstat_function_flush_cb() because they still apply. The comment in pgstat.h=20 The only thing we should do here is to remove the comment for PgStat_FunctionCounts because we could add pointers or something else than plain counters in this structure, and fix the comment of PgStat_TableCounts in the lines of what you are suggesting. -- Michael --l9VyQ8M4Vcft45m+ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmdaLD8ACgkQnvQgOdby QH1y0xAAqjXcAKEueUKvNyFw9S3T2sex8b/HnXcdMzsx3R3fNqESYlbFrblBFBk7 NUpeW8KhoblQeI/sh9N+dSOnvb+ra4Xp2Cxvqgu/xIZ7/rbVzY+ODTWbq0fvA1sD OyNmi4+o7YzKie36zvCO+xa7gjMSECrRPxTWriEb0C6J0LQv2TCR8LYnDZapaEDO 7DF1GmQe/pKFIxcmVF9lCaFV0j4M7awTMm9Mfpup2hGpdNNRBTAt/ZHPDFDJQi4w rQzZI85f/7YCnd6q3b+oIVB718B/qBO5Wn0U9W/dtvrfMFscn+C6BYtvjKcnJFRD 5GOD9abq9DEhTQXeb+VRGiR1J9JG46EQNPHizJJ9Oce9uKpBBnfDy7H93zCIlUXm Lb6q8+T3xV1FR2rx3MsermB72P0dY2HtsFfWNkYZS44kJIv0xSqWCuR6SzxL9oEW kfW6Fti0LooqPbSc+8Tb4I9bGIMzz+YI8gmHJoLKu5rOjwbil14mo5sWwsolhuz6 ta0OYbjsHc7Hu3TIy6YAE2Q1H0Lznq3sv51EVLSSb1jyoF2mC3svyI+LnzDTQDzU PpteXQ5MP0W31HTyJlN9SVw3f54MezV5hCx0sOAqV38cvXR5IrCn382/RuPukThX UzE08kKajxUMnwvg35TDuusdMWA2XVFBJW4fsbxC6iIIyooTSow= =q4o1 -----END PGP SIGNATURE----- --l9VyQ8M4Vcft45m+--