Avoid recalculating pgprocno in ProcArrayAdd()
Avoid recalculating pgprocno in ProcArrayAdd()
Hi hackers, I have fixed the issue mentioned in the subject. This was introduced in commit 28f3915b7. -- Best regards, Shinya Kato NTT OSS Center
Re: Avoid recalculating pgprocno in ProcArrayAdd()
От:
Chao Li <li.evan.chao@gmail.com>
Дата:
> On Jan 22, 2026, at 13:34, Shinya Kato wrote:
>
> Hi hackers,
>
> I have fixed the issue mentioned in the subject. This was introduced
> in commit 28f3915b7.
>
> --
> Best regards,
> Shinya Kato
> NTT OSS Center
>
LGTM. This is not correctness fix.
```
void
ProcArrayAdd(PGPROC *proc)
{
// GetNumberFromPGProc(proc) has been stored in a local variable
int pgprocno = GetNumberFromPGProc(proc);
// Later, the local variable should be used. This patch changes GetNumberFromPGProc(proc) to pgprocno here.
arrayP->pgprocnos[index] = GetNumberFromPGProc(proc);
```
Best regards,
--
Chao Li (Evan)
HighGo Software Co., Ltd.
https://www.highgo.com/
Re: Avoid recalculating pgprocno in ProcArrayAdd()
On Thu, Jan 22, 2026 at 2:58 PM Chao Li wrote: > > > > LGTM. This is not correctness fix. 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. -- Best regards, Shinya Kato NTT OSS Center
Re: Avoid recalculating pgprocno in ProcArrayAdd()
От:
Shinya Kato <shinya11.kato@gmail.com>
Дата:
On Thu, Feb 12, 2026 at 10:41 AM Shinya Kato 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. -- Best regards, Shinya Kato NTT OSS Center
Re: Avoid recalculating pgprocno in ProcArrayAdd()
От:
solai v <solai.cdac@gmail.com>
Дата:
Hi all, On Wed, Jul 1, 2026 at 4:24 PM Shinya Kato wrote: > > On Thu, Feb 12, 2026 at 10:41 AM Shinya Kato 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
Re: Avoid recalculating pgprocno in ProcArrayAdd()
От:
Shinya Kato <shinya11.kato@gmail.com>
Дата:
Вложения:
On Mon, Aug 10, 2026 at 10:48 PM Pierre Forstmann wrote: > Test Summary Report > ------------------- > t/006_logical_decoding.pl (Wstat: 7424 (exited 29) Tests: 0 Failed: 0) > Non-zero exit status: 29 > t/010_logical_decoding_timelines.pl (Wstat: 7424 (exited 29) Tests: 0 Failed: 0) > Non-zero exit status: 29 > t/013_crash_restart.pl (Wstat: 65280 (exited 255) Tests: 0 Failed: 0) > Non-zero exit status: 255 > Parse errors: No plan found in TAP output > > What should I do ? Thank you for testing the patch. These failures look unrelated to the patch. The test_decoding failures in 006 and 010 are because contrib is not present in your install prefix. installcheck-world runs the TAP tests against the installed tree, so "make install" alone is not enough. Please run "make install-world" (or at least "make -C contrib install") and retry. -- Shinya Kato NTT OSS Center