pgsql: Use correct type for pq_mq_parallel_leader_proc_number variable - Mailing list pgsql-committers

From Heikki Linnakangas
Subject pgsql: Use correct type for pq_mq_parallel_leader_proc_number variable
Date
Msg-id E1sTGpb-001jUE-SC@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Use correct type for pq_mq_parallel_leader_proc_number variable

It's a ProcNumber, not a process id. Both are integers, so it's
harmless, but clearly wrong. It's been wrong since forever, the
mistake has survived through a couple of refactorings already.

Spotted-by: Thomas Munro
Discussion: https://www.postgresql.org/message-id/CA+hUKGKPTLSGMyE4Brin-osY8omPLNXmVWDMfrRABLp=6QrR_Q@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/91651347bae1026afefc648ff939e286878c1cf3

Modified Files
--------------
src/backend/libpq/pqmq.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)


pgsql-committers by date:

Previous
From: Heikki Linnakangas
Date:
Subject: pgsql: Use atomics to avoid locking in InjectionPointRun()
Next
From: Heikki Linnakangas
Date:
Subject: Re: pgsql: Replace BackendIds with 0-based ProcNumbers