Re: pg_plan_advice - Mailing list pgsql-hackers

From Robert Haas
Subject Re: pg_plan_advice
Date
Msg-id CA+TgmoZCYd1iEAZAYn0ie02mQ=Jc_v=8JRFdJRBDkdkOGLhBTg@mail.gmail.com
Whole thread Raw
In response to Re: pg_plan_advice  (Lukas Fittl <lukas@fittl.com>)
List pgsql-hackers
On Thu, Jan 8, 2026 at 11:31 AM Lukas Fittl <lukas@fittl.com> wrote:
> Yeah, I would agree with you that is inconsistent with the flag's name
> - but on the flip side, its difficult for the caller to conditionally
> set the flag (which you'd have to do to avoid a "Disabled" showing in
> the plan), since we're setting it on the RelOptInfo (do we know if the
> scan is a sample scan at that point?).

How about checking rte->tablesample, as set_rel_pathlist does?

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



pgsql-hackers by date:

Previous
From: Lukas Fittl
Date:
Subject: Re: pg_plan_advice
Next
From: Andrey Borodin
Date:
Subject: Re: GIN pageinspect support for entry tree and posting tree