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 1wgh7Z-006L30-26 for pgsql-hackers@arkaria.postgresql.org; Mon, 06 Jul 2026 11:04:18 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wgh7Y-00H9zR-1s for pgsql-hackers@arkaria.postgresql.org; Mon, 06 Jul 2026 11:04:16 +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 1wgh6f-00H6RX-1f for pgsql-hackers@lists.postgresql.org; Mon, 06 Jul 2026 11:03:21 +0000 Received: from lahtoruutu.iki.fi ([185.185.170.37]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1wgh6d-000000022iz-1ihE for pgsql-hackers@postgresql.org; Mon, 06 Jul 2026 11:03:21 +0000 Received: from [10.0.2.15] (unknown [130.41.208.2]) (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 lahtoruutu.iki.fi (Postfix) with ESMTPSA id 4gv1g46ggWz49Q76; Mon, 06 Jul 2026 14:03:12 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1783335793; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=s9aGM9rkMEIYUN+eVW1Ylm+qZ+s/FuqtyBK8NDemsF4=; b=f1aNY5c+8V58TNYGz4fW+vOcdyc1KUV7QYun+JPHDOIZTnVg8NuOnffflLETYsCpDZGbD7 CLkG+FgNr5yJxAPx7N2/hPPREZejGaLB3Y+VCB5oM6mHOCAI6OxkKBirxk2jHdeBSXvY5b to9yWCkI9zwR+/iMchx1sZax3Xzvi6GkIbMjqwq4CxE5KtDI+ZOB449bpvJJZNanL4wsXo knFCUsTQNxRFaEEyjdpswzvsZQBJG449vmZWECnPalJ6KN3Eij9KdstsFrqUQUefaja36m PFnvQzrz5QTpPeDlXWSrR3JKoCQJbgINRkCRH0/nPOfAaG6x5qNFhkhadzOCbg== ARC-Seal: i=1; a=rsa-sha256; d=iki.fi; s=lahtoruutu; cv=none; t=1783335793; b=klo0SsD6w0fZdBQQ+G9WnL2TE7UB9Xbz8SOy320CdwuT2Su4VM3p8+W6SxxKSgo/wxD2bh PvGRcpLvXVIgwpq5sBIoBdjEdi7NAfJnnDER/3/JmBKLEx/AU0o3J/STMve0TOJEySnaKT ISM2sMygU4uD3SHsTLhOSB5eW3yABtmWyKfUgAAwCjc0qc7c+8mXjJipIbybms+aiQNMa2 LqpM60tB5m1vBOxB7J9IlDdvN5Syj3j/QScX92fbBWpGdWG2d5QygnnCUzHsbJGchKZlig orbVnsLoPcNGHOI69u6/ITyp9J6W8hP70FwfIfV7xDH1H7DHBPA7TpYV6DUBEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1783335793; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=s9aGM9rkMEIYUN+eVW1Ylm+qZ+s/FuqtyBK8NDemsF4=; b=noC75+AZmgQuN4tyR1GQLjJD72DK1EjgE+Igaeag8+qsk7mZoGlO0Z3Vt3AFI6sLaDgJdz +9yObAraGxqHPyCBEKyUqEUB0JCTDgBwgp68r/bpA4tnI4Svo9l8xahJUPFnRxlFKo7D2q xRG6GORJvcJw2YZugOluKw1lEheR5tVjtMhBvoW8zf9spe8jOnXS05X3shCI+UwzFdUkmo CcQ3AJSRSmZ9UugUVKrBXn+UWvkpXKd4FCdkftsR302FZItLtYCM2UZq/k34/gXC/W/C1Q depMyNb4ckorgXXLL0vztpD2uthGzLBVd9gu+r4iAi0oqDJ4bJlKa4d7sFt5ug== ARC-Authentication-Results: i=1; ORIGINATING; auth=pass smtp.auth=hlinnaka smtp.mailfrom=hlinnaka@iki.fi Message-ID: <4d3cf783-514c-4bb6-ae58-4fc3f1fb1c3c@iki.fi> Date: Mon, 6 Jul 2026 14:03:11 +0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: refactor ExecInitPartitionInfo To: Haibo Yan , jian he Cc: Andreas Karlsson , PostgreSQL-development 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 03/04/2026 01:19, Haibo Yan wrote: >> On Apr 1, 2026, at 6:12 AM, jian he wrote: >> Ok. I switched it back to >> >> +    if (node && >> +        (node->withCheckOptionLists != NIL || >> +         node->returningLists != NIL || >> +         node->onConflictAction == ONCONFLICT_UPDATE || >> +         node->onConflictWhere || >> +         node->operation == CMD_MERGE)) >> +    { >> +        /* later map_variable_attnos need use attribute map, build it >> now */ >> +        part_attmap = build_attrmap_by_name(RelationGetDescr(partrel), >> + >>                                            RelationGetDescr(firstResultRel), >> +                                            false); >> +    } >> + > > Hi Jian, > > Thanks for working on this. > > I’m not convinced this refactoring buys us much in its current form. +1, for all the reasons you said. I have marked this as rejected in the commitfest app. Thanks! - Heikki