Postgresql 中文操作指南

53.1. Overview #

Table 53.1 列出了系统目录。下面将更详细地说明每个目录。

大多数系统目录在创建数据库时从模板数据库中复制,此后特定于数据库。少数目录在集群中的所有数据库中物理共享;这些在各目录的描述中注明。

Table 53.1. System Catalogs

Catalog Name

Purpose

pg_aggregate

aggregate functions

pg_am

relation access methods

pg_amop

access method operators

pg_amproc

access method support functions

pg_attrdef

column default values

pg_attribute

table columns (“attributes”)

pg_authid

authorization identifiers (roles)

pg_auth_members

authorization identifier membership relationships

pg_cast

casts (data type conversions)

pg_class

表、索引、序列、视图(“关系”)

pg_collation

collations (locale information)

pg_constraint

检查约束、唯一约束、主键约束、外键约束

pg_conversion

encoding conversion information

pg_database

这个数据库集群中的数据库

pg_db_role_setting

per-role and per-database settings

pg_default_acl

对象类型的默认特权

pg_depend

dependencies between database objects

pg_description

对数据库对象进行的描述或评论

pg_enum

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

additional foreign table information

pg_index

additional index information

pg_inherits

table inheritance hierarchy

pg_init_privs

object initial privileges

pg_language

languages for writing functions

pg_largeobject

大对象的数据页

pg_largeobject_metadata

metadata for large objects

pg_namespace

schemas

pg_opclass

access method operator classes

pg_operator

operators

pg_opfamily

access method operator families

pg_parameter_acl

已授予特权的配置参数

pg_partitioned_table

表的 partition key 的信息

pg_policy

row-security policies

pg_proc

functions and procedures

pg_publication

publications for logical replication

pg_publication_namespace

schema to publication mapping

pg_publication_rel

relation to publication mapping

pg_range

information about range types

pg_replication_origin

registered replication origins

pg_rewrite

query rewrite rules

pg_seclabel

数据库对象上的安全标签

pg_sequence

information about sequences

pg_shdepend

dependencies on shared objects

pg_shdescription

comments on shared objects

pg_shseclabel

共享数据库对象上的安全标签

pg_statistic

planner statistics

pg_statistic_ext

extended planner statistics (definition)

pg_statistic_ext_data

扩展规划器统计信息(已生成统计信息)

pg_subscription

logical replication subscriptions

pg_subscription_rel

relation state for subscriptions

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

用户到外围服务器的映射