public inbox for [email protected]  
help / color / mirror / Atom feed
From: Heikki Linnakangas <[email protected]>
To: Thomas Munro <[email protected]>
To: Heikki Linnakangas <[email protected]>
Cc: [email protected]
Subject: Re: pgsql: Replace BackendIds with 0-based ProcNumbers
Date: Mon, 15 Jul 2024 11:13:16 +0300
Message-ID: <[email protected]> (raw)
In-Reply-To: <CA+hUKGKPTLSGMyE4Brin-osY8omPLNXmVWDMfrRABLp=6QrR_Q@mail.gmail.com>
References: <[email protected]>
	<CA+hUKGKPTLSGMyE4Brin-osY8omPLNXmVWDMfrRABLp=6QrR_Q@mail.gmail.com>

On 09/07/2024 21:10, Thomas Munro wrote:
> --- 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?

Yep, fixed thanks!

-- 
Heikki Linnakangas
Neon (https://neon.tech)






view thread (5+ messages)  latest in thread

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected], [email protected], [email protected]
  Subject: Re: pgsql: Replace BackendIds with 0-based ProcNumbers
  In-Reply-To: <[email protected]>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox