Re: [Patch]Add Graph* node support to expression_tree_mutator

From: Ashutosh Bapat <ashutosh(dot)bapat(dot)oss(at)gmail(dot)com>
To: Peter Eisentraut <peter(at)eisentraut(dot)org>
Cc: Robert Haas <robertmhaas(at)gmail(dot)com>, SATYANARAYANA NARLAPURAM <satyanarlapuram(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: [Patch]Add Graph* node support to expression_tree_mutator
Date: 2026-05-11 06:15:59
Message-ID: CAExHW5v1frgDptL_BsPq3-zt2q9zAkBkp80u3AyJtiQyJFTHRg@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Mon, May 4, 2026 at 9:09 PM Peter Eisentraut <peter(at)eisentraut(dot)org> wrote:
>
> On 30.04.26 08:44, Ashutosh Bapat wrote:
> > On Thu, Apr 30, 2026 at 2:17 AM Robert Haas <robertmhaas(at)gmail(dot)com> 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.)
>

Thanks. The changes look good to me.

--
Best Wishes,
Ashutosh Bapat

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message shveta malik 2026-05-11 06:21:19 Re: Proposal: Conflict log history table for Logical Replication
Previous Message Chao Li 2026-05-11 06:13:27 Fix pg_stat_statements display of normalized FETCH counts