Table 52.1 列出了系统目录。每个目录的更详细文档见下文。
大多数系统目录在数据库创建期间从模板数据库复制而来, 此后就是各数据库特有的。少数目录在一个集群的所有数据库之间物理共享, 这些会在各个目录的说明中指出。
Table 52.1. 系统目录
| Catalog Name | Purpose |
|---|---|
pg_aggregate | aggregate functions |
pg_am | relation access methods |
pg_amop | access method operators |
pg_amproc | 访问方法支持函数 |
pg_attrdef | column default values |
pg_attribute | table columns (“attributes”) |
pg_authid | authorization identifiers (roles) |
pg_auth_members | 授权标识符成员关系 |
pg_cast | 转换(数据类型转换) |
pg_class | 表、索引、序列、视图(“关系”) |
pg_collation | collations (locale information) |
pg_constraint | 检查约束、唯一约束、主键约束、外键约束 |
pg_conversion | encoding conversion information |
pg_database | 本数据库集群中的数据库 |
pg_db_role_setting | 每角色和每数据库的设置 |
pg_default_acl | 对象类型的默认特权 |
pg_depend | 数据库对象之间的依赖关系 |
pg_description | 数据库对象上的描述或注释 |
pg_enum | 枚举标签和值的定义 |
pg_event_trigger | event triggers |
pg_extension | installed extensions |
pg_foreign_data_wrapper | foreign-data wrapper definitions |
pg_foreign_server | foreign server definitions |
pg_foreign_table | 外表的附加信息 |
pg_index | additional index information |
pg_inherits | table inheritance hierarchy |
pg_init_privs | object initial privileges |
pg_language | 用于编写函数的语言 |
pg_largeobject | 大对象的数据页 |
pg_largeobject_metadata | 大对象的元数据 |
pg_namespace | schemas |
pg_opclass | 访问方法操作符类 |
pg_operator | operators |
pg_opfamily | 访问方法操作符族 |
pg_parameter_acl | 已被授予特权的配置参数 |
pg_partitioned_table | 有关表的分区键的信息 |
pg_policy | row-security policies |
pg_proc | functions and procedures |
pg_publication | 用于逻辑复制的发布 |
pg_publication_namespace | 模式到发布的映射 |
pg_publication_rel | 关系到发布的映射 |
pg_range | 有关范围类型的信息 |
pg_replication_origin | registered replication origins |
pg_rewrite | query rewrite rules |
pg_seclabel | 数据库对象上的安全标签 |
pg_sequence | information about sequences |
pg_shdepend | 对共享对象的依赖关系 |
pg_shdescription | 共享对象上的注释 |
pg_shseclabel | 共享数据库对象上的安全标签 |
pg_statistic | planner statistics |
pg_statistic_ext | 扩展的规划器统计信息(定义) |
pg_statistic_ext_data | 扩展的规划器统计信息(已构建的统计信息) |
pg_subscription | logical replication subscriptions |
pg_subscription_rel | 用于订阅的关系状态 |
pg_tablespace | 本数据库集群中的表空间 |
pg_transform | 转换(数据类型到过程语言的转换) |
pg_trigger | triggers |
pg_ts_config | text search configurations |
pg_ts_config_map | 文本搜索配置的记号映射 |
pg_ts_dict | text search dictionaries |
pg_ts_parser | text search parsers |
pg_ts_template | text search templates |
pg_type | data types |
pg_user_mapping | 用户到外部服务器的映射 |