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 1kxHve-0003V5-VM for pgsql-hackers@arkaria.postgresql.org; Wed, 06 Jan 2021 23:09:23 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kxHvc-000314-E9 for pgsql-hackers@arkaria.postgresql.org; Wed, 06 Jan 2021 23:09:20 +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 1kxHvb-00030x-FO for pgsql-hackers@lists.postgresql.org; Wed, 06 Jan 2021 23:09:19 +0000 Received: from mail-ej1-x632.google.com ([2a00:1450:4864:20::632]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1kxHvT-00041k-UX for pgsql-hackers@lists.postgresql.org; Wed, 06 Jan 2021 23:09:17 +0000 Received: by mail-ej1-x632.google.com with SMTP id g20so7365126ejb.1 for ; Wed, 06 Jan 2021 15:09:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=enterprisedb-com.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=VyJf60fW+PmDvB37ntjfb1534DmRXD4dxnn4SaLUS6c=; b=OT/zXlo9YQj24yAkQnnUaFOhg4ux/S5VYiRwuFg0MYqydwflR9fj6SiIg16TZ4q68B EPYUuuSZisPGz6G7PTXgHzIWgLZx01gmA9U1ILbQ1yW88QrRSrlSyGANgnWmFDv0YNxA DvgqI0YJUWMAq4AZGpGD6iROj2Q1D12sb2sJQUZeu5fKpOPzV/0kG0IXQea90dB5MVX+ TfOGcFVWBvjON0yOOFzLdNKB+jzAP4nw724UF30qczHPoMa4tsZorOzSn4XA4JCsynX6 6NxbyovsT+ZVxCEEZS7txTXVr+StDAbaVbdG4hV+60+VulvZNi/1suKV6i6wKnido8vw 1d8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=VyJf60fW+PmDvB37ntjfb1534DmRXD4dxnn4SaLUS6c=; b=kUur6Z5ZoFK6w9/8Z+h3DnTYLt1ez/m2PTry6GFSbcAmO8f0w6shGC6n+RhiengaH1 zgl6cfANQ4yRVsYznyUthmO0MvDDoMFZUd+KbXA5Q8Zi3dc8kqgEJTrHbpZ0lIxeDn2Q gcWt2DGl0idDkHurIavbgPpfT1Z/BdRmAL2ERyedNlKL8IvPDDX2j7NEuIzYEvrBhaQF wtuFGbNACKSYllPHi/KW/OKTnvZ6ImzP+IQsMd7slGzmdMT6OpQzi5AF1UrAKAeo2a+M wE4FFdt5ts/bMFfEgy8ogxq6jHT0xR1ydEpAvS4Hs2TfIBfFpXKqE8p4SXPDj7F0UjL/ SyBA== X-Gm-Message-State: AOAM533tcDBebSMQ8eN1S+NwHYVuDVEpi2PzzGT63x4DjLdcdkNXTRg4 pygR1dnOGkTEA+jzTTv+XOqgdR3PRl79zLR5bBrOn5uFVIOT7F5h17JBfb5yNq/tgaBSrgmY207 Mws+XEDdvINnRKLcPaHToQ366qbeSTKY/5lGKMq1p8XXQijaYgRSffAWYoXYeNeu9i8PfUNTmJ2 KY2XjxeQ+sH2YCWIlSzhN93MGcyGGvQWZ2lX/QTeDhdh0i8zKmw8rKBNn5Ptl1xkigm48tdFYIn H3zmNV6s4of7B5AMWoYPIUta7OhCIqoZXUP5RiMamLxPVBHWFzGs4V7 X-Google-Smtp-Source: ABdhPJwM5xL8XONQ+/ZpeVbkbNjdAFWWFjBEiQBNBV5Y3pbNd5ly1DEEkgM0puSi/zQcccyY8WJHKA== X-Received: by 2002:a17:906:9588:: with SMTP id r8mr4311977ejx.148.1609974548999; Wed, 06 Jan 2021 15:09:08 -0800 (PST) Received: from [10.137.0.20] (ip-86-49-249-71.net.upcbroadband.cz. [86.49.249.71]) by smtp.gmail.com with ESMTPSA id t26sm1818382eji.22.2021.01.06.15.09.07 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 06 Jan 2021 15:09:07 -0800 (PST) Subject: Re: list of extended statistics on psql To: Tatsuro Yamada , Tomas Vondra Cc: Michael Paquier , Pavel Stehule , Alvaro Herrera , Julien Rouhaud , PostgreSQL Hackers References: <20200831153053.a343pjgumahiejhw@development> <20200831161809.GA31337@alvherre.pgsql> <20200831163200.jp6eqbaaupb6hxac@development> <20200917055531.GV2873@paquier.xyz> <20200930061947.GD1996@paquier.xyz> <2a3173fb-8571-3779-2916-d16a170750f0@nttcom.co.jp_1> <20201028190601.bbshe6dhp32767q7@development> <027134cc-4c99-2878-4385-c0786283c5ea@nttcom.co.jp_1> <831cda41-2299-51f7-12c3-9bf9d3328a58@nttcom.co.jp_1> <9ed1643b-5c04-640b-70fa-ad7984972cd0@enterprisedb.com> <3f695394-9c0a-51d3-9bd7-c25ad2217cca@nttcom.co.jp_1> <1123e0bb-a95e-dd4f-eff5-97a668b48077@enterprisedb.com> <9ce1985e-2cdc-f56f-fc6b-44d4ef0bcf0d@nttcom.co.jp_1> <6505b34d-a6a3-c9e0-9113-ff8dc0127465@nttcom.co.jp_1> <98fc5f3c-3726-a5fd-376f-b29746954b7b@nttcom.co.jp_1> From: Tomas Vondra Message-ID: <2fe425ac-dc47-f304-c8d7-9fea763482d7@enterprisedb.com> Date: Thu, 7 Jan 2021 00:09:04 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.6.0 MIME-Version: 1.0 In-Reply-To: <98fc5f3c-3726-a5fd-376f-b29746954b7b@nttcom.co.jp_1> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US 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: Precedence: bulk On 1/5/21 5:26 AM, Tatsuro Yamada wrote: > Hi, > >> I rebased the patch set on the master (7e5e1bba03), and the regression >> test is good. Therefore, I changed the status of the patch: "needs >> review". > > Happy New Year! > > I rebased my patches on HEAD. > Please find attached files. :-D > Thanks, and Happy new year to you too. I almost pushed this, but I have one more question. listExtendedStats first checks the server version, and errors out for pre-10 servers. Shouldn't the logic building query check the server version too, to decide whether to check the MCV stats? Otherwise it won't work on 10 and 11, which does not support the "mcv" stats. I don't recall what exactly is our policy regarding new psql with older server versions, but it seems strange to check for 10.0 and then fail anyway for "supported" versions. regards -- Tomas Vondra EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company