pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tomas Vondra <tomas.vondra@enterprisedb.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Danny Shemesh <dany74q@gmail.com>
Cc: pgsql-general@postgresql.org
Subject: Re: Expr. extended stats are skipped with equality operator
Date: Sun, 7 Aug 2022 19:31:28 +0200
Message-ID: <a7f9ac72-5711-7b5f-5052-6f708436037e@enterprisedb.com> (raw)
In-Reply-To: <257488.1659893282@sss.pgh.pa.us>
References: <CAFZC=QqfpQCG4gCsZYnYgDseazjiKNLM3=vUg3zS64LbuXrzvQ@mail.gmail.com>
	<0936f584-a910-1d49-6806-dd0a8303c3e6@enterprisedb.com>
	<257488.1659893282@sss.pgh.pa.us>

On 8/7/22 19:28, Tom Lane wrote:
> Tomas Vondra <tomas.vondra@enterprisedb.com> writes:
>> Yeah, this seems like a clear bug - we should not fail queries like
>> this. It's a sign statext_is_compatible_clause() and the MCV code
>> disagrees which clauses are compatible.
> 
> Indeed.  I attempted to fix that at e33ae53dd.
> 

Thanks! That probably explains why I've been unable to reproduce that, I
haven't realized there's a fix already.



-- 
Tomas Vondra
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company





view thread (4+ messages)

Message-ID: <a7f9ac72-5711-7b5f-5052-6f708436037e@enterprisedb.com>
Permalink:  ../a7f9ac72-5711-7b5f-5052-6f708436037e@enterprisedb.com/
Also on:    postgresql.org/message-id/a7f9ac72-5711-7b5f-5052-6f708436037e@enterprisedb.com

 · 

reply

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-general@postgresql.org
  Cc: tomas.vondra@enterprisedb.com, tgl@sss.pgh.pa.us, dany74q@gmail.com
  Subject: Re: Expr. extended stats are skipped with equality operator
  In-Reply-To: <a7f9ac72-5711-7b5f-5052-6f708436037e@enterprisedb.com>
  References: <CAFZC=QqfpQCG4gCsZYnYgDseazjiKNLM3=vUg3zS64LbuXrzvQ@mail.gmail.com> <0936f584-a910-1d49-6806-dd0a8303c3e6@enterprisedb.com> <257488.1659893282@sss.pgh.pa.us> <a7f9ac72-5711-7b5f-5052-6f708436037e@enterprisedb.com>

* 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