From: Tom Lane <tgl@sss.pgh.pa.us>
To: Abraham, Danny <danny_abraham@bmc.com>
Cc: pgsql-general@postgresql.org <pgsql-general@postgresql.org>
Subject: Re: WARNING: skipping "pg_database" --- only superuser can analyze it
Date: Mon, 28 Jun 2021 10:52:51 -0400
Message-ID: <162269.1624891971@sss.pgh.pa.us> (raw)
In-Reply-To: <PH0PR02MB7446AD39A0B48692D996E4EC8E039@PH0PR02MB7446.namprd02.prod.outlook.com>
References: <PH0PR02MB7446AD39A0B48692D996E4EC8E039@PH0PR02MB7446.namprd02.prod.outlook.com>
"Abraham, Danny" <danny_abraham@bmc.com> writes:
> Good old "analyze;" will run smoothly on 11.5...
> But on 12.6 will skip and warn on any pg_catalog/information_schema table.
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=public)
If you don't want to see the warnings, consider
set client_min_messages to error;
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: tgl@sss.pgh.pa.us, danny_abraham@bmc.com
Subject: Re: WARNING: skipping "pg_database" --- only superuser can analyze it
In-Reply-To: <162269.1624891971@sss.pgh.pa.us>
References: <PH0PR02MB7446AD39A0B48692D996E4EC8E039@PH0PR02MB7446.namprd02.prod.outlook.com> <162269.1624891971@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox