Re: plan shape work - Mailing list pgsql-hackers

From Robert Haas
Subject Re: plan shape work
Date
Msg-id CA+Tgmob8am2whM==570_7b8nKk7tWV-GoV9CVSioSWKhTKUFYw@mail.gmail.com
Whole thread Raw
In response to Re: plan shape work  (Junwang Zhao <zhjwpku@gmail.com>)
List pgsql-hackers
On Sun, Sep 21, 2025 at 6:35 AM Junwang Zhao <zhjwpku@gmail.com> wrote:
> After further study, this should not be a problem, since the address of
> &gplan->plan is the same as gplan, but the code is a little bit confusing
> at first glance, I think *return (Plan *) gplan* is easier to understand
> but I don't insist ;)

Thanks for looking into it. Stylistically, I prefer the style without
the cast, but the effect is the same.

--
Robert Haas
EDB: http://www.enterprisedb.com



pgsql-hackers by date:

Previous
From: Richard Guo
Date:
Subject: Re: Fix wrong filename in header comment of gin_tuple.h
Next
From: David Rowley
Date:
Subject: Re: [PATCH] Correct RangeTblEntry.join_using_alias comment to reflect field order