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 1wJvOM-000Q2r-2o for pgsql-hackers@arkaria.postgresql.org; Mon, 04 May 2026 15:39:30 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wJvOL-007vT4-2U for pgsql-hackers@arkaria.postgresql.org; Mon, 04 May 2026 15:39:29 +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 1wJvOL-007vSQ-1X for pgsql-hackers@lists.postgresql.org; Mon, 04 May 2026 15:39:29 +0000 Received: from fout-b4-smtp.messagingengine.com ([202.12.124.147]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1wJvOI-00000000AG3-2AxV for pgsql-hackers@lists.postgresql.org; Mon, 04 May 2026 15:39:28 +0000 Received: from phl-compute-01.internal (phl-compute-01.internal [10.202.2.41]) by mailfout.stl.internal (Postfix) with ESMTP id 77FC91D00060; Mon, 4 May 2026 11:39:26 -0400 (EDT) Received: from phl-frontend-03 ([10.202.2.162]) by phl-compute-01.internal (MEProxy); Mon, 04 May 2026 11:39:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eisentraut.org; h=cc:cc:content-transfer-encoding:content-type:content-type :date:date:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:subject:subject:to:to; s=fm2; t=1777909166; x=1777995566; bh=NUYt39I6bXZWGvS0uScVc0siFZKgA+Cl NZXw5sOA2D0=; b=Yjsn1LHAW2jE2yBN0s4QFAD6K8HoX1Y2Beazp4KtDnExZ+0g xiFePW5eqiy6kMV+GhUb9IBMjF0ZEOAsD7PBhIImEkwyr95RDsSf2an8ZdKywBki vsi8Zh8x9zbi/2fC42yn+CwuikaEThRuv2J0MYyaJjb1jbNW1zNjsc/x/+u/GwJ3 EVwgxr7+xix6x4Srvobs/KPhevktiapSuhB7pmn6OMxv63vawELkbrhV1WE50Bty EXedcL4HZk1gfL9+ycBl+ReS1Yzxn5b/V3CknMHbXA4dRY+2Ux78ywC1kpgRXEdF 7ubkPeL+WbzbdTsN1PAa73xyzeAjXoP2q/eGng== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1777909166; x= 1777995566; bh=NUYt39I6bXZWGvS0uScVc0siFZKgA+ClNZXw5sOA2D0=; b=E s0RdhajLnkXvSmRoh7GzGvbE7nVpOtOtA4jdXg+5mOIvLYg7Liq0pesGcJ3fZNl8 YmrrkxJYTTSJ7qhVz4Og4F91wLeyQKQV+KtOhBWjUuTW6q/sQUkeqCVwq9kqclec HNnqpnnlrAC2wkZymfWqJfBRf7E0QYBRsiiw8RCEdrF903ziF7Kg3K9JsdQC2ozB e53vvrbvDMJ+51NhZdqL2xYniMQP4jnX0v1erKrtl5efDg/ssVq28VNRblEeRY/D F9028QjQsNT8auBFddNa/7US9EMAp3qMseo0Oy8obRjcrQJ7ozVFdpnNBOIyzh+T TLn/HN55dtUYdFKm1IBOA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefhedrtddtgdelledvvdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr ihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjug hrpefkffggfgfuvfevfhfhjggtgfesthekredttddvjeenucfhrhhomheprfgvthgvrhcu gfhishgvnhhtrhgruhhtuceophgvthgvrhesvghishgvnhhtrhgruhhtrdhorhhgqeenuc ggtffrrghtthgvrhhnpeejhfevhedttefgfffhhfeffefggffhffelgfeiueeukeehvdeh vdefheffvdefueenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfh hrohhmpehpvghtvghrsegvihhsvghnthhrrghuthdrohhrghdpnhgspghrtghpthhtohep gedpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtoheprghshhhuthhoshhhrdgsrghprg htrdhoshhssehgmhgrihhlrdgtohhmpdhrtghpthhtoheprhhosggvrhhtmhhhrggrshes ghhmrghilhdrtghomhdprhgtphhtthhopehsrghthigrnhgrrhhlrghpuhhrrghmsehgmh grihhlrdgtohhmpdhrtghpthhtohepphhgshhqlhdqhhgrtghkvghrsheslhhishhtshdr phhoshhtghhrvghsqhhlrdhorhhg X-ME-Proxy: Feedback-ID: ie0a040ee:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 4 May 2026 11:39:24 -0400 (EDT) Message-ID: <19895d96-a27a-4e8a-a67f-f6dcf0ed4f82@eisentraut.org> Date: Mon, 4 May 2026 17:39:23 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [Patch]Add Graph* node support to expression_tree_mutator To: Ashutosh Bapat , Robert Haas Cc: SATYANARAYANA NARLAPURAM , PostgreSQL Hackers References: Content-Language: en-US From: Peter Eisentraut 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 30.04.26 08:44, Ashutosh Bapat wrote: > On Thu, Apr 30, 2026 at 2:17 AM Robert Haas wrote: >> > > Thanks for reviewing the patch. > >> Thanks for working on this. I ran into it independently today, and >> then discovered this thread. In expression_tree_mutator_impl, >> T_GraphLabelRef can be added to the "Primitive node types with no >> expression subnodes" section just as was done in >> expression_tree_walker_impl. > > Right. Fixed in the attached patch. Both GraphPropertyLabel and > GraphLabelRef need to be placed in that section since both are > primitive nodes. Committed. (I reformatted the test query a little bit as you had suggested upstream. Also, the ordering of the switch cases was slightly different between the walker and the mutator, which I fixed.)