Chapter 57. System Views

Table of Contents

57.1. Overview
57.2. pg_available_extensions
57.3. pg_available_extension_versions
57.4. pg_backend_memory_contexts
57.5. pg_config
57.6. pg_cursors
57.7. pg_file_settings
57.8. pg_group
57.9. pg_hba_file_rules
57.10. pg_ident_file_mappings
57.11. pg_indexes
57.12. pg_locks
57.13. pg_matviews
57.14. pg_policies
57.15. pg_prepared_statements
57.16. pg_autoprepared_statements
57.17. pg_prepared_xacts
57.18. pg_publication_tables
57.19. pg_replication_origin_status
57.20. pg_replication_slots
57.21. pg_roles
57.22. pg_rules
57.23. pg_seclabels
57.24. pg_sequences
57.25. pg_settings
57.26. pg_shadow
57.27. pg_shmem_allocations
57.28. pg_stats
57.29. pg_stats_ext
57.30. pg_stats_ext_exprs
57.31. pg_stats_vacuum_database
57.32. pg_stats_vacuum_indexes
57.33. pg_stats_vacuum_tables
57.34. pg_tables
57.35. pg_timezone_abbrevs
57.36. pg_timezone_names
57.37. pg_user
57.38. pg_user_mappings
57.39. pg_views

In addition to the system catalogs, Postgres Pro 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.

The information schema (Chapter 40) 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 Postgres Pro-specific, it's usually better to use the information schema if it provides all the information you need.

Table 57.1 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 Table 28.2.