Re: RFC: extensible planner state - Mailing list pgsql-hackers

From Robert Haas
Subject Re: RFC: extensible planner state
Date
Msg-id CA+TgmoZ8=ciC+Jc676-j5hfrOxcO-nq=GU2h+w81e8Ructw5+A@mail.gmail.com
Whole thread Raw
In response to Re: RFC: extensible planner state  (Robert Haas <robertmhaas@gmail.com>)
Responses Re: RFC: extensible planner state
List pgsql-hackers
On Tue, Sep 16, 2025 at 4:12 PM Robert Haas <robertmhaas@gmail.com> wrote:
> On Fri, Sep 5, 2025 at 4:19 PM Robert Haas <robertmhaas@gmail.com> wrote:
> > While mulling this over, I realized that this only works if you don't
> > mind propagating information into the final plan regardless without
> > knowing whether or not EXPLAIN was actually used. That's pretty sad,
> [...]
> > The simplest idea that comes to mind for me is to make pg_plan_query()
> > take an ExplainState * argument and pass it through to planner().
>
> Here's a new version that implements this idea and also cleans up a
> few points that Melanie noted.

I think that was rebased over a patch I inadvertently committed to my
local master branch. Trying again.

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

Attachment

pgsql-hackers by date:

Previous
From: Erik Rijkers
Date:
Subject: Re: PG 18 relnotes and RC1 - (typo)
Next
From: Robert Haas
Date:
Subject: Re: PG 18 relnotes and RC1