From: Antonin Houska <ah@cybertec.at>
To: Kirill Reshke <reshkekirill@gmail.com>
Cc: Sami Imseih <samimseih.pg@gmail.com>
Cc: Postgres hackers <pgsql-hackers@lists.postgresql.org>
Cc: Nathan Bossart <nathandbossart@gmail.com>
Cc: aleksander@timescale.com
Subject: Re: Rename PqMsg_Progress to PqMsg_ParallelWorkerProgress
Date: Thu, 10 Sep 2026 15:20:12 +0200
Message-ID: <21120.1789046412@localhost> (raw)
In-Reply-To: <CALdSSPgFRV=43TJu0H_M0-divs11bO6Lgk3hRVHwqG4-Um6Aqw@mail.gmail.com>
References: <CAN12+YLqbiA1v3FPD94yLbXgdyoWxVEY6=DtdpTPo9YCRuCpfg@mail.gmail.com>
<CALdSSPgFRV=43TJu0H_M0-divs11bO6Lgk3hRVHwqG4-Um6Aqw@mail.gmail.com>
Kirill Reshke <reshkekirill@gmail.com> wrote:
> On Thu, 10 Sept 2026 at 02:57, Sami Imseih <samimseih.pg@gmail.com> wrote:
> >
> > 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.
> >
> > [1] https://www.postgresql.org/message-id/ZpboPlg1v38vJhsD%40nathan
> >
> > --
> > Sami Imseih
> > Amazon Web Services (AWS)
> >
>
> Well, that's kind of bikeshedding for me to start with. But if we do,
> maybe a better option will be to describe what this exactly does, not
> who sends it. Like PgMsg_StatProgressReport or something. Does it
> sound?
My objection to PqMsg_ParallelWorkerProgress is that other kinds of workers
might use it too, so PqMsg_WorkerProgress would make more sense. Anyway, your
suggestion sounds good to me as well because the existing message types do not
(except for PqMsg_BackendKeyData) use the name to indicate the sender.
--
Antonin Houska
Web: https://www.cybertec-postgresql.com
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: ah@cybertec.at, reshkekirill@gmail.com, samimseih.pg@gmail.com, nathandbossart@gmail.com, aleksander@timescale.com
Subject: Re: Rename PqMsg_Progress to PqMsg_ParallelWorkerProgress
In-Reply-To: <21120.1789046412@localhost>
References: <CAN12+YLqbiA1v3FPD94yLbXgdyoWxVEY6=DtdpTPo9YCRuCpfg@mail.gmail.com> <CALdSSPgFRV=43TJu0H_M0-divs11bO6Lgk3hRVHwqG4-Um6Aqw@mail.gmail.com> <21120.1789046412@localhost>
* 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