pg.ddx.io pgsql-hackers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
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 15:12:31 -0500
Message-ID: <aqMPL_m8h_dAzlmG@nathan> (raw)
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>
On Thu, Sep 10, 2026 at 03:50:20PM -0400, Tom Lane wrote:
> 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. */
Committed with that comment adjustment, thanks.
--
nathan
view thread (12+ messages)
Message-ID: <aqMPL_m8h_dAzlmG@nathan> Permalink: ../aqMPL_m8h_dAzlmG@nathan/ Also on: postgresql.org/message-id/aqMPL_m8h_dAzlmG@nathan ·
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 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: <aqMPL_m8h_dAzlmG@nathan> 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> <aqMPL_m8h_dAzlmG@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