pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
WARNING:  skipping "pg_database" --- only superuser can analyze it
3+ messages / 2 participants
[nested] [flat]

* WARNING:  skipping "pg_database" --- only superuser can analyze it
@ 2021-06-28 13:26  Abraham, Danny <danny_abraham@bmc.com>
  0 siblings, 1 reply; 3+ messages in thread

From: Abraham, Danny @ 2021-06-28 13:26 UTC (permalink / raw)
  To: pgsql-general; +Cc: Abraham, Danny <danny_abraham@bmc.com>

Hi,

Good old "analyze;"  will run smoothly on 11.5...
But on 12.6  will skip and warn on any pg_catalog/information_schema  table.

Pg_catalog is on Usage only on both databases (11.5 and 12.6).

Questions: 1. Has the behavior changed in 12.6?   2.How can I analyze on public tables (No syntax like analyze schema=public)

Thanks

Danny 





^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: WARNING: skipping "pg_database" --- only superuser can analyze it
@ 2021-06-28 14:52  Tom Lane <tgl@sss.pgh.pa.us>
  parent: Abraham, Danny <danny_abraham@bmc.com>
  0 siblings, 1 reply; 3+ messages in thread

From: Tom Lane @ 2021-06-28 14:52 UTC (permalink / raw)
  To: Abraham, Danny <danny_abraham@bmc.com>; +Cc: pgsql-general

"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





^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* RE:  Re: WARNING: skipping "pg_database" --- only superuser can analyze it
@ 2021-06-28 17:57  Abraham, Danny <danny_abraham@bmc.com>
  parent: Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 3+ messages in thread

From: Abraham, Danny @ 2021-06-28 17:57 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pgsql-general

Right to the point ==> set client_min_messages=error; Solved it

Thanks

-----Original Message-----
From: Tom Lane <tgl@sss.pgh.pa.us> 
Sent: Monday, June 28, 2021 5:53 PM
To: Abraham, Danny <danny_abraham@bmc.com>
Cc: pgsql-general@postgresql.org
Subject: [EXTERNAL] Re: WARNING: skipping "pg_database" --- only superuser can analyze it

"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





^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2021-06-28 17:57 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2021-06-28 13:26 WARNING:  skipping "pg_database" --- only superuser can analyze it Abraham, Danny <danny_abraham@bmc.com>
2021-06-28 14:52 ` Re: WARNING: skipping "pg_database" --- only superuser can analyze it Tom Lane <tgl@sss.pgh.pa.us>
2021-06-28 17:57   ` RE:  Re: WARNING: skipping "pg_database" --- only superuser can analyze it Abraham, Danny <danny_abraham@bmc.com>

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