From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: Tomas Vondra <tomas.vondra@enterprisedb.com>
Cc: pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: Extended statistics on expressions
Date: Wed, 31 Mar 2021 14:08:28 -0300
Message-ID: <20210331170828.GA26795@alvherre.pgsql> (raw)
In-Reply-To: <d20c9df2-9d2b-780c-3e04-b90dc7b9a5b8@enterprisedb.com>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: alvherre@alvh.no-ip.org, tomas.vondra@enterprisedb.com
Subject: Re: pgsql: Extended statistics on expressions
In-Reply-To: <20210331170828.GA26795@alvherre.pgsql>
References: <d20c9df2-9d2b-780c-3e04-b90dc7b9a5b8@enterprisedb.com> <20210331170828.GA26795@alvherre.pgsql>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox