Re: Avoid recalculating pgprocno in ProcArrayAdd() - Mailing list pgsql-hackers

From solai v
Subject Re: Avoid recalculating pgprocno in ProcArrayAdd()
Date
Msg-id CAF0whuc=pXqiSBS8nbCpY=1_mVSEM9rgHe7gYsj5ROemZ7GChw@mail.gmail.com
Whole thread
In response to Re: Avoid recalculating pgprocno in ProcArrayAdd()  (Shinya Kato <shinya11.kato@gmail.com>)
List pgsql-hackers
Hi all,

On Wed, Jul 1, 2026 at 4:24 PM Shinya Kato <shinya11.kato@gmail.com> wrote:
>
> On Thu, Feb 12, 2026 at 10:41 AM Shinya Kato <shinya11.kato@gmail.com> wrote:
> > Thank you for the review! I've updated the commit message and I'll
> > mark it as Ready for Committer if there are no objections.
>
> I've marked it as Ready for committer.
>

I reviewed the patch and confirmed that it replaces the redundant call
to GetNumberFromPGProc(proc) with the pre-computed pgprocno. The
change does not alter any behavior and seems to be an efficient way of
code cleanup. Patch build successfully and regression tests passed.
The patch looks good to me.

Regards,
Solai



pgsql-hackers by date:

Previous
From: Michael Paquier
Date:
Subject: Re: Refactor function pg_get_multixact_stats (src/backend/utils/adt/multixactfuncs.c)
Next
From: Ranier Vilela
Date:
Subject: Re: Refactor function pg_get_multixact_stats (src/backend/utils/adt/multixactfuncs.c)