From: Nathan Bossart <nathandbossart@gmail.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Sami Imseih <samimseih.pg@gmail.com>
Cc: Postgres hackers <pgsql-hackers@lists.postgresql.org>
Cc: aleksander@timescale.com
Subject: Re: Rename PqMsg_Progress to PqMsg_ParallelWorkerProgress
Date: Thu, 10 Sep 2026 09:30:33 -0500
Message-ID: <aqK_CWlOBELh6ikU@nathan> (raw)
In-Reply-To: <847229.1788993355@sss.pgh.pa.us>
References: <CAN12+YLqbiA1v3FPD94yLbXgdyoWxVEY6=DtdpTPo9YCRuCpfg@mail.gmail.com>
<847229.1788993355@sss.pgh.pa.us>
On Wed, Sep 09, 2026 at 06:35:55PM -0400, Tom Lane wrote:
> Sami Imseih <samimseih.pg@gmail.com> writes:
>> While looking at this, I realized that "PqMsg_Progress" is the name of the
>> 'P' message that was added for parallel index progress reporting.
>
>> I missed [1] at the time, but if there is still a chance to rename it to
>> "PqMsg_ParallelWorkerProgress", that seems better,
>> "PqMsg_Progress" does not really describe what it is, whereas
>> "PqMsg_ParallelWorkerProgress" makes it explicit that this is a
>> parallel-worker-to-leader message. It also matches other places in the code
>> that deal with parallel workers, such as "IsParallelWorker", so it is easier
>> to find when looking through parallel-worker code.
>
> Yeah, "PqMsg_Progress" seems unduly generic. I don't think we should
> rename it in the back branches, but doing so in master looks like
> it'd be a small-footprint change.
All of the options I've seen listed in this thread so far involve changing
the part after the PqMsg_ prefix, but given we now have PqReplMsg_ and
PqBackupMsg_, I'm thinking it'd be better to give parallel worker messages
their own prefix. That seems to act as a sort of class or namespace for
the message. Maybe something like PqParallelMsg_Progress would work here.
--
nathan
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-hackers@postgresql.org
Cc: nathandbossart@gmail.com, tgl@sss.pgh.pa.us, samimseih.pg@gmail.com, aleksander@timescale.com
Subject: Re: Rename PqMsg_Progress to PqMsg_ParallelWorkerProgress
In-Reply-To: <aqK_CWlOBELh6ikU@nathan>
References: <CAN12+YLqbiA1v3FPD94yLbXgdyoWxVEY6=DtdpTPo9YCRuCpfg@mail.gmail.com> <847229.1788993355@sss.pgh.pa.us> <aqK_CWlOBELh6ikU@nathan>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox