Re: pgsql: Extended statistics on expressions

From: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
To: Tomas Vondra <tomas(dot)vondra(at)enterprisedb(dot)com>
Cc: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: Re: pgsql: Extended statistics on expressions
Date: 2021-03-31 17:08:28
Message-ID: 20210331170828.GA26795@alvherre.pgsql
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

On 2021-Mar-31, Tomas Vondra wrote:

> Thanks for the report, I'll take a look. You're right this seems like an
> out-of-bounds access, but mcv_match_expression is only expected to be
> run on expressions we know are in the statistics (because we pick the
> statistics like that). Clearly, that does not happen here, not sure why.
>
> It's quite weird that we end up running textlike(), when the statistics
> is on (double precision, boolean) columns ...

Uninitialized values somewhere? Maybe valgrind would help.

--
Álvaro Herrera 39°49'30"S 73°17'W

In response to

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Tomas Vondra 2021-03-31 17:54:11 Re: pgsql: Extended statistics on expressions
Previous Message Tomas Vondra 2021-03-31 16:44:09 Re: pgsql: Extended statistics on expressions