PostgreSQL 文档检索
PG 18 · 按类别浏览,或输入名称与关键词
分类索引155
pg_stat_activity每个服务器进程一行,显示与该进程当前活动相关的信息,例如状态和当前查询。有关详细信息,请参阅pg_stat_activity。
One row per server process, showing information related to the current activity of that process, such as state and current que…统计视图 · 系统目录
pg_aggregate聚合函数
aggregate functions
目录 pg_aggregate 存储关于聚合函数的信息。聚合函数是对一组值(典型的是每个匹配查询条件的行中的同一个列的值)进行操作的函数,它返回从这些值中计算出的单个值。典型的聚合函数是 sum、count 和 max。pg_aggregate 里的每个项都是一个 pg_proc 项的扩展。pg_proc 项记载该聚合的名字、输…系统目录表 · 系统目录
pg_aios正在使用的异步 I/O 句柄
The pg_aios view lists all Asynchronous I/O handles that are currently in-use. An I/O handle is used to reference an I/O operation that is being prepared, executed or is in th…系统视图 · 系统目录
pg_am关系访问方法
relation access methods
目录 pg_am 存储关于关系访问方法的信息。系统支持的每种访问方法在这个目录中都有一行。目前只有表和索引拥有访问方法。表和索引访问方法的需求分别在第 62 章和第 63 章中详细讨论。
oid amname amhandler amtype
系统目录表系统目录表 · 系统目录
pg_amop访问方法操作符
access method operators
目录 pg_amop 存储关于与访问方法操作符族相关的操作符信息。对于操作符族中的每个成员操作符,此目录中都有一行。一个成员可以是搜索操作符,也可以是排序操作符。一个操作符可以出现在多个族中,但在同一个族中既不能出现在多个搜索位置,也不能出现在多个排序位置(虽然不太可能,但允许一个操作符同时用于搜索和排序)。
oi…系统目录表 · 系统目录
pg_amproc访问方法支持函数
access method support functions
目录 pg_amproc 存储与访问方法操作符族相关的支持函数的信息。属于一个操作符族的每一个支持函数在这个目录中都有一行。
oid amprocfamily amproclefttype amprocrighttype amprocnum amproc
系统目录表系统目录表 · 系统目录
pg_attrdef列默认值
column default values
目录 pg_attrdef 存储列默认表达式和生成表达式。列的主要信息存储在 pg_attribute 中。只有显式设置了默认表达式或生成表达式的列,才会在此目录中有条目。
oid adrelid adnum adbin
系统目录表系统目录表 · 系统目录
pg_attribute表列(“属性”)
table columns (“attributes”)
目录 pg_attribute 存储关于表列的信息。数据库中每个表的每一列,在 pg_attribute 中都恰好有一行。(其中也包括索引的属性项,实际上,凡是在 pg_class 中有项的对象,都有对应的属性项。) 术语属性等同于列,这里使用它只是出于历史原因。
attrelid attname at…系统目录表 · 系统目录
pg_auth_members授权标识符成员关系
authorization identifier membership relationships
目录 pg_auth_members 展示了角色之间的成员关系。允许任何无环的关系集合。 由于用户身份是集簇范围的,pg_auth_members 在一个集簇的所有数据库之间共享:在一个集簇中只有一份 pg_auth_members 拷贝,而不是每个数据库一份…系统目录表 · 系统目录
pg_authid授权标识符(角色)
authorization identifiers (roles)
目录 pg_authid 包含关于数据库授权标识符(角色)的信息。角色涵盖了“用户”和“组”这两个概念。用户本质上只是设置了 rolcanlogin 标志的角色。任何角色(无论是否设置了 rolcanlogin)都可以拥有其他角色作为成员;参见 pg_auth_members。 由于这个目录…系统目录表 · 系统目录
pg_autovacuum目录pg_autovacuum存放自动清理守护进程的可选逐关系配置参数。如果某个特定关系在这里有条目,则给定的参数将用于对该表做自动清理。如果没有条目,将使用系统范围的默认值。关于自动清理守护进程的更多信息,见第 23.1.4 节。
The catalog pg_autovacuum stores optional per-relation configuration para…系统目录表 · 系统目录
pg_available_extension_versions扩展的可用版本
The pg_available_extension_versions view lists the specific extension versions that are available for installation. See also the pg_extension catalog, which shows the extensions curr…系统视图 · 系统目录
pg_available_extensions可用的扩展
The pg_available_extensions view lists the extensions that are available for installation. See also the pg_extension catalog, which shows the extensions currently installed.
pg_availab…系统视图 · 系统目录
pg_backend_memory_contexts后端内存上下文
The view pg_backend_memory_contexts displays all the memory contexts of the server process attached to the current session.
视图 pg_backend_memory_contexts 显示附属于当前会话的服务器进程中的全部内存上下文。 pg…系统视图 · 系统目录
pg_cast转换(数据类型转换)
casts (data type conversions)
目录 pg_cast 存储数据类型转换路径,包括内置路径和用户定义路径。 需要注意的是,pg_cast 并不表示系统知道如何执行的所有类型转换,它只包括那些不能从某些通用规则推导出的转换。例如,一个域及其基础类型之间的转换并未显式地在 pg_cast 中展示。另一个重要的例外是“自动的基于 I/O…系统目录表 · 系统目录
pg_class表、索引、序列、视图(“关系”)
tables, indexes, sequences, views (“relations”)
目录 pg_class 描述了表以及其他具有列或在其他方面与表类似的对象。这包括索引(但请参见 pg_index)、序列(但请参见 pg_sequence)、视图、物化视图、复合类型和 TOAST 表;请参见 relkind。在下面,当我们指的是所有…系统目录表 · 系统目录
pg_collation排序规则(区域设置信息)
collations (locale information)
目录 pg_collation 描述可用的排序规则,其本质上是从 SQL 名字到操作系统区域设置类别的映射。更多信息参见第 23.2 节。
oid collname collnamespace collowner collprovider collisdeterministic colle…系统目录表 · 系统目录
pg_config编译时配置参数
The view pg_config describes the compile-time configuration parameters of the currently installed version of PostgreSQL. It is intended, for example, to be used by software packages …系统视图 · 系统目录
pg_constraint检查约束、唯一约束、主键约束、外键约束
check constraints, unique constraints, primary key constraints, foreign key constraints
目录 pg_constraint 存储表上的检查约束、非空约束、主键约束、唯一约束、外键约束和排他约束。(列约束不会被特殊对待。每一个列约束都等价于某种表约束。) …系统目录表 · 系统目录
pg_conversion编码转换信息
encoding conversion information
目录 pg_conversion 描述编码转换函数。更多信息参见 CREATE CONVERSION。
oid conname connamespace conowner conforencoding contoencoding conproc condefault
系统目录表系统目录表 · 系统目录
pg_cursors打开的游标
The pg_cursors view lists the cursors that are currently available. Cursors can be defined in several ways:
pg_cursors 视图列出当前可用的游标。游标可以通过多种方式定义: 通过 SQL 中的 DECLARE 语句 通过前端/后端协议中的 Bind 消…系统视图 · 系统目录
pg_database本数据库集簇中的数据库
databases within this database cluster
目录 pg_database 存储有关可用数据库的信息。数据库通过 CREATE DATABASE 命令创建。关于其中一些参数的含义的详细信息请查阅第 22 章。 和大部分系统目录不同,pg_database 是在集簇的所有数据库之间共享的:在一个集簇中只有一份 pg_data…系统目录表 · 系统目录
pg_db_role_setting每角色和每数据库的设置
per-role and per-database settings
目录 pg_db_role_setting 为每个角色与数据库组合记录运行时配置变量的默认值。 和大部分系统目录不同,pg_db_role_setting 是在集簇的所有数据库之间共享的:在一个集簇中只有一份 pg_db_role_setting 拷贝,而不是每个数据库一份。
setd…系统目录表 · 系统目录
pg_default_acl对象类型的默认权限
default privileges for object types
目录 pg_default_acl 存储要被分配给新创建对象的初始权限。
oid defaclrole defaclnamespace defaclobjtype defaclacl
系统目录表系统目录表 · 系统目录
pg_depend数据库对象间的依赖
dependencies between database objects
目录 pg_depend 记录数据库对象之间的依赖关系。这些信息允许 DROP 命令查找必须被 DROP CASCADE 删除的其他对象,或者在 DROP RESTRICT 情况下阻止删除。 另请参阅 pg_shdepend,它对涉及数据库集簇共享对象的依赖提供了相似的功能。
cla…系统目录表 · 系统目录
pg_description数据库对象上的描述或注释
descriptions or comments on database objects
目录 pg_description 存储对每一个数据库对象可选的描述(注释)。描述可以通过 COMMENT 操作,并可使用 psql 的\d 命令查看。在 pg_description 的初始内容中提供了很多内置系统对象的描述。 参见 pg_shdescripti…系统目录表 · 系统目录
pg_dsm_registry_allocationsDSM 注册表跟踪的共享内存分配
The pg_dsm_registry_allocations view shows shared memory allocations tracked in the dynamic shared memory (DSM) registry. This includes memory allocated by extensions using …系统视图 · 系统目录
pg_enum枚举标签和值定义
enum label and value definitions
pg_enum 目录包含每一个枚举类型的项,其中包括了值和标签。一个给定枚举值的内部表示实际上是它在 pg_enum 中的相关行的 OID。
oid enumtypid enumsortorder enumlabel
系统目录表系统目录表 · 系统目录
pg_event_trigger事件触发器
event triggers
目录 pg_event_trigger 存储事件触发器。更多信息参见第 38 章。
oid evtname evtevent evtowner evtfoid evtenabled evttags
系统目录表系统目录表 · 系统目录
pg_extension已安装扩展
installed extensions
目录 pg_extension 存储有关已安装扩展的信息。有关扩展的细节请参见第 36.17 节。
oid extname extowner extnamespace extrelocatable extversion extconfig extcondition
系统目录表系统目录表 · 系统目录
pg_file_settings配置文件内容摘要
The view pg_file_settings provides a summary of the contents of the server's configuration file(s). A row appears in this view for each “name = value” entry appearing in the files, …系统视图 · 系统目录
pg_foreign_data_wrapper外部数据包装器定义
foreign-data wrapper definitions
目录 pg_foreign_data_wrapper 存储外部数据包装器定义。外部数据包装器是一种访问位于外部服务器上数据的机制。
oid fdwname fdwowner fdwhandler fdwvalidator fdwconnection fdwacl fdwoptions
系统目录…系统目录表 · 系统目录
pg_foreign_server外部服务器定义
foreign server definitions
目录 pg_foreign_server 存储外部服务器定义。外部服务器定义了外部数据的来源,例如一个远程服务器。外部服务器通过外部数据包装器来访问。
oid srvname srvowner srvfdw srvtype srvversion srvacl srvoptions
系统目录表系统目录表 · 系统目录
pg_foreign_table外部表的补充信息
additional foreign table information
目录 pg_foreign_table 包含关于外部表的辅助信息。一个外部表和普通表一样,主要由一个 pg_class 项表示。它的 pg_foreign_table 项包含外部表所特有的信息。
ftrelid ftserver ftoptions
系统目录表系统目录表 · 系统目录
pg_group数据库用户组
The view pg_group exists for backwards compatibility: it emulates a catalog that existed in PostgreSQL before version 8.1. It shows the names and members of all roles that are marked …系统视图 · 系统目录
pg_hba_file_rules客户端认证配置文件内容的摘要
The view pg_hba_file_rules provides a summary of the contents of the client authentication configuration file, pg_hba.conf. A row appears in this view for each non-empty, non-…系统视图 · 系统目录
pg_ident_file_mappings客户端用户名映射配置文件内容摘要
The view pg_ident_file_mappings provides a summary of the contents of the client user name mapping configuration file, pg_ident.conf. A row appears in this view for each non…系统视图 · 系统目录
pg_index索引的补充信息
additional index information
目录 pg_index 包含关于索引的部分信息。其他信息大部分在 pg_class 中。
indexrelid indrelid indnatts indnkeyatts indisunique indnullsnotdistinct indisprimary indisexclusion indimme…系统目录表 · 系统目录
pg_indexes索引
The view pg_indexes provides access to useful information about each index in the database.
视图 pg_indexes 提供了有关数据库中每个索引的有用信息。
schemaname tablename indexname tablespace indexdef
系统视图系统视图 · 系统目录
pg_inherits表继承层次
table inheritance hierarchy
目录 pg_inherits 记录有关表和索引的继承层次的信息。数据库中每个表或索引的直接父子关系在这里都有一项(非直接继承可以通过顺着项构成的链来决定)。
inhrelid inhparent inhseqno inhdetachpending
系统目录表系统目录表 · 系统目录
更多结果
输入名称或关键词,从 PostgreSQL 手册与扩展目录中直接找到定义。
pg17: 限定版本 ex: 只搜扩展 ↑↓ 选择 ↵ 打开