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 1l0xNx-0002a9-2s for pgsql-hackers@arkaria.postgresql.org; Sun, 17 Jan 2021 02:01:45 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1l0xNv-0004UJ-V2 for pgsql-hackers@arkaria.postgresql.org; Sun, 17 Jan 2021 02:01:43 +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 1l0xNv-0004UC-OG for pgsql-hackers@lists.postgresql.org; Sun, 17 Jan 2021 02:01:43 +0000 Received: from mail-ej1-x62a.google.com ([2a00:1450:4864:20::62a]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1l0xNs-0001qp-Hf for pgsql-hackers@lists.postgresql.org; Sun, 17 Jan 2021 02:01:43 +0000 Received: by mail-ej1-x62a.google.com with SMTP id a10so2182685ejg.10 for ; Sat, 16 Jan 2021 18:01:39 -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=0BSpk9O9OaxGb3LA0O2/IJfHWuaPq1om3OMofeLw+DY=; b=vf6ba6onleia8F88GUmVJG+KrpMypYDBYAvmLurtmBLcFGJy8LNcsLyBcohG7OeDh7 moAxuKFBYNXid7BgzXu3zx8LdTB7hgVZkWCej9DYRmKUkBlWI0ANzE2iP0gMxdObDdzS J9T3bIlpOUcGYy+9nwUauFGP0MJaAwoTk55RhfBZr0gWibj0qDpVBPgvwn4AnTR6jzLT G9/L2oHS8ZNauOyNWU1c8OKcB6jVs/VhSwNNEqoNYg2bf5X2pRwlVAPfzk5e0HVF2dZJ AH1qiAFkBFpPnJyp3ijfn86KrXMpaKYvpBHiNBltFAgd+BHYYS+0jnuriMzVMufTkfkM +I2g== 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=0BSpk9O9OaxGb3LA0O2/IJfHWuaPq1om3OMofeLw+DY=; b=gpHFAz7bAfqvR4DrEoh/eM11UFV2dKh5aujOXdPcBHtSDwWi8/SRwBDX3sf+Xg+kdT 9S1MMvxQfLBVsByoDqtIx/qPXgw6bakxK4cC3gUUdL/XBwyq+Ow27gd7/LsEkLg/nZF2 MCNGgKPhrcBAn/foAUB8Zpl0hwfZus1d4w60cdEuDdk0XnvsBKQb3ocM83ndFepBjSuy fhyQYJSAmwSXSZIM8uRYhuonNp5pqt9TdNnHe3kVP3FtlOJXC32JJxH66c8OpsEcYL1D s1QsVJzcj/8H+5UPRz/6SsBTQy/mpWrHprH6z7dV/roMqe/dujcgaFVnEtLImUGPnKbC CFuw== X-Gm-Message-State: AOAM531RlyPZVa1m89xRGitGpPO1C02jOhaWwTsqblX9FXQhxQbP4cb1 9oy513Fr1ZMwyvcU1uaTJQ1+EU3eNrzXBh8nkRK0+95wmmDtg0+jGLpptRjF3ogsKEpEaR43qLV 9GvsOxdBBYaluv3BTx90h/cWRkQivdXRByW5fFWQ8+CEJaGtD9bzKDpYV2cZJAhXoThVhPKQ2HY Ig2ynpodOwgFW2IStR2LYpU9J1E0vA3PNkQKP4Cl5etcE3pLdnVDiJrv/QtEup5O5yVtrX04O8R AkyKAqaGpzPbN47/EtsmJYH4NvG67za9r4yGuEyKh33O6xcU8XYPg== X-Google-Smtp-Source: ABdhPJwhu2HoawIy0YDTJSDF1YRF6fvqPjQCHsjAIxXkoUHVXnsH0fZVAzy6rU7sQGvdU9J5BI/3NQ== X-Received: by 2002:a17:906:e107:: with SMTP id gj7mr5656475ejb.298.1610848898933; Sat, 16 Jan 2021 18:01:38 -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 di28sm1378696edb.71.2021.01.16.18.01.37 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 16 Jan 2021 18:01:38 -0800 (PST) Subject: Re: list of extended statistics on psql To: "Shinoda, Noriyoshi (PN Japan FSIP)" , Julien Rouhaud , Tatsuro Yamada Cc: Alvaro Herrera , Tomas Vondra , Michael Paquier , Pavel Stehule , PostgreSQL Hackers References: <20210107144713.GA8872@alvherre.pgsql> <61cba5af-5a58-6bda-610c-420077b780c3@enterprisedb.com> <1045d2cb-7ecd-e6bf-cb50-8eeea89cc4b0@nttcom.co.jp_1> <9e76ce7a-e7ab-5f08-9938-59fffc20d106@enterprisedb.com> <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> From: Tomas Vondra Message-ID: Date: Sun, 17 Jan 2021 03:01:34 +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: 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/17/21 2:41 AM, Shinoda, Noriyoshi (PN Japan FSIP) wrote: > Hi, hackers. > > I tested this committed feature. > It doesn't seem to be available to non-superusers due to the inability to access pg_statistics_ext_data. > Is this the expected behavior? > Hmmm, that's a good point. Bummer we haven't noticed that earlier. I wonder what the right fix should be - presumably we could do something like pg_stats_ext (we can't use that view directly, because it formats the data, so the sizes are different). But should it list just the stats the user has access to, or should it list everything and leave the inaccessible fields NULL? regards -- Tomas Vondra EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company