| From: | Justin Pryzby <pryzby(at)telsasoft(dot)com> |
|---|---|
| To: | Frits Jalvingh <jal(at)etc(dot)to> |
| Cc: | pgsql-performance(at)postgresql(dot)org |
| Subject: | Re: Postgres using nested loops despite setting enable_nestloop to false |
| Date: | 2020-11-17 16:06:22 |
| Message-ID: | 20201117160622.GB24784@telsasoft.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-performance |
On Tue, Nov 17, 2020 at 04:58:45PM +0100, Frits Jalvingh wrote:
> Hi Justin, thanks for your help!
> I have attached both plans, both made with set enable_nestloop = false in
> the attachments.
> On the Postgresql 13 server work_mem is 64MB. It cannot really be higher
> there because Postgresql does not control its use of memory, setting it
> higher on this VM will cause the OOM killer to kill Postgresql for some
> queries.
Can you try to get an explain just for this query with either increased
work_mem or hash_mem_multiplier ?
Or possibly by messing with the cost parameters, including seq_page_cost.
Making all cost_* params 1000x smaller might allow the disable cost to be
effective.
--
Justin
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Frits Jalvingh | 2020-11-17 16:08:39 | Re: Postgres using nested loops despite setting enable_nestloop to false |
| Previous Message | Frits Jalvingh | 2020-11-17 15:58:45 | Re: Postgres using nested loops despite setting enable_nestloop to false |