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 1x4fna-007JSc-2x for pgsql-hackers@arkaria.postgresql.org; Thu, 10 Sep 2026 14:30:46 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1x4fnY-006fZZ-1G for pgsql-hackers@arkaria.postgresql.org; Thu, 10 Sep 2026 14:30:44 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1x4fnY-006fZR-0J for pgsql-hackers@lists.postgresql.org; Thu, 10 Sep 2026 14:30:44 +0000 Received: from mail-qk2-x10.google.com ([2607:f8b0:4864:34::10]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1x4fnS-00000004yIY-1sVK for pgsql-hackers@lists.postgresql.org; Thu, 10 Sep 2026 14:30:43 +0000 Received: by mail-qk2-x10.google.com with SMTP id af79cd13be357-93910ca5aa7so159371685a.1 for ; Thu, 10 Sep 2026 07:30:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1789050636; x=1789655436; darn=lists.postgresql.org; h=in-reply-to: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=2rCSmRFjE9e0b6c5TLwvbr4LF4gOSpFFBDNHq8kVex0=; b=GHfdr6+9FjhBlCVi+ZIzEgQDvFbwbbuJFDPJsHQyMXnzSIPRvaaPUifvBRNTmvrKPt dhISAiAI/hkaHfYYqA6T8tx4stq9a23BbvOchbZJlP9HkrfOFlpL29rEpzhNNrPZvI14 xg6bOQzofBDruKJn/sL69yWlPXLmhO01AMePq1tMfNPZnbu1A+1wSc4p9vY/PZDht88A 1zDoC20GM0zaZ2rSfP1fFZwm5eyzBHNYWrmHZux+f5U72vbfaeV+NQ6mRRM0uTg8DGpx C5OWr44h/9gWzp1soh1B23iljwHRO8gVJ1/bYRNbyrmI2L1sGVM5m+dUW/X5JSDEj4kG Aqqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1789050636; x=1789655436; h=in-reply-to: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=2rCSmRFjE9e0b6c5TLwvbr4LF4gOSpFFBDNHq8kVex0=; b=RuuUL9ZfDvGN+BeWAkocn7Pu5KHQ0SaJlmNc74IwfRMxoLdL//C+dWbldjCBAE0Oqr EE/+ARq8DNsRmEQyaRiuysqKE6jXKkjs0UJieTBFAFUJ+OujaihDqZoHmvwqYiVeTu+/ y/kgaawFXdfaTDh5aNKVsqvd4MxcfrrqhsYdUWHcrIMQ14J8zQ8DNOpRBwvdQSCraJBu COTqtOJYoRaYrhhOZ147ThJjwrW/ea7PQto3RPuSbKc69wGIhaXnflc86v6dStLHWdb1 kDuki591F6BXMiSi+2CjSl/A4TPc8bRgfBmStxKuxvs0x3/BdB2202+jxUO0FCOrGnXh rfOg== X-Forwarded-Encrypted: i=1; AKwUvBzGpUO96BNzd5KVTUa/Jw1xJKbPHakbqyAimEJC2Do8sE33l7ynSr2+JGwC7yziwKIazqGfEBL7bNQKNRNa@lists.postgresql.org X-Gm-Message-State: AFuF++nNJTVwdif8uV4rremB2gnpmYUob7JTXA7lgIEAZt6U1paI8aQZ Tai3gBrQEF4R30L0Gvy1Xy4ZZK+Nmho/URsIWQiZOqmrOrzOXsJB30ot X-Gm-Gg: AYBFou3FzCxiKPpuMrCD6ADbBXKTkLWWnzx9hgXmkC2TMxvVUY8xZojHrbXt2LM0fPD 8XC8yFSrHc5Yu5ZLPp4EA/zwe5i+YRCCC3jErwvdnxNwlDtxhfVe7psrYAYdQ7ZhS0/L306/zxL thQ2Fi32FskNOSomcmI3ku1sIxoKA8C8hGwUDDDtTcnb81q+AmT9m9WCw58ThYKU98bTgEGABwH mobrZ56j9edq6M8dXp7O8gIG0wx76eDkOKC3WprO2y/f5F2HLUGIF4346JdhfUGno6MIdhD+KNl GvrpGQHUoemJE0RcE3mq7y95JW4H1OFWGaiOxRkuJ3X+8JZFrmzCJ5+xJGYnXZDKE/1tc+0LPZN LNRTQnJD5JD5PH6MU5WH2BPwZz8arb8csi7PacgqWUoM+Qts2Qa7ebJ6hrEtqQs6uKxSjXUK7ss U3sqVlmXAFRXJ91S4iXWOg96zLttO2fPLGQlC2BOzHD9Fbf6tnNSvafMT/Z6waWUQlsacovwcHr vSbxETu75tSdTP1Xsamwmo/I+XRCbCA16Y22e1Et8Jb2RnGN1cAyt+iWjDsB9BmcVAq0RWnWZKx z2IUG1/bbn7xx+fbGu8j8VmS2Q== X-Received: by 2002:a05:620a:459f:b0:939:c898:ce3f with SMTP id af79cd13be357-939d4973060mr1065383385a.14.1789050636381; Thu, 10 Sep 2026 07:30:36 -0700 (PDT) Received: from nathan (162-195-168-172.lightspeed.stlsmo.sbcglobal.net. [162.195.168.172]) by smtp.gmail.com with ESMTPSA id af79cd13be357-9397fb59c72sm1699415085a.26.2026.09.10.07.30.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Sep 2026 07:30:35 -0700 (PDT) Date: Thu, 10 Sep 2026 09:30:33 -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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <847229.1788993355@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed, Sep 09, 2026 at 06:35:55PM -0400, Tom Lane wrote: > Sami Imseih writes: >> While looking at this, I realized that "PqMsg_Progress" is the name of the >> 'P' message that was added for parallel index progress reporting. > >> I missed [1] at the time, but if there is still a chance to rename it to >> "PqMsg_ParallelWorkerProgress", that seems better, >> "PqMsg_Progress" does not really describe what it is, whereas >> "PqMsg_ParallelWorkerProgress" makes it explicit that this is a >> parallel-worker-to-leader message. It also matches other places in the code >> that deal with parallel workers, such as "IsParallelWorker", so it is easier >> to find when looking through parallel-worker code. > > Yeah, "PqMsg_Progress" seems unduly generic. I don't think we should > rename it in the back branches, but doing so in master looks like > it'd be a small-footprint change. 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. -- nathan