From: Tom Lane <tgl@sss.pgh.pa.us>
To: Sami Imseih <samimseih.pg@gmail.com>
Cc: Nathan Bossart <nathandbossart@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 15:50:20 -0400
Message-ID: <924900.1789069820@sss.pgh.pa.us> (raw)
In-Reply-To: <CAN12+YL4U5_1tuoT_-wDNvSGhSnhErfMx_P00b5p1FZLqtjDQQ@mail.gmail.com>
References: <CAN12+YLqbiA1v3FPD94yLbXgdyoWxVEY6=DtdpTPo9YCRuCpfg@mail.gmail.com>
<847229.1788993355@sss.pgh.pa.us>
<aqK_CWlOBELh6ikU@nathan>
<CAN12+YJaSfn-zNcw7uXqWqG5B1ZR6Pr4NxYiuHksNfhAJXbCww@mail.gmail.com>
<915102.1789060495@sss.pgh.pa.us>
<aqL1QWZhFEk2kV4q@nathan>
<CAN12+YL4U5_1tuoT_-wDNvSGhSnhErfMx_P00b5p1FZLqtjDQQ@mail.gmail.com>
Sami Imseih <samimseih.pg@gmail.com> writes:
>> I think the obvious way to resolve that
>> inconsistency is to duplicate those macros and give them the parallel
>> prefix, but I'm not sure that's a worthwhile endeavor. Those characters
>> have roughly the same meaning for parallel workers/leaders as they do
>> elsewhere, so there's no real gain in code readability.
> IMO, this is not necessary. I can't think of a good reason.
Agreed. I think the main problem with the way things stand is that
it looks like PqMsg_Progress might apply for regular clients, which
it doesn't.
Possibly it'd be appropriate to adjust the comments in protocol.h
to make things clearer. I think this might be enough:
-/* These are the codes sent by parallel workers to leader processes. */
+/* Additional codes sent by parallel workers to leader processes. */
regards, tom lane
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: tgl@sss.pgh.pa.us, samimseih.pg@gmail.com, nathandbossart@gmail.com, aleksander@timescale.com
Subject: Re: Rename PqMsg_Progress to PqMsg_ParallelWorkerProgress
In-Reply-To: <924900.1789069820@sss.pgh.pa.us>
References: <CAN12+YLqbiA1v3FPD94yLbXgdyoWxVEY6=DtdpTPo9YCRuCpfg@mail.gmail.com> <847229.1788993355@sss.pgh.pa.us> <aqK_CWlOBELh6ikU@nathan> <CAN12+YJaSfn-zNcw7uXqWqG5B1ZR6Pr4NxYiuHksNfhAJXbCww@mail.gmail.com> <915102.1789060495@sss.pgh.pa.us> <aqL1QWZhFEk2kV4q@nathan> <CAN12+YL4U5_1tuoT_-wDNvSGhSnhErfMx_P00b5p1FZLqtjDQQ@mail.gmail.com> <924900.1789069820@sss.pgh.pa.us>
* 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