pgsql: Avoid recalculating pgprocno in ProcArrayAdd()

From: Álvaro Herrera <alvherre(at)kurilemu(dot)de>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Avoid recalculating pgprocno in ProcArrayAdd()
Date: 2026-08-12 14:53:39
Message-ID: E1wuAKo-00000000HG9-2BU8@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Avoid recalculating pgprocno in ProcArrayAdd()

The value is already stored in a local variable a few lines above.
This is just a cosmetic change.

Author: Shinya Kato <shinya11(dot)kato(at)gmail(dot)com>
Reviewed-by: Chao Li <li(dot)evan(dot)chao(at)gmail(dot)com>
Reviewed-by: solai v <solai(dot)cdac(at)gmail(dot)com>
Reviewed-by: Pierre Forstmann <pierre(dot)forstmann(at)gmail(dot)com>
Discussion: https://postgr.es/m/CAOzEurTJO2aqd9ewQmo9vjCrFUAD8Lk+raujCfK5oWoLGUP_3w@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/aaf67e4825f32d764296fabfa3a86c4da90cec16

Modified Files
--------------
src/backend/storage/ipc/procarray.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tomas Vondra 2026-08-12 15:46:49 Re: pgsql: Change wal_compression=on to the first of zstd, lz4, pglz
Previous Message Álvaro Herrera 2026-08-12 09:55:08 pgsql: Fix stale comments/signature after commit 28d534e2ae0a