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 1l2LXA-0001g6-R3 for pgsql-hackers@arkaria.postgresql.org; Wed, 20 Jan 2021 22:01:01 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1l2LX9-0006rg-Kx for pgsql-hackers@arkaria.postgresql.org; Wed, 20 Jan 2021 22:00:59 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l2LX9-0006rY-9z for pgsql-hackers@lists.postgresql.org; Wed, 20 Jan 2021 22:00:59 +0000 Received: from mail-ej1-x631.google.com ([2a00:1450:4864:20::631]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1l2LX5-0005TH-Ny for pgsql-hackers@lists.postgresql.org; Wed, 20 Jan 2021 22:00:58 +0000 Received: by mail-ej1-x631.google.com with SMTP id b5so19243919ejv.4 for ; Wed, 20 Jan 2021 14:00:55 -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=GR/Zl0FeevZqj2bA5KTcvrgZNbkcSeGIzRIaAAV1ouk=; b=mV1kITqTgzvmxVdGxRZBJf1y+8HL8GS2N2WsBNQohr+Jp4biUejH6pKaqlAC8zDf6Y bLxL9OwLPLC+vl88+BAqt/0Xbkj8NJO77UOkdKi4KEgOV7YnMp5rYb21YRL234ZMmGYY 0nrXHRWrEPAoCuHfZYXsI9bAv3vkxwXuzQZ3m8gM8VDj5v1Rlti+CrdutuKM/RygTSzI KN84C2sAdefHwBQp8vOaGnsET2TrimDnByDXLsdMKirtk5qZN70bATgCs51uOzucaWsu Mxkx21lGzOwC+Y3nIme54sB8KezOjIOJw1CT/9pu8A8k3wY+ZUnSgL+TdeCkJTLuCnNY Jv1Q== 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=GR/Zl0FeevZqj2bA5KTcvrgZNbkcSeGIzRIaAAV1ouk=; b=h/4tUJsuiwmFx4af7vAhkjRNzLRLRUvWe1gHTCOTrMG2h4dOd7iVt/euoM8u1nhwmZ AOVf+11MXtXw6KNcYsJ58+qh3zfGEAciRMpZmxKLqGRHtgGFT0SiMRpMQjSkn7ocV8Jy w8RuQB+j/6MVGMOq0CB+2aOjwjT0F8WMufZqTZ86ZzDJM6P+1GY4Ud/XjAro4VavygXE A5nT0K63DsmmP2j+uTm7ISMtOc7FsaITjnGjPCxlgML4vmTTG1cNTSWEiKQTPbSKaTfR +mt9QF8jCF8E9qiakKwLPNgj/awyyINBW67ryh07Ua9yK0oIFjHtsHsIqeaFm7xNVRVS YM9A== X-Gm-Message-State: AOAM531jY37Ps5StY/r8+NEwukORTf1KlKPLuAXnCW14dymEFVedfyW0 TQ5nG7ZyEm3pKj3ypdRKWMXTlaE/nkzqWAIAS4X/kBfXWoM2fTOXqEXW5qcnsnS2mTilnq5x64s VQweBZM2txqBNdrb1IG7ClP1zcQljphEhbsSjykLvTQ1drb3tYx2xPgqkts5MzpnqnxgBZ5DTP3 0QB4upJ/0w3ccrGvfVzITVm8VmioQsoMyQ9kM7Vk7vwXSaQd3S2c7bsyxmTr/YJKFy+KyNvtj0Y 1aBo6yv7A5aHgx5+K9fD3XfTlVn/rdIFHu6e9pacVkumDWh0JLEPw== X-Google-Smtp-Source: ABdhPJys/vbuq1+DWup12efZBXgFjk9CsgpTaynXaT39oBmMpxw4a4ODhsV0br8ccHzCugY7YT50Tw== X-Received: by 2002:a17:906:32d6:: with SMTP id k22mr7368458ejk.457.1611180053018; Wed, 20 Jan 2021 14:00:53 -0800 (PST) Received: from [10.137.0.20] (ip-86-49-253-127.net.upcbroadband.cz. [86.49.253.127]) by smtp.gmail.com with ESMTPSA id s1sm1427176ejx.25.2021.01.20.14.00.51 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 20 Jan 2021 14:00:52 -0800 (PST) Subject: Re: list of extended statistics on psql To: Tatsuro Yamada , "Shinoda, Noriyoshi (PN Japan FSIP)" , Julien Rouhaud Cc: Alvaro Herrera , Tomas Vondra , Michael Paquier , Pavel Stehule , PostgreSQL Hackers References: <20210107144713.GA8872@alvherre.pgsql> <29e16ceb-8777-4297-19c8-245242dd7473@enterprisedb.com> <876efa7e-2067-a4f9-d7e8-f6025440c870@nttcom.co.jp_1> <0e84aa72-25f2-1849-753f-f827949132b3@enterprisedb.com> <85e7e1e7-c2f0-a4a0-61de-6e7ecaee44e3@nttcom.co.jp_1> <79d3a4c5-1efe-5b9e-c06e-3a907b531013@nttcom.co.jp_1> <20210115084741.GA91293@nol> <2eb51458-7475-17d3-cb13-b3c950b2f930@enterprisedb.com> <5e0fb573-3c38-ee39-885c-bdc01f116335@enterprisedb.com> <39ed9c2f-3698-7a0d-8c67-04f8e9b4439c@enterprisedb.com> <4948ebb7-0992-8df2-2b14-f84472b46cc5@nttcom.co.jp_1> <914705d5-6dc0-817b-9405-891830f43841@enterprisedb.com> <1f609fa9-75a7-b989-c47d-187162d28d52@nttcom.co.jp_1> From: Tomas Vondra Message-ID: Date: Wed, 20 Jan 2021 23:00:50 +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: <1f609fa9-75a7-b989-c47d-187162d28d52@nttcom.co.jp_1> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit 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/20/21 7:41 AM, Tatsuro Yamada wrote: > Hi Tomas, > > On 2021/01/20 11:35, Tatsuro Yamada wrote: >>> Apologies for all the extra work - I haven't realized this flaw when >>> pushing for showing more stuff :-( >> >> Don't worry about it. We didn't notice the problem even when viewed by >> multiple >> people on -hackers. Let's keep moving forward. :-D >> >> I'll send a patch including a regression test on the next patch. > > > I created patches and my test results on PG10, 11, 12, and 14 are fine. > >   0001: >     - Fix query to use pg_statistic_ext only >     - Replace statuses "required" and "built" with "defined" >     - Remove the size columns >     - Fix document >     - Add schema name as a filter condition on the query > >   0002: >     - Fix all results of \dX >     - Add new testcase by non-superuser > > Please find attached files. :-D Thanks, I've pushed this. I had to tweak the regression tests a bit, for two reasons: 1) to change user in regression tests, don't use \connect, but SET ROLE and RESET ROLE 2) roles in regression tests should use names with regress_ prefix regards -- Tomas Vondra EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company