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.94.2) (envelope-from ) id 1tT6iY-003P7A-D6 for pgsql-committers@arkaria.postgresql.org; Wed, 01 Jan 2025 21:57:31 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1tT6iX-00AKMz-8E for pgsql-committers@arkaria.postgresql.org; Wed, 01 Jan 2025 21:57:28 +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.94.2) (envelope-from ) id 1tT6iW-00AKMr-Tl for pgsql-committers@lists.postgresql.org; Wed, 01 Jan 2025 21:57:28 +0000 Received: from meesny.iki.fi ([195.140.195.201]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tT6iT-002ivi-TN for pgsql-committers@lists.postgresql.org; Wed, 01 Jan 2025 21:57:27 +0000 Received: from [IPV6:2001:14bb:c4:18a8:ac92:3217:371a:3] (unknown [IPv6:2001:14bb:c4:18a8:ac92:3217:371a:3]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: hlinnaka) by meesny.iki.fi (Postfix) with ESMTPSA id 4YNkGD2RHMzyR7; Wed, 1 Jan 2025 23:57:24 +0200 (EET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=meesny; t=1735768644; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=cpbmDaA7wd1yHHBiMa1v5txL9tZs2k+xnuh28Eg+Y70=; b=TivOz6RS3ScgZMgr51H2aIb4bisYvG/L2OoU5UXx50j0Bf5iJWZrJC20n8DU1rxu6ULtUx 6LF3aF2aKcGx2261RIAM6j2/WfrFVg9ueOvPTKJ/GdEBQNRYk+NB/rSbF3HxLmg6wSDcEu h5VgO5S0yMpVZmAANfv9GdZkPzH5Ftw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=meesny; t=1735768644; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=cpbmDaA7wd1yHHBiMa1v5txL9tZs2k+xnuh28Eg+Y70=; b=NQ5qz1vQzjzUFdymmN9Y+WExTq0ivx1H66BFfjejy617kiXkUKnyWXh5HPV4KsMoMdD96f mKJ2CUSvJDKTXZWhHUeWuzlS+7hBxIh0CkRn0SWIfMq9uiBHIjV44Ho49djkXE5C6W5/b2 4iV5ZCjj/nYSP9bk4Gswd1iahviCY70= ARC-Authentication-Results: i=1; ORIGINATING; auth=pass smtp.auth=hlinnaka smtp.mailfrom=hlinnaka@iki.fi ARC-Seal: i=1; s=meesny; d=iki.fi; t=1735768644; a=rsa-sha256; cv=none; b=LTkC4NlZTcTnceTH31Hesxv6cFENl8zO1WBscOJzAr1b/dV/+21mynl55nTNXEuQ+pEeQu 2afO6BQCgTT03N/NrIiLmO5aYfppurpfgL69WgLJcpeHYiZKyzB4y0mxQLFjC4wS/v4Cfh RpLwA/puRXXYjSwTcj+9v2urJT7KqbA= Message-ID: <7d8d5d1c-f8bd-4570-9db9-90ca5e15b6ec@iki.fi> Date: Wed, 1 Jan 2025 23:57:23 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: pgsql: Replace BackendIds with 0-based ProcNumbers To: Peter Eisentraut , pgsql-committers@lists.postgresql.org References: Content-Language: en-US From: Heikki Linnakangas In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 29/12/2024 19:43, Peter Eisentraut wrote: > On 03.03.24 18:39, Heikki Linnakangas wrote: >> Replace BackendIds with 0-based ProcNumbers > > There are a couple of declarations that are duplicated between src/ > include/storage/proc.h and src/include/storage/procnumber.h, such as > MyProcNumber, ParallelLeaderProcNumber, and > ProcNumberForTempRelations().  Is that intentional, or should that be > fixed? It was not intentional. At quick glance, I think we should keep the declarations in procnumber.h and remove the duplicates from proc.h. I will do that next week when I'm back from vacation. Or feel free to do it yourself before that if you want. Thanks for noticing! - Heikki