Re: WARNING: skipping "pg_database" --- only superuser can analyze it

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Abraham, Danny" <danny_abraham(at)bmc(dot)com>
Cc: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: WARNING: skipping "pg_database" --- only superuser can analyze it
Date: 2021-06-28 14:52:51
Message-ID: 162269.1624891971@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Abraham, Danny" <danny_abraham(at)bmc(dot)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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Joshua Drake 2021-06-28 16:28:45 Re: Ubuntu 14.04 (trusty) Postgres 13 deb package
Previous Message Tom Lane 2021-06-28 13:34:46 Re: schema prefixes in default values (was RE: removing "serial" from table definitions).