Re: pgsql: Replace BackendIds with 0-based ProcNumbers

From: Thomas Munro <thomas(dot)munro(at)gmail(dot)com>
To: Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi>
Cc: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: Re: pgsql: Replace BackendIds with 0-based ProcNumbers
Date: 2024-07-09 18:10:09
Message-ID: CA+hUKGKPTLSGMyE4Brin-osY8omPLNXmVWDMfrRABLp=6QrR_Q@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

--- a/src/backend/libpq/pqmq.c
+++ b/src/backend/libpq/pqmq.c
@@ -26,7 +26,7 @@
static shm_mq_handle *pq_mq_handle;
static bool pq_mq_busy = false;
static pid_t pq_mq_parallel_leader_pid = 0;
-static pid_t pq_mq_parallel_leader_backend_id = InvalidBackendId;
+static pid_t pq_mq_parallel_leader_proc_number = INVALID_PROC_NUMBER;

I guess it was a historical mistake that this variable of type pid_t
instead of BackendId, but now it should be ProcNumber?

In response to

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2024-07-09 19:01:21 pgsql: Suppress "chunk is not well balanced" errors from libxml2.
Previous Message Nathan Bossart 2024-07-09 18:05:26 pgsql: Introduce pg_signal_autovacuum_worker.