Re: Bad query plan when you add many OR conditions - Mailing list pgsql-performance

From Tomas Vondra
Subject Re: Bad query plan when you add many OR conditions
Date
Msg-id 20200113221411.sm5dm6fol3uwbuyp@development
Whole thread Raw
In response to Re: Bad query plan when you add many OR conditions  (Marco Colli <collimarco91@gmail.com>)
List pgsql-performance
On Fri, Jan 10, 2020 at 02:30:27PM +0100, Marco Colli wrote:
>@Justin Pryzby I have tried this as you suggested:
>
>CREATE STATISTICS statistics_on_subscriptions_project_id_and_tags ON
>project_id, tags FROM subscriptions;
>VACUUM ANALYZE subscriptions;
>
>Unfortunately nothing changes and Postgresql continues to use the wrong
>plan (maybe stats don't work well on array fields like tags??).
>

We support this type of clause for extended statistics (yet).


regards

-- 
Tomas Vondra                  http://www.2ndQuadrant.com
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services 



pgsql-performance by date:

Previous
From: Shira Bezalel
Date:
Subject: Re: Seeking reason behind performance gain in 12 with HashAggregate
Next
From: Alvaro Herrera
Date:
Subject: Re: Seeking reason behind performance gain in 12 with HashAggregate