Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1x4kn4-007Ma9-1P for pgsql-hackers@arkaria.postgresql.org; Thu, 10 Sep 2026 19:50:34 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1x4kn3-008k92-06 for pgsql-hackers@arkaria.postgresql.org; Thu, 10 Sep 2026 19:50:33 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1x4kn2-008k8u-2O for pgsql-hackers@lists.postgresql.org; Thu, 10 Sep 2026 19:50:32 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1x4kn0-000000041DC-0DT2 for pgsql-hackers@lists.postgresql.org; Thu, 10 Sep 2026 19:50:32 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.18.1/8.18.1) with ESMTP id 68AJoKrB924901; Thu, 10 Sep 2026 15:50:20 -0400 From: Tom Lane To: Sami Imseih cc: Nathan Bossart , Postgres hackers , aleksander@timescale.com Subject: Re: Rename PqMsg_Progress to PqMsg_ParallelWorkerProgress In-reply-to: References: <847229.1788993355@sss.pgh.pa.us> <915102.1789060495@sss.pgh.pa.us> Comments: In-reply-to Sami Imseih message dated "Thu, 10 Sep 2026 14:40:51 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <924899.1789069820.1@sss.pgh.pa.us> Date: Thu, 10 Sep 2026 15:50:20 -0400 Message-ID: <924900.1789069820@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Sami Imseih 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