Chapter 33. The Information Schema

Table of Contents
33.1. The Schema
33.2. Data Types
33.3. information_schema_catalog_name
33.4. administrable_role_authorizations
33.5. applicable_roles
33.6. attributes
33.7. check_constraint_routine_usage
33.8. check_constraints
33.9. column_domain_usage
33.10. column_privileges
33.11. column_udt_usage
33.12. columns
33.13. constraint_column_usage
33.14. constraint_table_usage
33.15. data_type_privileges
33.16. domain_constraints
33.17. domain_udt_usage
33.18. domains
33.19. element_types
33.20. enabled_roles
33.21. foreign_data_wrapper_options
33.22. foreign_data_wrappers
33.23. foreign_server_options
33.24. foreign_servers
33.25. key_column_usage
33.26. parameters
33.27. referential_constraints
33.28. role_column_grants
33.29. role_routine_grants
33.30. role_table_grants
33.31. role_usage_grants
33.32. routine_privileges
33.33. routines
33.34. schemata
33.35. sequences
33.36. sql_features
33.37. sql_implementation_info
33.38. sql_languages
33.39. sql_packages
33.40. sql_parts
33.41. sql_sizing
33.42. sql_sizing_profiles
33.43. table_constraints
33.44. table_privileges
33.45. tables
33.46. triggers
33.47. usage_privileges
33.48. user_mapping_options
33.49. user_mappings
33.50. view_column_usage
33.51. view_routine_usage
33.52. view_table_usage
33.53. views

The information schema consists of a set of views that contain information about the objects defined in the current database. The information schema is defined in the SQL standard and can therefore be expected to be portable and remain stable — unlike the system catalogs, which are specific to PostgreSQL and are modelled after implementation concerns. The information schema views do not, however, contain information about PostgreSQL-specific features; to inquire about those you need to query the system catalogs or other PostgreSQL-specific views.