Re: Planner misestimation for JOIN with VARCHAR

From: David Rowley <dgrowleyml(at)gmail(dot)com>
To: Michael Lewis <mlewis(at)entrata(dot)com>
Cc: Sebastian Dressler <sebastian(at)swarm64(dot)com>, "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Planner misestimation for JOIN with VARCHAR
Date: 2020-06-09 22:55:32
Message-ID: CAApHDvpagMB7x+vNDPZT5EfJtHw617Wve+B-V+XpYacDjvLywg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, 10 Jun 2020 at 09:05, Michael Lewis <mlewis(at)entrata(dot)com> wrote:
>>
>> the join selectivity functions have yet to learn about extended statistics.
>
>
> That is very interesting to me. So, extended statistics would help to properly estimate the result set coming out of a single table when comparing each of those columns to one or many values, but not when joining up another table? Is that on a roadmap or in progress as far as you know?

Yeah, they're currently only used for selectivity estimates on base
table. Using extended statistics for join selectivity estimation is
being worked on [1], so there's a chance that it may happen for PG14.

David

[1] https://commitfest.postgresql.org/28/2386/

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Peter 2020-06-09 23:35:40 Re: Something else about Redo Logs disappearing
Previous Message Peter Eisentraut 2020-06-09 22:21:00 Re: Logical replication stuck in catchup state