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 1wIBoW-007rgC-2Y for pgsql-hackers@arkaria.postgresql.org; Wed, 29 Apr 2026 20:47:21 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wIBoU-004okT-0U for pgsql-hackers@arkaria.postgresql.org; Wed, 29 Apr 2026 20:47:18 +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 1wIBoT-004okL-2K for pgsql-hackers@lists.postgresql.org; Wed, 29 Apr 2026 20:47:17 +0000 Received: from mail-ej1-x631.google.com ([2a00:1450:4864:20::631]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wIBoR-00000003rsf-1IcR for pgsql-hackers@lists.postgresql.org; Wed, 29 Apr 2026 20:47:17 +0000 Received: by mail-ej1-x631.google.com with SMTP id a640c23a62f3a-ba699316b42so22401466b.3 for ; Wed, 29 Apr 2026 13:47:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1777495633; cv=none; d=google.com; s=arc-20240605; b=LJJyvLqlmXHHnOslSQnrirSS7QKtqE/minqUrX/sqC0GFs6F2cqeknhyrkUIMhZ6lb /kKqxaxoGATt22u92ak9oAFMSOQjltonLb37ye6lZsToARvXGGcoYXZVlUgGrCWH2Nrd ndmd5DGJWaHJcJgAaI+asItdllNOWuiOJXBmoatz64WZYiPaN7I79Hr2fYpD0pNG+lSJ Mf4Rkbeo6DDX5T3RO9fSvdTNGRHmL4VndwWUzdmBi69OikBMSHbRDvjjxJH6SWh4OrrQ ZrJWyBkck3j4GH2C3f7+gI4XbiCc6Dz74XhvyvZ9qTMLcBMTsFQAzPsMu8R5Hr4gZvfB qgrQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=Me/2khUo1FATNdYEkF1cD3Q+SuDd4ts4Ci/PZVbuWIQ=; fh=jhc8z/n6n3RhZdUDLI89Ym1PHY8h30Y4iajXpSsgUmA=; b=HZ2RF/RHXO4N2ykNKV8Vhi3q3SAyV0lndbrZQd4EeJpqkafP0rVzCny09E27JVjqoG j8g9SSz4uVhWPhbfnSNzWbmXg4lY7PaiN+r0Gefq3ntsZhVI5WZ+ytF3FUEFL/acugB/ NNLfj8BpYeC/zDHUUIR3lNSVZbuIPhbk154RYHKOQMOj3QAAEz8+XLojdwMexSCfFGPB 8Qs0jFugV79l21MlQnJCKg1aSTEX6lCg3yoVvtLqAZklPwEXs4Alcde2QL2BnTTz4Ni5 R6NC0ZtjC6TvhsWeSO5tROaAValorFyCdUeaiAt3dZ1NXC+D3ahWorLAdMA6aWcs0SZp uW8A==; darn=lists.postgresql.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1777495633; x=1778100433; darn=lists.postgresql.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=Me/2khUo1FATNdYEkF1cD3Q+SuDd4ts4Ci/PZVbuWIQ=; b=gpQ6ghnr6XAnbb9e3D9DoZUnDafFO65sJbCrC7+CYDJ6SjCNeX+YXKDRYSZZWcnw5i /RR2IvV15RTivanu5kc+lNO+pSTp4TO47M3+Ep/Oo3boGddTTQr/vtDHBuDg1iz0Mnq4 8JT5G6bMTtFIRiWCGcnVRQ7qYctjm/nUR7NO1osBPp7bh0NFL5pibFzKaqP7qAqCH15Y pgi5eY1YwUWJjCHaVcmlvRRmzYYcPmJoQLQPlyrQyAPyeVQ8vMVw3I0Ao7X5sG51WK1Q XyetCfipw6o77wng8+8vr07vahD45Mf7++TXunNMPfJECzj/wejZ77apLm3pf2nNpy4l 0oUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1777495633; x=1778100433; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=Me/2khUo1FATNdYEkF1cD3Q+SuDd4ts4Ci/PZVbuWIQ=; b=kZLMK9Zy9Lq9TkALGjRDe8yYC7uOTlAU2EftF1E7pWqiZbj2fntsc/i+woVbe+eLMx MLAHYBfG13v01a+VQNdxWXDgudldYjG/WAvp3LDBv9xiIx8xR8rAASxieNL0rx7ROuQX ZB6in2adONZOj+sZ/xYW0iWncnS5T7dbQcQYTixteSzzi4dgqLfhvVexyUchtSD5ySP5 E30GrCbbl6WEhQ8O9b231fQAN/T6M/82vpLN4qe+equoAS0fIA1t/1ulpiNHt1flhhqi rcVIbYxzC4e59ihaw80kr8X/ZkeC2IYO4UmfPcqkSEzyU4T6it3tzI/Nl8BUfg5fLBJ/ Qj4w== X-Forwarded-Encrypted: i=1; AFNElJ9uhw2wKoee9fjENEsyGQ8j9GpF8ct98UVQXB8PFOSe5xS2RvY/vPW4cu+V+M4eZsfYmk51jX0WVsYHv2GE@lists.postgresql.org X-Gm-Message-State: AOJu0YyeVyh0UjNV3UvXCmEzstm7zdRBYO2hOXNHr06Tsg9y+EgHTvSH XGEseLyxoLkcmgVrP7iUCJuJSA4nq65iRQdUPJRhX541VYQDCYKyzzCQ5t3j+mgRcx8yFJduVWc tRu4xaYieTL7PharF+eVd1/oldaxGL84= X-Gm-Gg: AeBDievNPmVfu+Ib9Z4Sp9kndOxlETSz0QmMrJl9PP7lYKFMgDGI0gDYFIy1WJdFt8y 8Rbb+fHvdfnovkvxBWkZm7cAuXwme/Bow/7kSxc1RlRaDLxkkS2VlLUO1P0OZIu/GAPn4maqnqW Zvoc6gHH+P4Nt0L3m6zUQ98ttfHY0oma4RBFIfSJJsalKroHh/eP4JZFi7+K9rZ6n5LpAtpqSM1 vD3RKhmMBJuGHd07nayShivhCHCloNXdqaQAiK5s+P0IewxSEmylpSmwkFbrfjmziTcMNbYu/xX eSoaY7o9SNUB0ldBt5yAaMy7iycW7OXmKy7a6OVuR/Is54VwqNSDIv16/uRT X-Received: by 2002:a17:907:961c:b0:ba8:8094:f7af with SMTP id a640c23a62f3a-bbac61b9ac4mr18902566b.18.1777495632609; Wed, 29 Apr 2026 13:47:12 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Robert Haas Date: Wed, 29 Apr 2026 16:46:57 -0400 X-Gm-Features: AVHnY4KZpgDn6qdVpdmoe_1HEKQjjlygbvArFj3PqO-gpfv8ykO960uuqX7Nibs Message-ID: Subject: Re: [Patch]Add Graph* node support to expression_tree_mutator To: Ashutosh Bapat Cc: SATYANARAYANA NARLAPURAM , PostgreSQL Hackers Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Tue, Apr 28, 2026 at 11:05=E2=80=AFAM Ashutosh Bapat wrote: > The walker didn't WALK labelexpr and quantifier either. Given that > labelexpr is a boolean expression it needs to be WALKed. quantifier is > IntList which is ignored by other nodes as well when WALKing. But we > need to copy quantifier in mutator otherwise the mutated expression > will point to the same IntList as the original node. Other nodes also > copy the OidLists and IntLists when mutating them. I have modified the > test query to cover the label expression mutator. > > raw_expression_walker didn't cover labelexpr either. Added it there. > The label expression at that stage contains ColumnRef and BoolExpr > which are already covered by raw expression tree walker. Hi, 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. Other than that, this looks good to me. --=20 Robert Haas EDB: http://www.enterprisedb.com