Table pg_statistic_ext_data 在 Postgres (Amazon RDS) 上不可访问。

huangapple go评论53阅读模式
英文:

Table pg_statistic_ext_data is not accessible on Postgres (Amazon RDS)

问题

Table pg_statistic_ext_data 无法在 Amazon RDS Postgres 上访问,但需要了解数据库的扩展统计信息。

英文:

Table pg_statistic_ext_data can not be accessed on Amazon RDS Postgres, but is needed to understand the extended statistics of the database.

答案1

得分: 3

AWS支持的回复:

> 很遗憾,在Amazon RDS中没有提供对 pg_statistic_ext_data 的访问权限,不过 pg_stats_ext 是一个公开可读的视图,显示的只是当前用户可读表和列的信息。我建议您使用 pg_stats_ext,它还以更易读的格式输出信息。
>
> 视图 pg_stats_ext 提供对 pg_statistic_extpg_statistic_ext_data 目录中存储的信息的访问。该视图仅允许访问用户有读取权限的 pg_statistic_extpg_statistic_ext_data 的行,因此允许公开对此视图的读取访问是安全的。
>
> pg_stats_ext 还设计成以更易读的格式呈现信息,不过需要扩展其模式,以适应将来将新类型的扩展统计信息添加到 pg_statistic_ext 的情况,这是一个代价。

英文:

Answer from AWS Support:

> Unfortunately access to pg_statistic_ext_data is not provided in Amazon RDS, however pg_stats_ext is a publicly readable view on pg_statistic_ext_data that only exposes information about those tables and columns that are readable by the current user. I recommend you to use pg_stats_ext which also gives the output in a better readable format.
>
>The view pg_stats_ext provides access to the information stored in the pg_statistic_ext and pg_statistic_ext_data catalogs. This view allows access only to rows of pg_statistic_ext and pg_statistic_ext_data that correspond to tables the user has permission to read, and therefore it is safe to allow public read access to this view.
>
>pg_stats_ext is 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.

huangapple
  • 本文由 发表于 2023年2月16日 17:14:06
  • 转载请务必保留本文链接:https://go.coder-hub.com/75470018.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定