Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lReKo-0001zP-Dz for pgsql-committers@arkaria.postgresql.org; Wed, 31 Mar 2021 17:08:50 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lReKn-0006iz-7w for pgsql-committers@arkaria.postgresql.org; Wed, 31 Mar 2021 17:08:49 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lReKm-0006is-GC for pgsql-committers@lists.postgresql.org; Wed, 31 Mar 2021 17:08:49 +0000 Received: from [66.111.4.29] (helo=out5-smtp.messagingengine.com) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lReKi-0004CK-GZ for pgsql-committers@lists.postgresql.org; Wed, 31 Mar 2021 17:08:48 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id 82DCD5C00B3; Wed, 31 Mar 2021 13:08:32 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Wed, 31 Mar 2021 13:08:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; bh=hZOVrWdSBRKH4CKXj29bIyb+AkLy/qBOnc25EdMXuh4=; b=jsqWWp/j x3Lfh2Lyzc3sG+h8e4LVh5MHExaN9EhH1n3/lZun6M2llZqUGdxjERe80t5+buY7 Rqu+g+/h9QhRvn2JNhPN3cKlcm1YVhpxym1LFN6hNI5YVtXP6K8fAlqUuYICcFua R3cTb+pxtvrd3r2v47gAt9v2TaLtlezICPBAoKN1tijf58LySXoIb5w6iym5WMEO bqylUqnG1kptfKy83QTWeYTcEZxmbB/FoVv4Bo6vX7QnH3jxXqJCrHJxTjCNTFmg nqFgVivRWgaDQDStJC5/VBl73locuBpijXeO6baEfHmgA/1++tDexLPMCuR3Tfbw H9IUT1OavNBFJA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrudeivddgudduvdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpeffhffvuffkgggtugfgjggfsehtkeertddtredunecuhfhrohhmpeetlhhv rghrohcujfgvrhhrvghrrgcuoegrlhhvhhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorh hgqeenucggtffrrghtthgvrhhnpeeufffhjeeiueeuffegvddukeegledtveeivdeiueef ieeivefgteehueefteehvdenucfkphepudeltddrleehrdduledrleehnecuvehluhhsth gvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprghlvhhhvghrrhgvsegr lhhvhhdrnhhoqdhiphdrohhrgh X-ME-Proxy: Received: from perhan.alvh.no-ip.org (unknown [190.95.19.95]) by mail.messagingengine.com (Postfix) with ESMTPA id 97501240054; Wed, 31 Mar 2021 13:08:31 -0400 (EDT) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 8DFC62A0CAD; Wed, 31 Mar 2021 14:08:28 -0300 (-03) Date: Wed, 31 Mar 2021 14:08:28 -0300 From: Alvaro Herrera To: Tomas Vondra Cc: pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Extended statistics on expressions Message-ID: <20210331170828.GA26795@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-Host-Lookup-Failed: Reverse DNS lookup failed for 66.111.4.29 (deferred) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 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