Re: BUG #18854: PostgreSQL chooses a suboptimal execution plan when using a specific WHERE filter - Mailing list pgsql-bugs

From Andrei Lepikhov
Subject Re: BUG #18854: PostgreSQL chooses a suboptimal execution plan when using a specific WHERE filter
Date
Msg-id 91d297ae-71ca-4406-a404-f8daa0b0c4a5@gmail.com
Whole thread Raw
In response to BUG #18854: PostgreSQL chooses a suboptimal execution plan when using a specific WHERE filter  (PG Bug reporting form <noreply@postgresql.org>)
Responses Re: BUG #18854: PostgreSQL chooses a suboptimal execution plan when using a specific WHERE filter
List 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



pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: BUG #18853: integer may overflow in array_user_functions
Next
From: PG Bug reporting form
Date:
Subject: BUG #18855: Using BRIN index with int8_bloom_ops produces incorrect results