On Mon, 2025-02-24 at 12:46 -0800, James Hunter wrote: > Attached please find the patch set I mentioned, above, in [1]. It > consists of 4 patches that serve as the building blocks for and a > prototype of the "query_work_mem" GUC I proposed:
I didn't look at the details yet. But from: https://www.postgresql.org/message-id/CAJVSvF7x_DLj7-JrXvMB4_j%2BjzuvjG_7iXNjx5KmLBTXHPNdGA%40mail.gmail.com I expected something much smaller in scope, where we just add a "plan_work_mem" field to the Plan struct, copy the work_mem global GUC to that field when we construct a Plan node, and then reference the plan_work_mem instead of the GUC directly. Can you give a bit more context about why we need so many changes, including test changes? Regards, Jeff Davis