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 1s4DdM-001oRB-1o for pgsql-hackers@arkaria.postgresql.org; Tue, 07 May 2024 05:44:59 +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 1s4DdI-00124m-Oq for pgsql-hackers@arkaria.postgresql.org; Tue, 07 May 2024 05:44:57 +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 1s4DdI-00124e-DP for pgsql-hackers@lists.postgresql.org; Tue, 07 May 2024 05:44:57 +0000 Received: from mail-ot1-x329.google.com ([2607:f8b0:4864:20::329]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1s4DdG-001pUc-Bd for pgsql-hackers@postgresql.org; Tue, 07 May 2024 05:44:55 +0000 Received: by mail-ot1-x329.google.com with SMTP id 46e09a7af769-6f054c567e2so1252843a34.2 for ; Mon, 06 May 2024 22:44:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=neon.tech; s=google; t=1715060693; x=1715665493; darn=postgresql.org; h=in-reply-to:references:to:subject:cc:from:message-id:date :content-transfer-encoding:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=9bVAhKLCKakBXbc4RHGU86Ksx+YHxRwgMOUZaNL3ZLk=; b=SZaHpD8F2jB0hAjbGN4nWrbtJUflCC/NWJY+Tr5sCRdQl/IE4pM+kIG2koM7a+uE9F TJ1sfrHvQC3IYzspf30KACxoe3TjlNBouWwCUi3GPbfA//I5Z71oHd/HKD0H5deF0ehH 4w36emE8p9LJYxkuD7tsmuDIg/Yh3e5dHpPts= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715060693; x=1715665493; h=in-reply-to:references:to:subject:cc:from:message-id:date :content-transfer-encoding:mime-version:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=9bVAhKLCKakBXbc4RHGU86Ksx+YHxRwgMOUZaNL3ZLk=; b=pg99mjrECVsCVZ56bod/QTKHEQ+UcleTUbxVnjCDpA6+4zqPEym7vbtL/qTl35J8gd 6nFh4ToRn+sI3DdBFP5WDTqhDTIyQj+OnV+3pcKtf20C2d1xFxekHAQNf5EGghRHRR0z WQVBKlmMBp35XgWFTd20/U7zqgE6KWjH7j6uSQM7A6sF8JBtbzOj4l4Qv+H2g0fGhQTK M2Awfvkak4YQhN0n0tPN5eoUWUFLbkdLDLMqs4wHBmqSN7NBcifE99ybLKsfzUcVpHfq tSBZqdm2kGndEmij8kAYxwRi81oAke7w/UogxEb09n0S0prcK0B2QGmCP0uMM0r/0Tam 1eAg== X-Gm-Message-State: AOJu0Yy8z04YNMiOB/9VciAoryAuJ74wCg3vrs5ewm6DHprQDZdKpyu1 yjY0u5OFc07AHq+c19MfjaZtDJbOce2QKGM2mKDNyb4mkoQeZQWfYrMpVJQUcvtqwCNc87eWY3a qGGdzBw== X-Google-Smtp-Source: AGHT+IETKzdvjvLoULBnOaDCRQ27E/S5K0mCHYlnQ78iQlLIOW1N4QTfI1uO0H3I5etnr/jMkQw24Q== X-Received: by 2002:a05:6870:b01f:b0:22a:4c05:2efd with SMTP id y31-20020a056870b01f00b0022a4c052efdmr15286635oae.10.1715060692824; Mon, 06 May 2024 22:44:52 -0700 (PDT) Received: from localhost ([2607:fb90:e690:15c7:3996:e070:71ee:42fb]) by smtp.gmail.com with ESMTPSA id l11-20020a0568302b0b00b006ee40b4386fsm2336040otv.5.2024.05.06.22.44.52 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 06 May 2024 22:44:52 -0700 (PDT) Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8; format=Flowed Date: Tue, 07 May 2024 00:44:51 -0500 Message-Id: From: "Tristan Partin" Cc: "pgsql-hackers" , "Andres Freund" Subject: Re: Use pgstat_kind_infos to read fixed shared stats structs To: "Michael Paquier" X-Mailer: aerc 0.17.0-122-g7b4c8f67eb5f References: In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Mon May 6, 2024 at 9:50 PM CDT, Michael Paquier wrote: > 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. Thanks for the feedback Michael. Should I just throw the patch in the=20 next commitfest so it doesn't get left behind? --=20 Tristan Partin Neon (https://neon.tech)