Supported Versions: Current (17) / 16 / 15 / 14 / 13
Development Versions: devel
Unsupported versions: 12 / 11 / 10 / 9.6 / 9.5 / 9.4 / 9.3 / 9.2 / 9.1 / 9.0 / 8.4 / 8.3 / 8.2 / 8.1 / 8.0 / 7.4 / 7.3 / 7.2 / 7.1
This documentation is for an unsupported version of PostgreSQL.
You may want to view the same page for the current version, or one of the other supported versions listed above instead.

Chapter 44. System Catalogs

Table of Contents
44.1. Overview
44.2. pg_aggregate
44.3. pg_am
44.4. pg_amop
44.5. pg_amproc
44.6. pg_attrdef
44.7. pg_attribute
44.8. pg_authid
44.9. pg_auth_members
44.10. pg_autovacuum
44.11. pg_cast
44.12. pg_class
44.13. pg_constraint
44.14. pg_conversion
44.15. pg_database
44.16. pg_depend
44.17. pg_description
44.18. pg_enum
44.19. pg_index
44.20. pg_inherits
44.21. pg_language
44.22. pg_largeobject
44.23. pg_listener
44.24. pg_namespace
44.25. pg_opclass
44.26. pg_operator
44.27. pg_opfamily
44.28. pg_pltemplate
44.29. pg_proc
44.30. pg_rewrite
44.31. pg_shdepend
44.32. pg_shdescription
44.33. pg_statistic
44.34. pg_tablespace
44.35. pg_trigger
44.36. pg_ts_config
44.37. pg_ts_config_map
44.38. pg_ts_dict
44.39. pg_ts_parser
44.40. pg_ts_template
44.41. pg_type
44.42. System Views
44.43. pg_cursors
44.44. pg_group
44.45. pg_indexes
44.46. pg_locks
44.47. pg_prepared_statements
44.48. pg_prepared_xacts
44.49. pg_roles
44.50. pg_rules
44.51. pg_settings
44.52. pg_shadow
44.53. pg_stats
44.54. pg_tables
44.55. pg_timezone_abbrevs
44.56. pg_timezone_names
44.57. pg_user
44.58. pg_views

The system catalogs are the place where a relational database management system stores schema metadata, such as information about tables and columns, and internal bookkeeping information. PostgreSQL's system catalogs are regular tables. You can drop and recreate the tables, add columns, insert and update values, and severely mess up your system that way. Normally, one should not change the system catalogs by hand, there are always SQL commands to do that. (For example, CREATE DATABASE inserts a row into the pg_database catalog — and actually creates the database on disk.) There are some exceptions for particularly esoteric operations, such as adding index access methods.