Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nHrA1-00040r-M8 for pgsql-hackers@arkaria.postgresql.org; Wed, 09 Feb 2022 17:53:45 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nHrA0-0005TO-GT for pgsql-hackers@arkaria.postgresql.org; Wed, 09 Feb 2022 17:53:44 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nHrA0-0005TE-4F for pgsql-hackers@lists.postgresql.org; Wed, 09 Feb 2022 17:53:44 +0000 Received: from mail-pj1-x1030.google.com ([2607:f8b0:4864:20::1030]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1nHr9x-0001qB-H7 for pgsql-hackers@lists.postgresql.org; Wed, 09 Feb 2022 17:53:42 +0000 Received: by mail-pj1-x1030.google.com with SMTP id m7so2846972pjk.0 for ; Wed, 09 Feb 2022 09:53:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=FPjZwbUqA0Ax2veqRz3fk/bAHBU1dFp0J5Iav446y5g=; b=bhXAQs25s1PVyCnM+TNIpQQWe9A6seUEdQv0GdmNEfhxv6EKwLPCufkbfcwHcrWoFO WU7RY14wZCkeIqyq4CnmuMns8zwV2vh/Bfp8AZYSn1WhWMEmsatsmpof6OyUdxoVk4tm +9gm9UprKDnehGXZwvZPBsLgMUNDHAXlXaKSiwvBY7cPjwwxf9HDQXiAOT68oam24ucf Kr9EFjPiqaO/pq41MYWUTUZjS0z4xt7330Qchby4Z6AdOdGObcHGtJZXzYm285k+edRl x2PQsGp3oIWNCK/pqZBPbyDsyEznd9PJ6l0FMNVrxAy1W+PeA/rH9I36k637LPFCskf8 9Bzw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=FPjZwbUqA0Ax2veqRz3fk/bAHBU1dFp0J5Iav446y5g=; b=i9D0IFRzTQC3dX2zxed2+xj+cTS7zUYQEcg4AoorqJW9xd0xaOC0OdrsmnRbVpXyu/ nL3bTGw43ee+iXrx9MLd3+VMAq/YK6Xsp7+Sk+PUs/Hn7WbezkA55jXM5tzZBQyfCexM vDlK7SShjrCuIqDao1gDbIth7xz43Y0v9v+NRK5qY5oUSJequne14CEh8zwvjl+Q23Ha lDw9HNxXNityMPMNhOL7k2Mv+JCnQ9JtfGYqlqg494Wrq0c96O9COUeF+ZyGa2nSNlFP mp4BmQ8WxI48pj1xHdlBQAZOawSuj1c7ILnPxSIB2eHFoWWvwCOgDi5oExhClJABSye0 JyQw== X-Gm-Message-State: AOAM533YstIzADbzn1p2yg7Y2/kNz/ftPVVRkjUdCREn3SEs3wZtJaYE flUS5k/ZYfE3+daah3Blna8= X-Google-Smtp-Source: ABdhPJx+qqClnEDAQ+tRbtxMtkYVwG4t4xw2/1D0CRUKTT4Tm4wiTub+YtBFFy5k2WsHKgwPbN+7DA== X-Received: by 2002:a17:902:7e06:: with SMTP id b6mr3258411plm.58.1644429220347; Wed, 09 Feb 2022 09:53:40 -0800 (PST) Received: from nathanxps13 ([50.54.155.70]) by smtp.gmail.com with ESMTPSA id f3sm20815018pfe.43.2022.02.09.09.53.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Feb 2022 09:53:39 -0800 (PST) Date: Wed, 9 Feb 2022 09:53:38 -0800 From: Nathan Bossart To: Robert Haas Cc: Michael Paquier , "Bossart, Nathan" , Fujii Masao , "wangsh.fnst@fujitsu.com" , Andres Freund , Bharath Rupireddy , Greg Sabino Mullane , Tom Lane , "pgsql-hackers@lists.postgresql.org" Subject: Re: make MaxBackends available in _PG_init Message-ID: <20220209175338.GB1627503@nathanxps13> References: <20220204055457.GA1335041@nathanxps13> <20220204201349.GA1534137@nathanxps13> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="82I3+IH0IqGh5yIs" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --82I3+IH0IqGh5yIs Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, Feb 09, 2022 at 12:31:16PM -0500, Robert Haas wrote: > On Wed, Feb 9, 2022 at 12:18 AM Michael Paquier wrote: >> Okay, I'd rather apply the same rule everywhere for consistency, then, >> like in the attached. That's minimal, still. > > That's fine with me. In the interest of full disclosure, I did kind of > notice this when reviewing the patch, though perhaps not every > instance, and just decided that it didn't seem important enough to > worry about. I'm totally OK with you thinking otherwise, though, > especially since you also volunteered to do the work thus generated. > :-) This is fine with me as well. I only left these out because the extra variable felt unnecessary to me for these functions. While you are at it, would you mind fixing the misspelling of OldestVisibleMXactId in multixact.c (as per the attached)? -- Nathan Bossart Amazon Web Services: https://aws.amazon.com --82I3+IH0IqGh5yIs Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="fix_typo.patch" diff --git a/src/backend/access/transam/multixact.c b/src/backend/access/transam/multixact.c index f00c272521..6a70d49738 100644 --- a/src/backend/access/transam/multixact.c +++ b/src/backend/access/transam/multixact.c @@ -285,7 +285,7 @@ typedef struct MultiXactStateData * Pointers to the state data in shared memory * * The index of the last element of the OldestMemberMXactId and - * OldestVisibleMXacId arrays can be obtained with GetMaxOldestSlot(). + * OldestVisibleMXactId arrays can be obtained with GetMaxOldestSlot(). */ static MultiXactStateData *MultiXactState; static MultiXactId *OldestMemberMXactId; --82I3+IH0IqGh5yIs--