Re: BUG #18854: PostgreSQL chooses a suboptimal execution plan when using a specific WHERE filter

From: Andrei Lepikhov <lepihov(at)gmail(dot)com>
To: yonisade83(at)gmail(dot)com, pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Re: BUG #18854: PostgreSQL chooses a suboptimal execution plan when using a specific WHERE filter
Date: 2025-03-18 14:16:36
Message-ID: 91d297ae-71ca-4406-a404-f8daa0b0c4a5@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On 3/18/25 12:34, PG Bug reporting form wrote:
> Query has a specific WHERE filter for tiny lookup table "t8" (19 rows) which
> generates an execution plan which has two "Nested Loop" steps instead of
> "Hash Join" steps which makes the query finish after 90 seconds (and spiking
> the server CPU when being ran by dozens of sessions simultaneously) instead
> of ~3 seconds (when commenting out that specific WHERE filter clause I
> mentioned below):
May you provide EXPLAIN ANALYZE VERBOSE in standard text output format?

--
regards, Andrei Lepikhov

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Robins Tharakan 2025-03-19 01:01:16 Re: BUG #18852: Unexpected expression in subquery output
Previous Message Tom Lane 2025-03-18 13:58:05 Re: BUG #18853: integer may overflow in array_user_functions