Re: pgsql: Extended statistics on expressions - Mailing list pgsql-committers

From Alvaro Herrera
Subject Re: pgsql: Extended statistics on expressions
Date
Msg-id 20210331170828.GA26795@alvherre.pgsql
Whole thread Raw
In response to Re: pgsql: Extended statistics on expressions  (Tomas Vondra <tomas.vondra@enterprisedb.com>)
Responses Re: pgsql: Extended statistics on expressions  (Tomas Vondra <tomas.vondra@enterprisedb.com>)
List 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



pgsql-committers by date:

Previous
From: Tomas Vondra
Date:
Subject: Re: pgsql: Extended statistics on expressions
Next
From: Tomas Vondra
Date:
Subject: Re: pgsql: Extended statistics on expressions