pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / 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 13:21:53 -0500
Message-ID: <aqL1QWZhFEk2kV4q@nathan> (raw)
In-Reply-To: <915102.1789060495@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>

On Thu, Sep 10, 2026 at 01:14:55PM -0400, Tom Lane wrote:
> Sami Imseih <samimseih.pg@gmail.com> writes:
>> On Thu, Sep 10, 2026 at 9:30 AM Nathan Bossart <nathandbossart@gmail.com> wrote:
>>> 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.
> 
> +1

As I'm writing the commit message for this, I'm remembering why I
originally went with "PqMsg" for this one.  Parallel workers reuse a bunch
of "regular" message types for roughly the same purpose as non-parallel
uses, so (with this commit applied) a function like
ProcessParallelMessage() would handle a bunch of "PqMsg" message types and
one "PqParallelMsg" type.  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.  I'm content to
commit Sami's patch and let it be, but if folks would rather I straighten
things out further, I can do so.

-- 
nathan






view thread (12+ messages)  latest in thread

Message-ID: <aqL1QWZhFEk2kV4q@nathan>
Permalink:  ../aqL1QWZhFEk2kV4q@nathan/
Also on:    postgresql.org/message-id/aqL1QWZhFEk2kV4q@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: <aqL1QWZhFEk2kV4q@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>

* 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