pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Nathan Bossart <nathandbossart@gmail.com>
To: Robert Haas <robertmhaas@gmail.com>
Cc: Michael Paquier <michael@paquier.xyz>
Cc: Bossart, Nathan <bossartn@amazon.com>
Cc: Fujii Masao <masao.fujii@oss.nttdata.com>
Cc: wangsh.fnst@fujitsu.com <wangsh.fnst@fujitsu.com>
Cc: Andres Freund <andres@anarazel.de>
Cc: Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Cc: Greg Sabino Mullane <htamfids@gmail.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-hackers@lists.postgresql.org <pgsql-hackers@lists.postgresql.org>
Subject: Re: make MaxBackends available in _PG_init
Date: Wed, 9 Feb 2022 09:53:38 -0800
Message-ID: <20220209175338.GB1627503@nathanxps13> (raw)
In-Reply-To: <CA+TgmoZ7PWOxdCrH6J91qghxiayHJ=UGhg66k8JGd+8_vLz26g@mail.gmail.com>
References: <CA+TgmoZpeQWeWbpSdOiSVfNRW2bujwNVWdZKd7hVkyvknRwzww@mail.gmail.com>
	<20220204055457.GA1335041@nathanxps13>
	<CA+TgmoazRZ2FxEq8=keQHSazAvicq04sX-xpParY6J9+c4FfsQ@mail.gmail.com>
	<20220204201349.GA1534137@nathanxps13>
	<CA+TgmoZz8F54hcsPpu+qM=GC6Ji2zW=yMiHa+iPx4UxPq7LKaQ@mail.gmail.com>
	<CA+TgmobjLKnxpAexHe0_f5qzkMR7KbAfAFAJPfw6OtqpcAd-zQ@mail.gmail.com>
	<YgMpGZhPOjNfS7er@paquier.xyz>
	<CA+TgmoaggbnV3ThxcBnDDJiQJnOduHRCWX1=kFyKVog+ZVFcCg@mail.gmail.com>
	<YgNOhxDPadZy5q+1@paquier.xyz>
	<CA+TgmoZ7PWOxdCrH6J91qghxiayHJ=UGhg66k8JGd+8_vLz26g@mail.gmail.com>

On Wed, Feb 09, 2022 at 12:31:16PM -0500, Robert Haas wrote:
> On Wed, Feb 9, 2022 at 12:18 AM Michael Paquier <michael@paquier.xyz> 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

Attachments:

fix_typo.patch (text/x-diff, 625B) download 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;

view thread (132+ messages)  latest in thread

Message-ID: <20220209175338.GB1627503@nathanxps13>
Permalink:  ../20220209175338.GB1627503@nathanxps13/
Also on:    postgresql.org/message-id/20220209175338.GB1627503@nathanxps13

 ·  · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-hackers@postgresql.org
  Cc: nathandbossart@gmail.com, robertmhaas@gmail.com, michael@paquier.xyz, bossartn@amazon.com, masao.fujii@oss.nttdata.com, wangsh.fnst@fujitsu.com, andres@anarazel.de, bharath.rupireddyforpostgres@gmail.com, htamfids@gmail.com, tgl@sss.pgh.pa.us
  Subject: Re: make MaxBackends available in _PG_init
  In-Reply-To: <20220209175338.GB1627503@nathanxps13>
  References: <CA+TgmoZpeQWeWbpSdOiSVfNRW2bujwNVWdZKd7hVkyvknRwzww@mail.gmail.com> <20220204055457.GA1335041@nathanxps13> <CA+TgmoazRZ2FxEq8=keQHSazAvicq04sX-xpParY6J9+c4FfsQ@mail.gmail.com> <20220204201349.GA1534137@nathanxps13> <CA+TgmoZz8F54hcsPpu+qM=GC6Ji2zW=yMiHa+iPx4UxPq7LKaQ@mail.gmail.com> <CA+TgmobjLKnxpAexHe0_f5qzkMR7KbAfAFAJPfw6OtqpcAd-zQ@mail.gmail.com> <YgMpGZhPOjNfS7er@paquier.xyz> <CA+TgmoaggbnV3ThxcBnDDJiQJnOduHRCWX1=kFyKVog+ZVFcCg@mail.gmail.com> <YgNOhxDPadZy5q+1@paquier.xyz> <CA+TgmoZ7PWOxdCrH6J91qghxiayHJ=UGhg66k8JGd+8_vLz26g@mail.gmail.com> <20220209175338.GB1627503@nathanxps13>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox