| From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
|---|---|
| To: | David Rowley <dgrowleyml(at)gmail(dot)com> |
| Cc: | Jeff Davis <pgsql(at)j-davis(dot)com>, pgsql-hackers(at)postgresql(dot)org |
| Subject: | Re: Should work_mem be stable for a prepared statement? |
| Date: | 2025-02-27 22:04:06 |
| Message-ID: | 2633722.1740693846@sss.pgh.pa.us |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
David Rowley <dgrowleyml(at)gmail(dot)com> writes:
> On Fri, 28 Feb 2025 at 07:42, Jeff Davis <pgsql(at)j-davis(dot)com> wrote:
>> My first reaction is that it's not right because the costing for the
>> plan is completely bogus with a different work_mem. 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).
> If we were to fix this then a) effectively already happens for the
> enable_* GUCs, so b) would be the only logical way to fix.
Given that nobody's complained about this for twenty-plus years,
I can't get excited about adding complexity to do either thing.
regards, tom lane
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Melanie Plageman | 2025-02-27 22:55:19 | Re: Log connection establishment timings |
| Previous Message | Devulapalli, Raghuveer | 2025-02-27 22:02:34 | RE: Improve CRC32C performance on SSE4.2 |