Re: pg_plan_advice

From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: pg_plan_advice
Date: 2025-12-11 15:09:47
Message-ID: CA+TgmoYkSzpa5RrO+03KWoHR1Z_Df=3UGL=Lx6v-4VzdnXBqAQ@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Fri, Dec 5, 2025 at 2:57 PM Robert Haas <robertmhaas(at)gmail(dot)com> wrote:
> 014f9a831a320666bf2195949f41710f970c54ad removes the need for what was
> previously 0004, so here is a new patch series with that dropped, to
> avoid confusing cfbot or human reviewers.

Here's v6, with minor improvements over v5.

0001: Unchanged.

0002, 0003: Unchanged except for typo fixes pointed out by reviewers.

0004: I've improved the hook placement, which was previously such as
to make correct unique-semijoin handling impossible, and I improved
the associated comment about how to use the hook, based on experience
trying to actually do so.

0005: Fixed a small bug related to unique-semijoin handling (other
problems remain). Tidied things up to avoid producing non-actionable
NO_GATHER() advice in a number of cases, per some off-list feedback
from Ajaykumar Pal.

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

Attachment Content-Type Size
v6-0002-Store-information-about-elided-nodes-in-the-final.patch application/octet-stream 9.3 KB
v6-0004-Allow-for-plugin-control-over-path-generation-str.patch application/octet-stream 55.7 KB
v6-0003-Store-information-about-Append-node-consolidation.patch application/octet-stream 27.0 KB
v6-0001-Store-information-about-range-table-flattening-in.patch application/octet-stream 7.9 KB
v6-0005-WIP-Add-pg_plan_advice-contrib-module.patch application/octet-stream 375.9 KB

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2025-12-11 15:32:26 Re: Consistently use palloc_object() and palloc_array()
Previous Message Melanie Plageman 2025-12-11 14:59:04 Re: Fix uninitialized PruneFreezeResult in pruneheap and vacuumlazy