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.89) (envelope-from ) id 1iqnWs-000266-82 for pgsql-hackers@arkaria.postgresql.org; Mon, 13 Jan 2020 00:24:26 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iqnWr-0008Am-1q for pgsql-hackers@arkaria.postgresql.org; Mon, 13 Jan 2020 00:24:25 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iqnWq-0008Ae-FV for pgsql-hackers@lists.postgresql.org; Mon, 13 Jan 2020 00:24:24 +0000 Received: from mail-wm1-x32e.google.com ([2a00:1450:4864:20::32e]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1iqnWn-0000aD-1s for pgsql-hackers@postgresql.org; Mon, 13 Jan 2020 00:24:23 +0000 Received: by mail-wm1-x32e.google.com with SMTP id w5so8596750wmi.1 for ; Sun, 12 Jan 2020 16:24:20 -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:references:mime-version :content-disposition:in-reply-to; bh=dbkfdlojfnbK0JJPUGwLKbXVM7cnzyZuS/NXsRdcflU=; b=Crq1hy/7ONCMuuaWVFqpStTsbtqiRm6fZxNout109OlQqbQn66KUz01lEKiB6G6GjW XKaspurc0PO1+pwJHBOZaTGzcvtsUWpN+buD28cO3XDtVWzjtI3a3QuqDv35+knP/2pX BWw86uBec8+st568i8TcqKy5otsmOf1C0SwoL3S4e+Xt6j5Pbb1QwfRLFAbyePqDae/3 HDr+KrEcWjBwl/HqBx8vdYqGAoWUHvfjbgeCqG88jRzRRrulEtKZ1m1Qhg1xNUFVHKIN V0KHVoSOVSl2EggAuMoO1a5kAn4xJbJVdBXNcNGq14x4rECDdUlqvv53UXYrRW6ZGVuN DZjA== 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:references :mime-version:content-disposition:in-reply-to; bh=dbkfdlojfnbK0JJPUGwLKbXVM7cnzyZuS/NXsRdcflU=; b=Md/pqZlVGJZRo+rhDMSYXrstDqH7Nci58WkFMZMpp20/t7PB5ZTLTLrNyOke+6tpa7 +kKT7QgpH4QuP3enSk93VfFCbcWOG4okXOvZepbOD0dfnuFf/SDXpMbB9PTB6+BGgNWi fyrPLOp0DF7GJxiDP9EWyNOF1PYQqzElCv8qmlQgQqcDNQTyN2x53pVcdl4fxtGhmcNQ 5GARPP5073M9WFexR01aavszD3a0AAj+ILnCwfAAxa+duEO+QRsQmG0XYESYPmNe1lrY +XE3VaURyCRdKfR+zYW5VJKajCzxiufKPgPpzknDe11RMLxdBLJa/hSMlvYCSZCX4xxp IiAg== X-Gm-Message-State: APjAAAUv3HExjRdgojjkYHowltADSrgkV8Ry1w6X3wGtprtcBUmLoRsw 3cparPt3P9U9uTj92cz8Saerrg== X-Google-Smtp-Source: APXvYqwnUzZ3zQrpvb6Oj8mTBVOeD3DUsx5JoSVXtgVFCS+02us+hweqRyxJ2QgntGc5YmUw/30H1w== X-Received: by 2002:a05:600c:22d1:: with SMTP id 17mr17227039wmg.23.1578875058858; Sun, 12 Jan 2020 16:24:18 -0800 (PST) Received: from localhost (ip-86-49-253-92.net.upcbroadband.cz. [86.49.253.92]) by smtp.gmail.com with ESMTPSA id b17sm12762361wrx.15.2020.01.12.16.24.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 12 Jan 2020 16:24:16 -0800 (PST) Date: Mon, 13 Jan 2020 01:24:15 +0100 From: Tomas Vondra To: Mark Dilger Cc: PostgreSQL Hackers Subject: Re: Using multiple extended statistics for estimates Message-ID: <20200113002415.urf234qzwz5catf2@development> References: <20191114155541.zliellgi2if4bb5f@development> <20191114200420.c3x2jf7ywzs23uzo@development> <20191201190858.oielyi5rpfg5mc23@development> <20191205171554.leclyueirbwun7dp@development> <20191205175145.vlqw6c6h2ztiimy2@development> <1cf520f8-8953-0f16-4794-c9a001e3e436@gmail.com> <20191209220017.6eidna5ai7z2wdf5@development> <0ff3bd5d-33a7-6283-1a80-91d1df5c988c@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <0ff3bd5d-33a7-6283-1a80-91d1df5c988c@gmail.com> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi, I've pushed these two improvements after some minor improvements, mostly to comments. I ended up not using the extra tests, as it wasn't clear to me it's worth the extra duration. regards -- Tomas Vondra http://www.2ndQuadrant.com PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services