Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.92) (envelope-from ) id 1j7OmP-00015I-Mw for pgsql-bugs@arkaria.postgresql.org; Thu, 27 Feb 2020 19:25:05 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1j7OmO-00041j-I1 for pgsql-bugs@arkaria.postgresql.org; Thu, 27 Feb 2020 19:25:04 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1j7OmO-00041c-5y for pgsql-bugs@lists.postgresql.org; Thu, 27 Feb 2020 19:25:04 +0000 Received: from mail-qt1-x842.google.com ([2607:f8b0:4864:20::842]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1j7OmL-0007cI-Is for pgsql-bugs@lists.postgresql.org; Thu, 27 Feb 2020 19:25:03 +0000 Received: by mail-qt1-x842.google.com with SMTP id e20so155832qto.5 for ; Thu, 27 Feb 2020 11:25:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=LxNxKrBD/GCsIn4y4nN6xysDX48zV8xWj0acUmm5SFs=; b=U9+Nyxgf7N8ZRjVPwirpPprjzADps0MvfDLhMu4zXR2izEsA5Q2YhoSMAPywYJRLEx gO9+sxArk9DAf6jJPv9tgMfKenLWBZ1+QWl8JuC847UNACfus76WfEwQZfQJGo95tPTA TBmHN/5MyRcYSnYBVDZrcWDN4wpHX4kjrPo5NqGMEJEi9zSTuc6XD49+7s8iyDQghhPP Q70Dnx2AnwX4E0bQKuPF1BZk81F3zZ1OxHy6Ip0VJZzofBX9NT1sd3xvbRwVByg4vZ77 /urviewNXKrahPSfbvgka5yZd3LIj58RSmcVEYaw0dAj92QxsygxWnS1Wb9HVixksGd1 WfjA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=LxNxKrBD/GCsIn4y4nN6xysDX48zV8xWj0acUmm5SFs=; b=kiw6vVDQpMRis3YatbRZstMFVX7Aqb4a50KI/r4EkZLRjxy857SHG1V7qA2TNIPzOi UazPRIALvGJ6fFYpjQhSZjCEqThBIVNO1PhZnZhvqDuhtIvUVEM+uJvZrz/6dtnxE768 WlAZOPA66Jt8WnGOxVqhu41Hot1xIxyvSpeJLucbYrgKHv8mTHOe/hIvrk9FH3up2aA1 tBsIdGzE5AkLCDyAUT2iT9Ad59qU4rygPn4MQ8EGDxc3NlwsbQB4D6oNEbUaqRxsbBP+ AMQV/+KBfZj9EVQxEhigX51uDZCT/cJ2EGn30Un5UJZjiu6w6RfNmGfohoz6YHBstS2w N/wQ== X-Gm-Message-State: APjAAAXYddZz7fY9oNZ7dBe1NT1N7fQjaFpL8wPhm7v6BuJnhSPUFEst r9WJ6wskqsjXo9kOGNWc1KX+Pw== X-Google-Smtp-Source: APXvYqy3lzSH0RadZcw9PBaNMNd7lJDrJZo6IEmW5Q/3ElAy//5t5uaV6/5gDuwTuic0E/HJzYUM6A== X-Received: by 2002:ac8:6607:: with SMTP id c7mr784115qtp.51.1582831499515; Thu, 27 Feb 2020 11:24:59 -0800 (PST) Received: from nimloth.alvh.no-ip.org ([179.56.30.174]) by smtp.gmail.com with ESMTPSA id a6sm2185976qkn.104.2020.02.27.11.24.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Feb 2020 11:24:57 -0800 (PST) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id 5E215300651; Thu, 27 Feb 2020 16:24:55 -0300 (-03) Date: Thu, 27 Feb 2020 16:24:55 -0300 From: Alvaro Herrera To: Tom Lane Cc: Michael Paquier , Marko Tiikkaja , PostgreSQL mailing lists Subject: Re: BUG #15383: Join Filter cost estimation problem in 10.5 Message-ID: <20200227192455.GA1788@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <30791.1575135158@sss.pgh.pa.us> User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2019-Nov-30, Tom Lane wrote: > Or, since I think we're out of the realm of what would be sane to > back-patch anyway, maybe it's time to take two steps back and try > to find a real, non-stopgap solution. As I said upthread, I think > the core problem here is failure to distinguish quals associated with > the uniqueness condition from additional "filter" quals that have to > be checked anyway. I wonder how hard that is to fix. So does anyone have a way to move this forward? David, any input on this? Thanks -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services