文档 / 函数百科 / 系统信息函数和操作符
FUNCTION系统信息函数和操作符
to_regcollation
将文本排序规则名称转换为它的OID。
Translates a textual collation name to its OID.
系统信息函数和操作符 引入 13 现存至 20 devel 1 条签名 0 次签名变更
- 分组
- 系统信息函数和操作符
- 签名数
- 1 条
- 引入版本
- 13
- 状态
- 现存
- 签名变更
- 未变过
- 本版来源
- 本站译文
版本轨迹
相对 PostgreSQL 17 无变化。
签名
PostgreSQL 18 里 to_regcollation 的 1 条签名,按上游手册顺序排列。参数名用斜体,类型用弱化色, 之后是返回类型。说明取自本站手册译文:标「沿用」的借用了另一版的译文,标「EN」的本站暂无译文、按英文原文显示。
-
to_regcollation(text) →regcollation将文本排序规则名称转换为它的OID。通过将字符串类型转换为regcollation(参见Section 8.19)可以得到类似的结果; 但是,如果没有找到名称,这个函数将返回NULL而不会抛出错误。与强制转换不同的是,它不接受数字OID作为输入。
演化历史
相邻两个大版本之间的差异,新的在前。版本号链到该版的签名。
-
PostgreSQL 16 ← 15 说明更新
说明更新
-
PostgreSQL 13 ← 12 新增此函数
PostgreSQL 13 起可用
签名矩阵
每条签名在给出了签名的 8 个版本里的存在情况;方格指向该版的签名。只在正文里提到此函数、没有给出签名的版本不列进来,上面的版本轨迹里仍然有它们。签名文本在 PostgreSQL 13 前后写法不同,跨越那一跳的同一条签名会显示成两行。
存在 不存在
同组函数
| 函数 | 签名 | 主签名 | 版本变动 | 最近变更 |
|---|---|---|---|---|
acldefault |
1 | acldefault ( type "char", ownerId oid ) → aclitem[] |
— | |
| 构造一个aclitem数组,保存属于具有OID ownerId的角色的对象类型type的默认访问权限。 | 现存 | |||
aclexplode |
1 | aclexplode ( aclitem[] ) → setof record ( grantor oid, grantee oid, privilege_type text, is_grantable boolean ) |
— | |
| 以行集的形式返回aclitem数组。 | 现存 | |||
col_description基线 |
1 | col_description ( table oid, column integer ) → text |
— | |
| 返回表列的注释,该注释由该表的OID和列号指定。 | 现存 | |||
current_catalog基线 |
1 | current_catalog → name |
— | |
| 返回当前数据库的名称。 | 现存 | |||
current_database基线 |
1 | current_database () → name |
— | |
| 返回当前数据库的名称。 | 现存 | |||
current_query基线 |
1 | current_query () → text |
— | |
| 返回当前所执行查询的文本,由客户端提交的(可能包含一个以上的语句)。 | 现存 | |||
current_role |
1 | current_role → name |
— | |
| 这个等同于 current_user。 | 现存 | |||
current_schema基线 |
2 | current_schema → name |
— | |
| 返回在搜索路径中的第一个模式的名称(如果搜索路径为空则返回空值)。 | 现存 | |||
current_schemas基线 |
1 | current_schemas ( include_implicit boolean ) → name[] |
— | |
| 返回当前在有效搜索路径中的所有模式的名称的数组,以优先级顺序。 | 现存 | |||
current_user基线 |
1 | current_user → name |
— | |
| 返回当前执行上下文的用户名。 | 现存 | |||
format_type基线 |
1 | format_type ( type oid, typemod integer ) → text |
— | |
| 返回由其类型OID和可能的类型修饰符标识的数据类型的SQL名称。 | 现存 | |||
has_any_column_privilege基线 |
1 | has_any_column_privilege ( [ user name or oid, ] table text or oid, privilege text ) → boolean |
— | |
| 用户是否对表的任何列有权限? 如果对整个表持有权限,或者对至少一个列有列级的权限授予,则会成功。 | 现存 | |||
has_column_privilege基线 |
1 | has_column_privilege ( [ user name or oid, ] table text or oid, column text or smallint, privilege text ) → boolean |
— | |
| 用户对指定的表列有权限么?如果对整个表持有权限,或者对列授予了列级别的权限,则会成功。 | 现存 | |||
has_database_privilege基线 |
1 | has_database_privilege ( [ user name or oid, ] database text or oid, privilege text ) → boolean |
— | |
| 用户对数据库有权限吗?允许的权限类型为CREATE,CONNECT,TEMPORARY, 和TEMP (相当于 TEMPORARY)。 | 现存 | |||
has_foreign_data_wrapper_privilege基线 |
1 | has_foreign_data_wrapper_privilege ( [ user name or oid, ] fdw text or oid, privilege text ) → boolean |
— | |
| 用户是否拥有外部数据包装的权限?唯一允许的权限类型是USAGE。 | 现存 | |||
has_function_privilege基线 |
1 | has_function_privilege ( [ user name or oid, ] function text or oid, privilege text ) → boolean |
— | |
| 用户对函数有权限吗?唯一允许的权限类型是EXECUTE。 | 现存 | |||
has_language_privilege基线 |
1 | has_language_privilege ( [ user name or oid, ] language text or oid, privilege text ) → boolean |
— | |
| 用户对语言有权限吗?唯一允许的权限类型是USAGE。 | 现存 | |||
has_largeobject_privilege |
1 | has_largeobject_privilege ( [ user name or oid, ] largeobject oid, privilege text ) → boolean |
— | |
| 用户是否拥有大对象的权限?可用的权限类型是 SELECT 和 UPDATE。 | 现存 | |||
has_parameter_privilege |
1 | has_parameter_privilege ( [ user name or oid, ] parameter text, privilege text ) → boolean |
— | |
| 用户是否具有配置参数的权限? 参数名称不区分大小写。 | 现存 | |||
has_schema_privilege基线 |
1 | has_schema_privilege ( [ user name or oid, ] schema text or oid, privilege text ) → boolean |
— | |
| 用户对模式有权限吗?允许的权限类型是CREATE 和USAGE。 | 现存 | |||
has_sequence_privilege基线 |
1 | has_sequence_privilege ( [ user name or oid, ] sequence text or oid, privilege text ) → boolean |
— | |
| 用户是否有顺序权限?允许的权限类型有USAGE, SELECT, 和UPDATE。 | 现存 | |||
has_server_privilege基线 |
1 | has_server_privilege ( [ user name or oid, ] server text or oid, privilege text ) → boolean |
— | |
| 用户是否对外部服务器有权限?唯一允许的权限类型是USAGE。 | 现存 | |||
has_table_privilege基线 |
1 | has_table_privilege ( [ user name or oid, ] table text or oid, privilege text ) → boolean |
— | |
| 用户对表有权限吗?允许的权限类型有SELECT、INSERT、UPDATE、DELETE、TRUNCATE、REFERENCES、TRIGGER和MAINTAIN。 | 现存 | |||
has_tablespace_privilege基线 |
1 | has_tablespace_privilege ( [ user name or oid, ] tablespace text or oid, privilege text ) → boolean |
— | |
| 用户对表空间有权限吗?唯一允许的权限类型是CREATE。 | 现存 | |||
has_type_privilege |
1 | has_type_privilege ( [ user name or oid, ] type text or oid, privilege text ) → boolean |
— | |
| 用户对数据类型有权限吗?唯一允许的权限类型是 USAGE。 | 现存 | |||
icu_unicode_version |
1 | icu_unicode_version () → text |
— | |
| 如果服务器在构建时启用了 ICU 支持,则返回一个表示 ICU 所使用的 Unicode 版本的字符串;否则返回 NULL。 | 现存 | |||
inet_client_addr基线 |
1 | inet_client_addr () → inet |
— | |
| 返回当前客户端的IP地址,如果当前连接是通过Unix-域套接字则返回NULL | 现存 | |||
inet_client_port基线 |
1 | inet_client_port () → integer |
— | |
| 返回当前客户端的IP端口号,如果当前连接是通过Unix-域套接字则返回NULL。 | 现存 | |||
inet_server_addr基线 |
1 | inet_server_addr () → inet |
— | |
| 返回服务器接受当前连接的IP地址,如果当前连接是通过Unix-域套接字则返回NULL。 | 现存 | |||
inet_server_port基线 |
1 | inet_server_port () → integer |
— | |
| 返回服务器接受当前连接的IP端口号,如果当前连接是通过Unix-域套接字则返回NULL。 | 现存 | |||
makeaclitem |
1 | makeaclitem ( grantee oid, grantor oid, privileges text, is_grantable boolean ) → aclitem |
— | |
| 使用给定的属性构造 aclitem 。 | 现存 | |||
mxid_age |
1 | mxid_age ( xid ) → integer |
— | |
| 内部事务 ID 类型xid是 32 位宽,每 40 亿个事务就会回卷一次(wrap around)。 | 现存 | |||
obj_description基线 |
2 | obj_description ( object oid, catalog name ) → text |
— | |
| 返回OID指定的数据库对象的注释和包含该对象的系统目录的名称。 | 现存 | |||
pg_available_wal_summaries |
1 | pg_available_wal_summaries () → setof record ( tli bigint, start_lsn pg_lsn, end_lsn pg_lsn ) |
— | |
| 返回数据目录中 pg_wal/summaries下现有 WAL 汇总文件的信息。 | 现存 | |||
pg_backend_pid基线 |
1 | pg_backend_pid () → integer |
— | |
| 返回附加到当前会话的服务器进程的进程ID。 | 现存 | |||
pg_basetype |
1 | pg_basetype ( regtype ) → regtype |
— | |
| 返回由类型 OID 标识的域的基类型的 OID。 | 现存 | |||
pg_blocking_pids |
1 | pg_blocking_pids ( integer ) → integer[] |
— | |
| 返回阻止服务器进程的会话的进程ID数组,该进程ID与指定的进程ID一起获取锁定,如果没有这样的服务器进程或者没有被阻塞,则返回一个空数组。 | 现存 | |||
pg_char_to_encoding |
1 | pg_char_to_encoding ( encoding name ) → integer |
— | |
| 将提供的编码名称转换为表示在某些系统目录表中使用的内部标识符的整数。 | 现存 | |||
pg_collation_is_visible |
1 | pg_collation_is_visible ( collation oid ) → boolean |
— | |
| 排序规则在搜索路径中可见吗? | 现存 | |||
pg_conf_load_time基线 |
1 | pg_conf_load_time () → timestamp with time zone |
— | |
| 返回服务器配置文件最后加载的时间。 | 现存 | |||
pg_control_checkpoint |
1 | pg_control_checkpoint () → record |
— | |
| 返回有关当前检查点状态的信息, 如 Table 9.89所展示。 | 现存 | |||
pg_control_init |
1 | pg_control_init () → record |
— | |
| 返回有关集簇初始化状态的信息,如 Table 9.91所展示。 | 现存 | |||
pg_control_recovery |
1 | pg_control_recovery () → record |
— | |
| 返回有关恢复状态的信息,如 Table 9.92所展示。 | 现存 | |||
pg_control_system |
1 | pg_control_system () → record |
— | |
| 返回有关当前控制文件状态的信息,如 Table 9.90 所展示。 | 现存 | |||
pg_conversion_is_visible基线 |
1 | pg_conversion_is_visible ( conversion oid ) → boolean |
— | |
| 转换在搜索路径中可见吗? | 现存 | |||
pg_current_logfile |
1 | pg_current_logfile ( [ text ] ) → text |
— | |
| 返回当前由日志收集器使用的日志文件的路径名。 | 现存 | |||
pg_current_snapshot |
1 | pg_current_snapshot () → pg_snapshot |
— | |
| 返回当前snapshot,显示哪些事务 ID正在进行中的数据结构。 | 现存 | |||
pg_current_xact_id |
1 | pg_current_xact_id () → xid8 |
— | |
| 返回当前事务的ID。 | 现存 | |||
pg_current_xact_id_if_assigned |
1 | pg_current_xact_id_if_assigned () → xid8 |
— | |
| 返回当前事务的ID,如果还没有分配ID则返回NULL。 | 现存 | |||
pg_describe_object |
1 | pg_describe_object ( classid oid, objid oid, objsubid integer ) → text |
9.51 次 | |
| 返回由目录OID、对象OID和子对象ID(例如表中的列号)标识的数据库对象的文本描述;当引用整个对象时,子对象ID为0)。 | 现存 | |||
pg_encoding_to_char |
1 | pg_encoding_to_char ( encoding integer ) → name |
— | |
| 将在某些系统目录表中用作编码内部标识符的整数转换为可读的字符串。 | 现存 | |||
pg_function_is_visible基线 |
1 | pg_function_is_visible ( function oid ) → boolean |
— | |
| 函数在搜索路径中可见吗?(这也适用于过程和聚合。 | 现存 | |||
pg_get_acl |
1 | pg_get_acl ( classid oid, objid oid, objsubid integer ) → aclitem[] |
— | |
| 返回由目录 OID、对象 OID 和子对象 ID 指定的数据库对象的ACL。 | 现存 | |||
pg_get_catalog_foreign_keys |
1 | pg_get_catalog_foreign_keys () → setof record ( fktable regclass, fkcols text[], pktable regclass, pkcols text[], is_array boolean, is_opt boolean ) |
— | |
| 返回一组记录,描述存在于PostgreSQL系统目录中的外键关系。 | 现存 | |||
pg_get_constraintdef基线 |
1 | pg_get_constraintdef ( constraint oid [, pretty boolean ] ) → text |
— | |
| 重构为了约束的创建命令。 | 现存 | |||
pg_get_database_ddl |
1 | pg_get_database_ddl ( database regdatabase [, pretty boolean DEFAULT false] [, owner boolean DEFAULT true] [, tablespace boolean DEFAULT true] ) → setof text |
— | |
| 重构指定数据库的CREATE DATABASE语句,随后返回用于连接数上限、模板状态和配置设置的 ALTER DATABASE语句。 | 现存 | |||
pg_get_expr基线 |
1 | pg_get_expr ( expr pg_node_tree, relation oid [, pretty boolean ] ) → text |
9.11 次 | |
| 反编译存储在系统目录中的表达式的内部形式,例如列的默认值。 | 现存 | |||
pg_get_function_arguments基线 |
1 | pg_get_function_arguments ( func oid ) → text |
— | |
| 重新构造函数或过程的参数列表,以其在 CREATE FUNCTION里面需要出现的形式(包括默认值)。 | 现存 | |||
pg_get_function_identity_arguments基线 |
1 | pg_get_function_identity_arguments ( func oid ) → text |
— | |
| 重新构造标识函数或过程所需的参数列表,以其应出现在ALTER FUNCTION等命令中的形式。 | 现存 | |||
pg_get_function_result基线 |
1 | pg_get_function_result ( func oid ) → text |
— | |
| 重构函数的RETURNS子句,以其需要出现在CREATE FUNCTION中的形式。 | 现存 | |||
pg_get_functiondef基线 |
1 | pg_get_functiondef ( func oid ) → text |
— | |
| 重构为了函数或过程的创建命令。 | 现存 | |||
pg_get_indexdef基线 |
1 | pg_get_indexdef ( index oid [, column integer, pretty boolean ] ) → text |
— | |
| 重构针对索引的创建命令。 | 现存 | |||
pg_get_keywords基线 |
1 | pg_get_keywords () → setof record ( word text, catcode "char", barelabel boolean, catdesc text, baredesc text ) |
141 次 | |
| 返回一组描述服务器识别的SQL关键字的记录。 | 现存 | |||
pg_get_loaded_modules |
1 | pg_get_loaded_modules () → setof record ( module_name text, version text, file_name text ) |
— | |
| 返回当前服务器会话中已加载的可加载模块列表。 | 现存 | |||
pg_get_multixact_members |
1 | pg_get_multixact_members ( multixid xid ) → setof record ( xid xid, mode text ) |
— | |
| 返回指定 multixact ID 中每个成员的事务 ID 和锁模式。 | 现存 | |||
pg_get_multixact_stats |
1 | pg_get_multixact_stats () → record ( num_mxids integer, num_members bigint, members_size bigint, oldest_multixact xid ) |
— | |
| 返回当前 多事务 使用情况的统计信息:num_mxids 是系统中当前存在的 多事务 ID 总数,num_members 是系统中当前存在的 多事务 成员条目总数,members_size 是 pg_multixact/members 目录中 num_members 占用的存储空间,oldest_multixact 是仍在使用的最旧 多事务 ID。 | 现存 | |||
pg_get_object_address |
1 | pg_get_object_address ( type text, object_names text[], object_args text[] ) → record ( classid oid, objid oid, objsubid integer ) |
111 次 | |
| 返回包含足够信息的行以唯一标识由类型代码、对象名称和参数数组指定的数据库对象。 | 现存 | |||
pg_get_partition_constraintdef |
1 | pg_get_partition_constraintdef ( table oid ) → text |
— | |
| 重构分区约束的定义。 | 现存 | |||
pg_get_partkeydef |
1 | pg_get_partkeydef ( table oid ) → text |
— | |
| 重构分区表分区键的定义,以其在 PARTITION BY 子句中的形式出现。 | 现存 | |||
pg_get_propgraphdef |
1 | pg_get_propgraphdef ( propgraph oid ) → text |
— | |
| 重构属性图的创建命令。 | 于 20 移除 | |||
pg_get_role_ddl |
1 | pg_get_role_ddl ( role regrole [, pretty boolean DEFAULT false] [, memberships boolean DEFAULT true] ) → setof text |
— | |
| 重构给定角色的CREATE ROLE 语句以及任何ALTER ROLE ... SET 语句。 | 现存 | |||
pg_get_ruledef基线 |
1 | pg_get_ruledef ( rule oid [, pretty boolean ] ) → text |
— | |
| 重构针对规则的创建命令。 | 现存 | |||
pg_get_serial_sequence基线 |
1 | pg_get_serial_sequence ( table text, column text ) → text |
— | |
| 返回与列相关联的序列名称,如果没有序列与该列相关联则返回NULL。 | 现存 | |||
pg_get_statisticsobjdef |
1 | pg_get_statisticsobjdef ( statobj oid ) → text |
— | |
| 重构针对扩展统计对象的创建命令。 | 现存 | |||
pg_get_tablespace_ddl |
2 | pg_get_tablespace_ddl ( tablespace oid [, pretty boolean DEFAULT false] [, owner boolean DEFAULT true] ) → setof text |
— | |
| 重构指定表空间(按 OID 或名称指定)的CREATE TABLESPACE语句。 | 现存 | |||
pg_get_triggerdef基线 |
1 | pg_get_triggerdef ( trigger oid [, pretty boolean ] ) → text |
— | |
| 重构针对触发器的创建命令。 | 现存 | |||
pg_get_userbyid基线 |
1 | pg_get_userbyid ( role oid ) → name |
— | |
| 根据OID返回角色名。 | 现存 | |||
pg_get_viewdef基线 |
3 | pg_get_viewdef ( view oid [, pretty boolean ] ) → text |
9.21 次 | |
| 重构针对视图或物化视图的SELECT命令。 | 现存 | |||
pg_get_wal_summarizer_state |
1 | pg_get_wal_summarizer_state () → record ( summarized_tli bigint, summarized_lsn pg_lsn, pending_lsn pg_lsn, summarizer_pid int ) |
— | |
| 返回有关 WAL 汇总器进度的信息。 | 现存 | |||
pg_has_role基线 |
1 | pg_has_role ( [ user name or oid, ] role text or oid, privilege text ) → boolean |
— | |
| 用户对角色有权限吗?允许的权限类型有MEMBER、USAGE和SET。 | 现存 | |||
pg_identify_object |
1 | pg_identify_object ( classid oid, objid oid, objsubid integer ) → record ( type text, schema text, name text, identity text ) |
9.51 次 | |
| 返回包含足够信息的行以唯一标识由目录OID、对象OID和子对象ID指定的数据库对象。 | 现存 | |||
pg_identify_object_as_address |
1 | pg_identify_object_as_address ( classid oid, objid oid, objsubid integer ) → record ( type text, object_names text[], object_args text[] ) |
— | |
| 返回包含足够信息的行以唯一标识由目录OID、对象OID和子对象ID指定的数据库对象。 | 现存 | |||
pg_index_column_has_property |
1 | pg_index_column_has_property ( index regclass, column integer, property text ) → boolean |
— | |
| 测试一个索引列是否具有命名属性。 | 现存 | |||
pg_index_has_property |
1 | pg_index_has_property ( index regclass, property text ) → boolean |
— | |
| 测试一个索引是否具有命名属性。 | 现存 | |||
pg_indexam_has_property |
1 | pg_indexam_has_property ( am oid, property text ) → boolean |
— | |
| 测试索引访问方法是否具有命名属性。 | 现存 | |||
pg_input_error_info |
1 | pg_input_error_info ( string text, type text ) → record ( message text, detail text, hint text, sql_error_code text ) |
— | |
| 测试给定的string是否是指定数据类型的有效 输入;如果不是,则返回本应抛出的错误详情。 | 现存 | |||
pg_input_is_valid |
1 | pg_input_is_valid ( string text, type text ) → boolean |
— | |
| 测试给定的string是否是指定数据类型的有效输入,返回 true 或 false。 | 现存 | |||
pg_is_other_temp_schema基线 |
1 | pg_is_other_temp_schema ( oid ) → boolean |
— | |
| 如果给定的OID是另一个会话的临时模式的OID则返回真。 | 现存 | |||
pg_jit_available |
1 | pg_jit_available () → boolean |
— | |
| 如果JIT编译器扩展可用(参见Chapter 30),并且jit配置参数设置为on,则返回真。 | 现存 | |||
pg_last_committed_xact |
1 | pg_last_committed_xact () → record ( xid xid, timestamp timestamp with time zone, roident oid ) |
141 次 | |
| 返回最近提交的事务的事务ID、提交时间戳和复制源头。 | 现存 | |||
pg_listening_channels基线 |
1 | pg_listening_channels () → setof text |
— | |
| 返回当前会话正在侦听的异步通知通道的名称集。 | 现存 | |||
pg_my_temp_schema基线 |
1 | pg_my_temp_schema () → oid |
— | |
| 返回当前会话的临时模式的OID,如果没有则返回0(因为它没有创建任何临时表)。 | 现存 | |||
pg_notification_queue_usage |
1 | pg_notification_queue_usage () → double precision |
— | |
| 返回当前被等待处理的通知所占用的异步通知队列最大尺寸的分数(0–1)。 | 现存 | |||
pg_numa_available |
1 | pg_numa_available () → boolean |
— | |
| 如果服务器在编译时启用了 NUMA 支持,则返回真。 | 现存 | |||
pg_opclass_is_visible基线 |
1 | pg_opclass_is_visible ( opclass oid ) → boolean |
— | |
| 操作符类在搜索路径中可见吗? | 现存 | |||
pg_operator_is_visible基线 |
1 | pg_operator_is_visible ( operator oid ) → boolean |
— | |
| 操作符在搜索路径中可见吗? | 现存 | |||
pg_opfamily_is_visible |
1 | pg_opfamily_is_visible ( opclass oid ) → boolean |
— | |
| 操作符族在搜索路径中可见吗? | 现存 | |||
pg_options_to_table |
1 | pg_options_to_table ( options_array text[] ) → setof record ( option_name text, option_value text ) |
— | |
| 返回源自pg_class.reloptions 或 pg_attribute.attoptions的值表示的存储选项集。 | 现存 | |||
pg_postmaster_start_time基线 |
1 | pg_postmaster_start_time () → timestamp with time zone |
— | |
| 返回服务器启动时的时间。 | 现存 | |||
pg_safe_snapshot_blocking_pids |
1 | pg_safe_snapshot_blocking_pids ( integer ) → integer[] |
— | |
| 返回一个进程ID数组,该进程ID是阻塞服务器进程获取安全快照的会话的进程ID数组,如果没有这样的服务器进程或者没有阻塞,则返回一个空数组。 | 现存 | |||
pg_settings_get_flags |
1 | pg_settings_get_flags ( guc text ) → text[] |
— | |
| 返回与给定GUC相关联的标志数组,如果不存在则返回NULL。 | 现存 | |||
pg_snapshot_xip |
1 | pg_snapshot_xip ( pg_snapshot ) → setof xid8 |
— | |
| 返回快照中包含的正在进行的事务 ID集。 | 现存 | |||
pg_snapshot_xmax |
1 | pg_snapshot_xmax ( pg_snapshot ) → xid8 |
— | |
| 返回快照的xmax。 | 现存 | |||
pg_snapshot_xmin |
1 | pg_snapshot_xmin ( pg_snapshot ) → xid8 |
— | |
| 返回快照的xmin。 | 现存 | |||
pg_statistics_obj_is_visible |
1 | pg_statistics_obj_is_visible ( stat oid ) → boolean |
— | |
| 统计对象在搜索路径中可见吗? | 现存 | |||
pg_table_is_visible基线 |
1 | pg_table_is_visible ( table oid ) → boolean |
— | |
| 表在搜索路径中可见吗?(这适用于所有类型的关系,包括视图、物化视图、索引、序列和外部表。 | 现存 | |||
pg_tablespace_databases基线 |
1 | pg_tablespace_databases ( tablespace oid ) → setof oid |
— | |
| 返回具有存储在指定表空间中的对象的数据库的OIDs集。 | 现存 | |||
pg_tablespace_location |
1 | pg_tablespace_location ( tablespace oid ) → text |
— | |
| 返回表空间所在的文件系统路径。 | 现存 | |||
pg_trigger_depth |
1 | pg_trigger_depth () → integer |
— | |
| 返回当前嵌套层次的PostgreSQL触发器(如果没有调用则为 0,直接或间接,从一个触发器内部开始)。 | 现存 | |||
pg_ts_config_is_visible基线 |
1 | pg_ts_config_is_visible ( config oid ) → boolean |
— | |
| 文本搜索配置在搜索路径可见吗? | 现存 | |||
pg_ts_dict_is_visible基线 |
1 | pg_ts_dict_is_visible ( dict oid ) → boolean |
— | |
| 文本搜索字典在搜索路径可见吗? | 现存 | |||
pg_ts_parser_is_visible基线 |
1 | pg_ts_parser_is_visible ( parser oid ) → boolean |
— | |
| 文本搜索解析器在搜索路径中可见吗? | 现存 | |||
pg_ts_template_is_visible基线 |
1 | pg_ts_template_is_visible ( template oid ) → boolean |
— | |
| 文本搜索模板在搜索路径可见吗? | 现存 | |||
pg_type_is_visible基线 |
1 | pg_type_is_visible ( type oid ) → boolean |
— | |
| 类型(或域)在搜索路径中可见吗? | 现存 | |||
pg_typeof基线 |
1 | pg_typeof ( "any" ) → regtype |
— | |
| 返回传递值给它的数据类型的OID。 | 现存 | |||
pg_visible_in_snapshot |
1 | pg_visible_in_snapshot ( xid8, pg_snapshot ) → boolean |
— | |
| 根据此快照,给定的事务ID是否可见(visible)(也就是说,它是否在快照拍摄之前完成)? 注意,这个函数不会给出子事务ID的正确答案。 | 现存 | |||
pg_wal_summary_contents |
1 | pg_wal_summary_contents ( tli bigint, start_lsn pg_lsn, end_lsn pg_lsn ) → setof record ( relfilenode oid, reltablespace oid, reldatabase oid, relforknumber smallint, relblocknumber bigint, is_limit_block boolean ) |
— | |
| 返回由 TLI 以及起始和结束 LSN 标识的单个 WAL 汇总文件内容的信息。 | 现存 | |||
pg_xact_commit_timestamp |
1 | pg_xact_commit_timestamp ( xid ) → timestamp with time zone |
— | |
| 返回事务的提交时间戳。 | 现存 | |||
pg_xact_commit_timestamp_origin |
1 | pg_xact_commit_timestamp_origin ( xid ) → record ( timestamp timestamp with time zone, roident oid) |
— | |
| 返回事务的提交时间戳和复制起源。 | 现存 | |||
pg_xact_status |
1 | pg_xact_status ( xid8 ) → text |
— | |
| 报告最近的事务的提交状态。 | 现存 | |||
row_security_active |
1 | row_security_active ( table text or oid ) → boolean |
— | |
| 在当前用户和当前环境的上下文之中,指定表的行级安全是活动的吗? | 现存 | |||
session_user基线 |
1 | session_user → name |
— | |
| 返回会话用户名. | 现存 | |||
shobj_description基线 |
1 | shobj_description ( object oid, catalog name ) → text |
— | |
| 返回共享数据库对象的注释,该对象由其OID和包含的系统编目的名称指定。 | 现存 | |||
system_user |
1 | system_user → text |
— | |
| 返回用户在被分配数据库角色之前,于认证周期中提供的认证方法和身份(如果有)。 | 现存 | |||
to_regclass |
1 | to_regclass ( text ) → regclass |
— | |
| 将文本关系名转换为它的OID。 | 现存 | |||
to_regcollation |
1 | to_regcollation ( text ) → regcollation |
— | |
| 将文本排序规则名称转换为它的OID。 | 现存 | |||
to_regdatabase |
1 | to_regdatabase ( text ) → regdatabase |
— | |
| 将文本数据库名转换为它的OID。 | 现存 | |||
to_regnamespace |
1 | to_regnamespace ( text ) → regnamespace |
— | |
| 将文本模式名转换为它的OID。 | 现存 | |||
to_regoper |
1 | to_regoper ( text ) → regoper |
— | |
| 将文本操作符名称转换为它的OID。 | 现存 | |||
to_regoperator |
1 | to_regoperator ( text ) → regoperator |
— | |
| 将文本操作符名称(带有参数类型)转换为其OID。 | 现存 | |||
to_regproc |
1 | to_regproc ( text ) → regproc |
— | |
| 将文本函数或过程名转换为其OID。 | 现存 | |||
to_regprocedure |
1 | to_regprocedure ( text ) → regprocedure |
— | |
| 将文本函数或过程名(带有参数类型)转换为其OID。 | 现存 | |||
to_regrole |
1 | to_regrole ( text ) → regrole |
— | |
| 将文本角色名转换为它的OID。 | 现存 | |||
to_regtype |
1 | to_regtype ( text ) → regtype |
— | |
| 将文本类型名转换为它的OID。 | 现存 | |||
to_regtypemod |
1 | to_regtypemod ( text ) → integer |
— | |
| 解析文本字符串,从中提取可能的类型名,并转换其类型修饰符(如果存在)。 | 现存 | |||
txid_current基线 |
1 | txid_current () → bigint |
— | |
| 参见 pg_current_xact_id(). | 现存 | |||
txid_current_if_assigned |
1 | txid_current_if_assigned () → bigint |
— | |
| 参见 pg_current_xact_id_if_assigned(). | 现存 | |||
txid_current_snapshot基线 |
1 | txid_current_snapshot () → txid_snapshot |
— | |
| 参见 pg_current_snapshot(). | 现存 | |||
txid_snapshot_xip基线 |
1 | txid_snapshot_xip ( txid_snapshot ) → setof bigint |
— | |
| 参见 pg_snapshot_xip(). | 现存 | |||
txid_snapshot_xmax基线 |
1 | txid_snapshot_xmax ( txid_snapshot ) → bigint |
— | |
| 参见 pg_snapshot_xmax(). | 现存 | |||
txid_snapshot_xmin基线 |
1 | txid_snapshot_xmin ( txid_snapshot ) → bigint |
— | |
| 参见 pg_snapshot_xmin(). | 现存 | |||
txid_status |
1 | txid_status ( bigint ) → text |
— | |
| 参见 pg_xact_status(). | 现存 | |||
txid_visible_in_snapshot基线 |
1 | txid_visible_in_snapshot ( bigint, txid_snapshot ) → boolean |
— | |
| 参见 pg_visible_in_snapshot(). | 现存 | |||
unicode_version |
1 | unicode_version () → text |
— | |
| 返回一个表示PostgreSQL所使用的 Unicode 版本的字符串。 | 现存 | |||
user基线 |
1 | user → name |
— | |
| 这个相当于 current_user。 | 现存 | |||
version基线 |
1 | version () → text |
— | |
| 返回描述PostgreSQL服务器的版本的字符串。 | 现存 | |||