Table pg_statistic_ext_data can not be accessed on Amazon RDS Postgres, but is needed to understand the extended statistics of the database.
Answer from AWS Support:
Unfortunately access to
pg_statistic_ext_datais not provided in Amazon RDS, howeverpg_stats_extis a publicly readable view onpg_statistic_ext_datathat only exposes information about those tables and columns that are readable by the current user. I recommend you to usepg_stats_extwhich also gives the output in a better readable format.The view
pg_stats_extprovides access to the information stored in thepg_statistic_extandpg_statistic_ext_datacatalogs. This view allows access only to rows ofpg_statistic_extandpg_statistic_ext_datathat correspond to tables the user has permission to read, and therefore it is safe to allow public read access to this view.
pg_stats_extis also designed to present the information in a more readable format than the underlying catalogs — at the cost that its schema must be extended whenever new types of extended statistics are added to pg_statistic_ext.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With