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 1x4jPN-007LbS-0D for pgsql-hackers@arkaria.postgresql.org; Thu, 10 Sep 2026 18:22:01 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1x4jPL-008P5S-34 for pgsql-hackers@arkaria.postgresql.org; Thu, 10 Sep 2026 18:21:59 +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 1x4jPL-008P5I-2B for pgsql-hackers@lists.postgresql.org; Thu, 10 Sep 2026 18:21:59 +0000 Received: from mail-qt1-x82a.google.com ([2607:f8b0:4864:20::82a]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1x4jPJ-000000040YD-1Xa7 for pgsql-hackers@lists.postgresql.org; Thu, 10 Sep 2026 18:21:59 +0000 Received: by mail-qt1-x82a.google.com with SMTP id d75a77b69052e-53016020b2fso1303571cf.0 for ; Thu, 10 Sep 2026 11:21:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1789064516; x=1789669316; darn=lists.postgresql.org; h=in-reply-to:content-transfer-encoding:content-disposition :content-type:mime-version:references:message-id:subject:cc:to:from :date:from:to:cc:subject:date:message-id:reply-to:content-type; bh=wm4nnLQSnb8x6zZMcvHAO/h/oz0taGK+2DOm/IVKpJ4=; b=nG2exxBfRsBGi43tri6gIeynUMrH0Dbq3JIZMwpnd22RTDsJsz4Je8FZvvRqxCluYM o1pxWkiEoJHZ1mS1bwj3caSq8+LBNnuQY1p841zpzJ0REnOpQdWW4vYFBswtQCBe5LWD wyvxo0ZHuSWGVFSvW6exlY72GrMhrfo3UHQYumqBUVr182YtL8b9P+2/AEEHFn7E+qcD 1lybTfnYIHOXbklIj+ERNseVbPzoFSf/McMnxHXTyrI4BqKbZg/Qr/kek+uaFkkOWO74 ZP7OxtwM+tYGgg0K4TVg83gvBIYlcbGAJIIY8htETsA9m6yQVpudy8y4usfOS3zxtCTS lMsg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1789064516; x=1789669316; h=in-reply-to:content-transfer-encoding:content-disposition :content-type:mime-version:references:message-id:subject:cc:to:from :date:x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to:content-type; bh=wm4nnLQSnb8x6zZMcvHAO/h/oz0taGK+2DOm/IVKpJ4=; b=iLMEIzM/i5GKeiT6+y6+WaLHREw0G/E6Tm2sGSLeCqLIIsodxxBZxzh2xsMNms9O8g 0yDyo6jZ1SCx6GfjIi8TrVlFItoHUs+LcZyVFBtFrafc7OquHre7vDaKq9wDClCiINPr X4OcJNVluosecwDKXRf8uh8D7Rlr1zyTxgS6E+/m/q3QtrJliyKgm3o9zGGdGP68s9IG H3Y5nDPXdGD6ro4r/V2x8wqXZDphhiAP58HDWqaIupPp0IpHicffuUSl4Y5kHPU6uY+I DKKyFuvXhyy+bGK9wUUsABP+yU5eh2gQw5qXAba73ad8qOtq2wDUdRlPcECcCzuwPsFC kbVw== X-Forwarded-Encrypted: i=1; AKwUvByIgMisqiMQ4I8751giyGCquzy6IBB64GQlUxCud6m81nl2fbqogRKYE1jVPs+9UjEHftAZ2DiHxpFS/Rzi@lists.postgresql.org X-Gm-Message-State: AFuF++l3uW5Y7ikOmxAyhtcPs/Y0edMqnrMStTO52gqOyzBsApt3FcQ0 vixe/0fi2c8FKQv6KkOmHZsbYzkhBNxGpdFV8hA33Mn1/MvbPAyqS70S X-Gm-Gg: AYBFou0LqoNQ4wTU4h5abAYzUuX7wE6MLRUXFndVZ5JZxgAHyjTM1OjYPdIrRKGZ+Qd MIa6SiQoPuThXp+d8wVZ96UY9Y20+K4Ycqvw5/XLPTncpMACeHNbwAK25PT2QIK57NYl9xMMLO3 U4kRCo8/h9312seWJeSLL+1DVfvo01jXSAIsjip0Zy+gJB2NbDoMcLgdgE5vZWka3BAwrk+YpO1 U369dj37BkPSMtvuZo+7wrgsfFnCdCKiXskBwlG8IQV1zTO3quDwkaxEteGiV07MRWl74EkS0/Q v7ChcNHwXSLNRsAWDoNYFcu7XtPEXKDA7wKKdCmz6ER7UQpYY5PF16Z5/nzxxyghFowSCdxU48n VJdoXwjhbLU519HwN+9wU/6PcroeBy4ybai4DysbTjPBKEK7tH4TGq6ZZwE9D63P1h2BGBg3Sdr t/jjSVwbNkPd/A/gAmK/vCVE1Rqo1gh1NJwrd+SptRVsWvXDwtClHPTZc7MIj17Xl0FTGmbUTlJ YNzlft7VIFa0X44OP4C1KcB7yA8+101KaCdPItg2nbL9YP+fAkvZz/KIWBGhmH8M6NSgNUCmH5i QMQZ/nM/ea83z/tNS9QAg0AYlw== X-Received: by 2002:a05:622a:1e15:b0:52d:7b1a:d7e0 with SMTP id d75a77b69052e-530c87133e5mr9687371cf.32.1789064515509; Thu, 10 Sep 2026 11:21:55 -0700 (PDT) Received: from nathan (162-195-168-172.lightspeed.stlsmo.sbcglobal.net. [162.195.168.172]) by smtp.gmail.com with ESMTPSA id d75a77b69052e-530541c94ddsm179731071cf.23.2026.09.10.11.21.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Sep 2026 11:21:55 -0700 (PDT) Date: Thu, 10 Sep 2026 13:21:53 -0500 From: Nathan Bossart To: Tom Lane Cc: Sami Imseih , Postgres hackers , aleksander@timescale.com Subject: Re: Rename PqMsg_Progress to PqMsg_ParallelWorkerProgress Message-ID: References: <847229.1788993355@sss.pgh.pa.us> <915102.1789060495@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <915102.1789060495@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Thu, Sep 10, 2026 at 01:14:55PM -0400, Tom Lane wrote: > Sami Imseih writes: >> On Thu, Sep 10, 2026 at 9:30 AM Nathan Bossart 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