本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。
在 RDS for PostgreSQL 中安裝自動清空監控和診斷工具
此postgres_get_av_diag()
函數目前可在下列 RDS for PostgreSQL 版本中使用:
-
17.2 和更新的 17 版本
-
16.7 和更新的 16 版本
-
15.11 和更新的 15 版本
-
14.16 和更新的 14 版本
-
13.19 和更新的 13 版本
若要使用 postgres_get_av_diag()
,請建立 rds_tools
擴充功能。
postgres=> CREATE EXTENSION rds_tools ; CREATE EXTENSION
確認已安裝延伸模組。
postgres=> \dx rds_tools List of installed extensions Name | Version | Schema | Description ----------+---------+-----------+---------------------------------------------------------- rds_tools | 1.8 | rds_tools | miscellaneous administrative functions for RDS PostgreSQL 1 row
確認已建立 函數。
postgres=> SELECT proname function_name, pronamespace::regnamespace function_schema, proowner::regrole function_owner FROM pg_proc WHERE proname = 'postgres_get_av_diag'; function_name | function_schema | function_owner ----------------------+-----------------+---------------- postgres_get_av_diag | rds_tools | rds_superuser (1 row)