バージョンごとのドキュメント一覧

第54章 システムビュー

目次

54.1. 概要
54.2. pg_available_extensions
54.3. pg_available_extension_versions
54.4. pg_backend_memory_contexts
54.5. pg_config
54.6. pg_cursors
54.7. pg_file_settings
54.8. pg_group
54.9. pg_hba_file_rules
54.10. pg_ident_file_mappings
54.11. pg_indexes
54.12. pg_locks
54.13. pg_matviews
54.14. pg_policies
54.15. pg_prepared_statements
54.16. pg_prepared_xacts
54.17. pg_publication_tables
54.18. pg_replication_origin_status
54.19. pg_replication_slots
54.20. pg_roles
54.21. pg_rules
54.22. pg_seclabels
54.23. pg_sequences
54.24. pg_settings
54.25. pg_shadow
54.26. pg_shmem_allocations
54.27. pg_stats
54.28. pg_stats_ext
54.29. pg_stats_ext_exprs
54.30. pg_tables
54.31. pg_timezone_abbrevs
54.32. pg_timezone_names
54.33. pg_user
54.34. pg_user_mappings
54.35. pg_views
<title>System Views</title>

In addition to the system catalogs, <productname>PostgreSQL</productname> provides a number of built-in views. Some system views provide convenient access to some commonly used queries on the system catalogs. Other views provide access to internal server state. システムカタログに加えPostgreSQLは数多くの組み込みビューを提供しています。 システムビューはいくつかの一般的に使用されるシステムカタログに対する問い合わせに手近にアクセスできるようにします。 他のビューはサーバ状態内部へのアクセスを提供します。

The information schema (<xref linkend="information-schema"/>) provides an alternative set of views which overlap the functionality of the system views. Since the information schema is SQL-standard whereas the views described here are <productname>PostgreSQL</productname>-specific, it's usually better to use the information schema if it provides all the information you need. 情報スキーマ(第37章)はシステムビューと重複する、もう一方のビューの集合を提供しています。 ここで説明しているビューはPostgreSQL特有のものであるのに対し、情報スキーマはSQL標準であることから、もし情報スキーマが必要とする情報をすべて提供してくれるのであれば情報スキーマを使用する方が良いでしょう。

<xref linkend="view-table"/> lists the system views described here. More detailed documentation of each view follows below. There are some additional views that provide access to accumulated statistics; they are described in <xref linkend="monitoring-stats-views-table"/>. 表 54.1は、ここで説明しているシステムビューの一覧です。 それぞれのビューのさらに詳細な説明は、これより後に述べられています。 蓄積された統計情報の結果にアクセスするためのいくつかの追加のビューがあります。 それらは表 28.2で説明されています。