Re: pg_plan_advice - Mailing list pgsql-hackers

From Robert Haas
Subject Re: pg_plan_advice
Date
Msg-id CA+TgmoYEz=ef3-djP-F0SVbOCyPYy6smrhuFBgnNwBNx8UyJpQ@mail.gmail.com
Whole thread Raw
In response to Re: pg_plan_advice  (Zsolt Parragi <zsolt.parragi@percona.com>)
List pgsql-hackers
On Wed, Jan 28, 2026 at 6:41 PM Zsolt Parragi <zsolt.parragi@percona.com> wrote:
> Just noticed this in the committed patch, it doesn't seem intentional:
> (the last line wasn't part of the patch, probably an accidental leftover)
>
> src/backend/optimizer/ptah/costsize.c:1462
>
>         if (path->parallel_workers == 0)
>                 enable_mask |= PGS_CONSIDER_NONPARTIAL;
>         path->disabled_nodes =
>                 (baserel->pgs_mask & enable_mask) != enable_mask ? 1 : 0;
>         path->disabled_nodes = 0;

Good catch. I have included a fix for this in
4020b370f214315b8c10430301898ac21658143f.

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



pgsql-hackers by date:

Previous
From: Matheus Alcantara
Date:
Subject: Re: [PATCH] llvmjit: always add the simplifycfg pass
Next
From: Robert Haas
Date:
Subject: Re: pg_plan_advice