Re: Rename PqMsg_Progress to PqMsg_ParallelWorkerProgress

From: Sami Imseih <samimseih(dot)pg(at)gmail(dot)com>
To: Nathan Bossart <nathandbossart(at)gmail(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Postgres hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>, aleksander(at)timescale(dot)com
Subject: Re: Rename PqMsg_Progress to PqMsg_ParallelWorkerProgress
Date: 2026-09-10 17:09:00
Message-ID: CAN12+YJaSfn-zNcw7uXqWqG5B1ZR6Pr4NxYiuHksNfhAJXbCww@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

Thanks for the feedback!

On Thu, Sep 10, 2026 at 9:30 AM Nathan Bossart <nathandbossart(at)gmail(dot)com> wrote:
>
> On Wed, Sep 09, 2026 at 06:35:55PM -0400, Tom Lane wrote:
> > Sami Imseih <samimseih(dot)pg(at)gmail(dot)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.

I think PqParallelMsg_Progress makes sense. The attached does this.

--
Sami Imseih
Amazon Web Services (AWS)

Attachment Content-Type Size
v1-0001-Rename-PqMsg_Progress-to-PqParallelMsg_Progress.patch application/octet-stream 2.8 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2026-09-10 17:14:55 Re: Rename PqMsg_Progress to PqMsg_ParallelWorkerProgress
Previous Message Bharath Rupireddy 2026-09-10 17:06:07 Re: Support for 8-byte TOAST values, round two