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 1oKk7j-0005CQ-Ns for pgsql-general@arkaria.postgresql.org; Sun, 07 Aug 2022 17:31:35 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oKk7i-0002Ia-Fd for pgsql-general@arkaria.postgresql.org; Sun, 07 Aug 2022 17:31:34 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oKk7i-0002IR-4q for pgsql-general@lists.postgresql.org; Sun, 07 Aug 2022 17:31:34 +0000 Received: from mail-ed1-x532.google.com ([2a00:1450:4864:20::532]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1oKk7f-0008MG-JW for pgsql-general@postgresql.org; Sun, 07 Aug 2022 17:31:32 +0000 Received: by mail-ed1-x532.google.com with SMTP id w3so8920357edc.2 for ; Sun, 07 Aug 2022 10:31:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=enterprisedb.com; s=google; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc; bh=v/b5PKRKte743eIxg6dSjaE4+vrNqxDv+IBKo6+FoT8=; b=Hzmv6JlYKh+3R4wFmNMC6ifINrEy6q97S7s9TfWoPb2FSuTf2/fp+pP3BiPA4mpJ2Y 1ek/Hcrce/QcsEmCnm7H8jqmSoLkLwMwCxX+PLEutEFbD0tUYGsrsRndA8sLltn+7WAH XeVzg8VduxsxvYH24X7voZh5FUz2D5bxR2Rsaq2Z7+8Jzz7aCKmvQ4spgzZMccCgrT32 T4tsFLHnjSlFTysOqNkGv6sT8hYISIuXJdgy7LOUA0Mqi1PnZ+HEkA5bg6X/AlqpkwdZ GD7fLLUhMcLxPzk1305zk0J+Df9ae1licPMjA5RvmQwjiSrnpnABg4jgDOiPrukMIPMg PeWg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc; bh=v/b5PKRKte743eIxg6dSjaE4+vrNqxDv+IBKo6+FoT8=; b=uRdS46dHQNjkQDVeVVWoX9ODLDNgBuzKjBUcF0T/By5UXe8Jcnrj6tqiBh3n+iDuVw CjxzBXKHX/0kr2TuX0+uUJxkHpdboIAp8yH/bR9/GvWyHzsI61NHlUo2BVJlPqWlsMy4 LiJubWzNwdraW3MnHb5H9rYEeOzEkp+PbPyfvC9g9/j9QJ8o/U5rjpM9KEm50vbuceiR urLBBaf9Lu/cSoQ9s6S3FkrhkHb2v2pAASs6oiMuLEDr5HaPcRW/bzfXkuVgyb7TzcqE JVh0yQ3jLA0FjR/XqubyOiC/CML1cL4ygHs95jHhr4R1EdHD0ySN0+gYktOIoFiXmt5S 4LAw== X-Gm-Message-State: ACgBeo1ANsapOdhm0hXpppmO9p7X3R7FrO6/Xz8vIcaQRhHvY/VXIvI7 OvOQ7Qn7kjaqFj5jsp0HCEltj/O2eftE53sDrma1lQsnTvym3KObShs96W3lJ1/wRSE88S4wJrP nsGXok9+/vzN8HRw1voBCDwvrv8dv7cQcYP3mpi5v3frNyWvJ6DydQXQmHxH6CuA3sCm9IsOH6d +8kzIKyvQfcl75kcFmbxmt2bvpTSW9AbnhhMODq4b06QkF X-Google-Smtp-Source: AA6agR79Hw3frEiy17qLypHGdsQ57lMpV+ufZuf3KY1PHpeFKgPREirE5CE1sNXfo6QlP6D4lx+CBw== X-Received: by 2002:a05:6402:4446:b0:43b:e1f4:8525 with SMTP id o6-20020a056402444600b0043be1f48525mr14925910edb.236.1659893490031; Sun, 07 Aug 2022 10:31:30 -0700 (PDT) Received: from [10.137.0.17] (ip-86-49-250-151.bb.vodafone.cz. [86.49.250.151]) by smtp.gmail.com with ESMTPSA id f15-20020a50ee8f000000b0043bc4b28464sm3434337edr.34.2022.08.07.10.31.29 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 07 Aug 2022 10:31:29 -0700 (PDT) Message-ID: Date: Sun, 7 Aug 2022 19:31:28 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.0 Subject: Re: Expr. extended stats are skipped with equality operator Content-Language: en-US To: Tom Lane Cc: Danny Shemesh , pgsql-general@postgresql.org References: <0936f584-a910-1d49-6806-dd0a8303c3e6@enterprisedb.com> <257488.1659893282@sss.pgh.pa.us> From: Tomas Vondra In-Reply-To: <257488.1659893282@sss.pgh.pa.us> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-CLOUD-SEC-AV-Info: enterprisedb,google_mail,monitor X-CLOUD-SEC-AV-Sent: true X-Gm-Spam: 0 X-Gm-Phishy: 0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 8/7/22 19:28, Tom Lane wrote: > Tomas Vondra 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