1
0
mirror of https://github.com/postgres/postgres.git synced 2026-10-23 13:29:09 +03:00
Files
postgres/src/tools
Robert Haas c9c660e6ae Change GEQO fitness comparisons to consider disabled_nodes.
Prior to v18, the total cost of a plan was just one number, a
floating-point value. Commit e222534679
introduced a second component, the number of disabled_nodes at or
below that level of the plan tree. Unfortunately, I (rhaas) failed
to realize that GEQO extracts the cost from each candidate plan and
compares it directly as a measure of fitness.

This means that, at least in principle, it's possible for GEQO to
prefer a plan with more disabled_nodes and lower cost over one with
fewer disabled_nodes and higher cost, which is incorrect. It may be
possible for that to become a practical issue in v18, but it's much
more likely to become an issue in v19 due to pg_plan_advice. Hence,
since the straightforward fix breaks ABI compatibility, back-patch
only to v19.

Backpatch-through: 19
Discussion: https://postgr.es/m/CA+TgmoYmXy-jiP5qDhqNEiYFEBzQsArO6O2d9E8szNZqi1bePQ@mail.gmail.com
2026-09-17 09:28:31 -04:00
..
2026-07-17 11:48:35 -04:00
2026-01-01 13:24:10 -05:00
2026-05-13 12:07:19 -04:00
…
2026-01-01 13:24:10 -05:00
2022-09-20 18:50:16 +02:00
2026-05-13 12:07:19 -04:00
2026-02-23 13:34:22 -05:00
2026-01-01 13:24:10 -05:00
2026-06-29 16:29:11 -04:00
2023-02-15 09:52:42 +09:00
…
2026-01-01 13:24:10 -05:00
2026-01-01 13:24:10 -05:00
2023-08-14 14:03:29 -04:00
2022-10-05 09:56:05 -07:00
2026-06-29 16:29:11 -04:00
2026-01-01 13:24:10 -05:00