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 1lxsd9-0001Kj-OQ for pgsql-general@arkaria.postgresql.org; Mon, 28 Jun 2021 14:52:59 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lxsd8-00024W-Np for pgsql-general@arkaria.postgresql.org; Mon, 28 Jun 2021 14:52:58 +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 1lxsd8-00024O-Ex for pgsql-general@lists.postgresql.org; Mon, 28 Jun 2021 14:52:58 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lxsd4-0005Zp-LL for pgsql-general@postgresql.org; Mon, 28 Jun 2021 14:52:58 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 15SEqpeT162270; Mon, 28 Jun 2021 10:52:51 -0400 From: Tom Lane To: "Abraham, Danny" cc: "pgsql-general@postgresql.org" Subject: Re: WARNING: skipping "pg_database" --- only superuser can analyze it In-reply-to: References: Comments: In-reply-to "Abraham, Danny" message dated "Mon, 28 Jun 2021 13:26:25 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <162268.1624891971.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Mon, 28 Jun 2021 10:52:51 -0400 Message-ID: <162269.1624891971@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk "Abraham, Danny" writes: > Good old "analyze;" will run smoothly on 11.5... > But on 12.6 will skip and warn on any pg_catalog/information_schema ta= ble. Hm, for me there are such warnings on 11.x too. Not as many --- it looks like indexes are mentioned as well in 12.x. But it's never been the case that this was entirely silent for an unprivileged user. > Questions: 1. Has the behavior changed in 12.6? 2.How can I analyze on= public tables (No syntax like analyze schema=3Dpublic) If you don't want to see the warnings, consider set client_min_messages to error; regards, tom lane