On Thu, Feb 27, 2025 at 1:42 PM Jeff Davis <pgsql(at)j-davis(dot)com> wrote:
> It would make more sense to me if we either (a) enforced work_mem as it
> was at the time of planning; or (b) replanned if executed with a different
> work_mem (similar to how we replan sometimes with different parameters).
>
Definitely (b).
But I'm not sure whether someone might be relying on the existing behavior?
>
I cannot fathom a reason why.
Cheers,
Greg
--
Crunchy Data - https://www.crunchydata.com
Enterprise Postgres Software Products & Tech Support