PostgreSQL 文档检索
PG 18 · 按类别浏览,或输入名称与关键词
常用条目12360
wrappersSupabase提供的外部数据源包装器捆绑包
Foreign data wrappers developed by Supabase
pgrx supabase
wrappers
外部数据源外部数据源 · 扩展目录
www_fdw从 PostgreSQL 访问 Web 服务的外部数据包装器。
Foreign data wrapper for accessing web services from PostgreSQL.
fdw http web-service
www_fdw
外部数据源外部数据源 · 扩展目录
x5fix用于修复 Greenplum 持久化文件空间目录与共享内存状态的底层辅助扩展。
Low-level Greenplum persistent-filespace catalog and shared-memory repair helper.
catalog-repair filespace greenplum persistent-metadata recovery
x5fi…管理运维 · 扩展目录
XactBuffer在事务状态的SLRU缓冲区上等待I/O。
Waiting for I/O on a transaction status SLRU buffer.
`pgstat_report_wait_start` 位于 `src/backend/storage/lmgr/lwlock.c:739`,是经 grep 核验的报告路径。公共身份/资源映射位于 `src/backend/stora…轻量级锁 · 等待事件
XactGroupUpdate等待组领导者在事务结束时更新事务状态。
Waiting for the group leader to update transaction status at transaction end.
`WAIT_EVENT_XACT_GROUP_UPDATE` 位于 `src/backend/access/transam/clog.c:535`,是经 grep 核验的报告路径。公共…进程间 · 等待事件
XactSLRU等待访问事务状态的SLRU缓存。
Waiting to access the transaction status SLRU cache.
事务状态 SLRU 锁保护 pg_xact 缓存元数据与页面,PostgreSQL 读取或更新事务提交状态时会经过这里。对未缓存或很老 XID 的可见性检查会把这条路径带到前台。
轻量级锁
LWLock
LWLock/XactSLRU轻量级锁 · 等待事件
XactTruncation等待执行pg_xact_status或更新它可用的最早的事务ID。
Waiting to execute pg_xact_status or update the oldest transaction ID available to it.
`pgstat_report_wait_start` 位于 `src/backend/storage/lmgr/lwlock.c:739`…轻量级锁 · 等待事件
xata_id_extension生成 rec_ 前缀加 20 位小写字母数字后缀的 Xata 风格标识符。
Generate Xata-style rec_ identifiers with a 20-character lowercase alphanumeric suffix.
extension pgrx postgresql rust
xata_id_extension
函数与聚合函数与聚合 · 扩展目录
xataid_extension生成 rec_ 前缀加 20 位小写字母数字后缀的 Xata 风格标识符。
Generate Xata-style rec_ identifiers with a 20-character lowercase alphanumeric suffix.
atproto lastfm listenbrainz musicbrainz scrobbling
xataid_extens…函数与聚合 · 扩展目录
xicor在PG中计算XI相关系数
XI Correlation Coefficient in Postgres
pgxicor
函数与聚合函数与聚合 · 扩展目录
xid32 位事务标识符,用于系统列 xmin 和 xmax。
事务标识符
事务与行标识符
系统使用的另一种标识符类型是 xid,即事务(缩写为 xact)标识符。这是系统列 xmin 和 xmax 的数据类型。事务标识符是 32 位的量。
对应系统列 xmin、xmax
系统使用的另一种标识符类型是 xid,即事务 ID(事务缩写为 xact)。这是系统列 xmin 和 xmax…对象标识符类型 · 事务与行标识符
xid864 位事务标识符,在数据库集簇生命周期内严格递增且不重复使用。
64 位事务标识符
事务与行标识符
系统使用的另一种标识符类型是 xid,即事务 ID(事务缩写为 xact)。这是系统列 xmin 和 xmax 的数据类型。事务 ID是 32 位量。在某些上下文中会使用 64 位变体 xid8。与 xid 值不同, xid8 值严格单调递增,并且在数据库集簇的生命周期内不会被…对象标识符类型 · 事务与行标识符
XidGen等待分配新的事务ID。
Waiting to allocate a new transaction ID.
`pgstat_report_wait_start` 位于 `src/backend/storage/lmgr/lwlock.c:739`,是经 grep 核验的报告路径。公共身份/资源映射位于 `src/backend/access/transam/varsup.c:1…轻量级锁 · 等待事件
xl_global_viewsxl_global_views:Postgres-XL 全局视图扩展,聚合各协调器和数据节点的系统视图。
Creates global pgxl_ views over Postgres-XL nodes based on pg_ views.
monitoring postgresql-xl system-views
xl_global_views
监控统计监控统计 · 扩展目录
xmlXML 数据
其他内置类型
xml
目录名称 pg_catalog.xml
类型 OID 142
类型种类 基础类型
声明长度 变长(varlena)
存储策略 extended
输入函数 xml_in
输出函数 xml_out
存储策略 扩展数据类型 · 其他内置类型
XML 函数9.15. XML 函数本节中描述的函数以及类函数表达式都作用于类型 xml 的值。关于 xml 类型的详细信息请参见第 8.13 节。用于在值与类型 xml 之间转换的类函数表达式 xmlparse 和 xmlserialize 记录在该节中,而不是本节。使用大部分这些函数要求 PostgreSQL 使用了 configure --with-libxml 进行编译。[8] 在…XML 函数
XML 的限制以及对 SQL/XML 的符合性D.3. XML 的限制以及对 SQL/XML 的符合性
SQL:2006 对 ISO/IEC 9075-14(SQL/XML)中的 XML 相关规范做了重大修订。PostgreSQL 对 XML 数据类型及相关函数的实现,大体遵循较早的 2003 年版,同时也借鉴了后续版本的一些内容。特别是:当现行标准提供一组 XML 数据类型,用于以无类型或 XML Schema 类型化的…XML 的限制以及对 SQL/XML 的符合性
XML 类型8.13. XML 类型
xml 数据类型可用于存储 XML 数据。与把 XML 数据存储在 text 字段中相比,它的优势在于会检查输入值的良构性,并且提供了可执行类型安全操作的支持函数;见第 9.15 节。使用该数据类型要求构建时使用 configure --with-libxml。xml 类型既可以存储 XML 标准所定义的良构“文档”,也可以存储“内容”片段;后者是参照…XML 类型
XML 谓词9.15.2. XML 谓词这一节描述的表达式检查 xml 值的属性。XML 谓词
xml2F.50. xml2 — XPath 查询与 XSLT 功能
xml2 模块提供 XPath 查询与 XSLT 功能。xml2 — XPath 查询与 XSLT 功能
xml2 — XPath 查询与 XSLT 功能F.50. xml2 — XPath 查询与 XSLT 功能
xml2 模块提供 XPath 查询与 XSLT 功能。xml2 — XPath 查询与 XSLT 功能
xml_is_well_formed这些函数检查一个text串是不是一个良构的 XML,返回一个布尔结果。
These functions check whether a text string represents well-formed XML, returning a Boolean result.
xml_is_well_formed ( text ) → boolean
XML 函数函数 · XML 函数
xml_is_well_formed9.15.2.4. xml_is_well_formed
xml_is_well_formed ( text ) → boolean xml_is_well_formed_document ( text ) → boolean xml_is_well_formed_content ( text ) → boolean
这些函数检查一个 text 串是不是一个良构的 XML,返回…xml_is_well_formed
xml_is_well_formed_content这些函数检查一个text串是不是一个良构的 XML,返回一个布尔结果。
These functions check whether a text string represents well-formed XML, returning a Boolean result.
xml_is_well_formed_content ( text ) → boolean
XML 函数函数 · XML 函数
xml_is_well_formed_document这些函数检查一个text串是不是一个良构的 XML,返回一个布尔结果。
These functions check whether a text string represents well-formed XML, returning a Boolean result.
xml_is_well_formed_document ( text ) → boolean
XML 函数函数 · XML 函数
xml_validxml_valid ( document text ) → boolean 解析给定文档,如果该文档是良构 XML,则返回 true。(注意:这是标准 PostgreSQL 函数 xml_is_well_formed() 的别名。名称 xml_valid() 从技术上说并不正确,因为在 XML 中,有效性与良构性含义不同。)xml2 — XPath 查询与 XSLT 功能 › 函数说明
xmlagg和这里描述的其他函数不同,函数xmlagg是一个聚合函数。
The function xmlagg is, unlike the other functions described here, an aggregate function.
xmlagg ( xml ) → xml
xmlagg ( xml ORDER BY input_sort_columns ) → xml
…函数 · XML 函数
xmlagg9.15.1.8. xmlagg
xmlagg ( xml ) → xml
和这里描述的其他函数不同,函数 xmlagg 是一个聚合函数。它将聚合函数调用的输入值串接起来,非常像 xmlconcat 所做的事情,除了串接是跨行发生的而不是在单一行的多个表达式上发生。聚合函数的更多信息请见第 9.21 节。示例:CREATE TABLE test (y int, x xml); …xmlagg
xmlbinary设置二进制值在 XML 中的编码方式。
Sets how binary values are to be encoded in XML.
xmlbinary 定义二进制值在 XML 中的编码方式。
xmlbinary:设置二进制值在 XML 中的编码方式。它影响 XML 构造函数中的 bytea 到 XML 转换;base64 与 hex 都能保留全部字节,但 hex 输出更大…配置参数 · 客户端连接默认值 / 语句行为
xmlcomment函数xmlcomment创建了一个 XML 值,它包含一个使用指定文本作为内容的 XML 注释。
The function xmlcomment creates an XML value containing an XML comment with the specified text as content.
xmlcomment ( text ) → xml
XML 函数函数 · XML 函数
xmlcomment9.15.1.2. xmlcomment
xmlcomment ( text ) → xml
函数 xmlcomment 创建了一个 XML 值,它包含一个使用指定文本作为内容的 XML 注释。该文本不能包含“--”,也不能以“-”结尾,否则该结果的结构不是一个合法的 XML 注释。如果参数为空,结果也为空。示例:SELECT xmlcomment('hello'); xmlc…xmlcomment
xmlconcat函数xmlconcat将由各个独立 XML 值组成的列表串接成一个单独的值,这个值包含一个 XML 内容片段。
The function xmlconcat concatenates a list of individual XML values to create a single value containing an XML content fragment.
xmlco…函数 · XML 函数
xmlconcat9.15.1.3. xmlconcat
xmlconcat ( xml [, ...] ) → xml
函数 xmlconcat 将由各个独立 XML 值组成的列表串接成一个单独的值,这个值包含一个 XML 内容片断。空值会被忽略,只有当没有参数为非空时结果才为空。示例:SELECT xmlconcat('<abc/>', '<bar>foo</bar>'); xmlconca…xmlconcat
xmlelement表达式xmlelement使用给定名称、属性和内容产生一个 XML 元素。
The xmlelement expression produces an XML element with the given name, attributes, and content.
xmlelement ( NAME name [, XMLATTRIBUTES ( attvalue [AS a…函数 · XML 函数
xmlelement9.15.1.4. xmlelement
xmlelement ( NAME name [, XMLATTRIBUTES ( attvalue [ AS attname ] [, ...] ) ] [, content [, ...]] ) → xml
表达式 xmlelement 使用给定名称、属性和内容产生一个 XML 元素。语法中显示的 name 和 attname 项是…xmlelement
XMLEXISTS函数xmlexists对一个 XPath 1.0 表达式(第一个参数)求值,以传递的XML值作为其上下文项。
The function xmlexists evaluates an XPath 1.0 expression (the first argument), with the passed XML value as its context item.
XMLEXISTS…函数 · XML 函数
XMLEXISTS9.15.2.3. XMLEXISTS # XMLEXISTS ( text PASSING [BY {REF|VALUE}] xml [BY {REF|VALUE}] ) → boolean 函数 xmlexists 对一个 XPath 1.0 表达式(第一个参数)求值,以传递的 XML 值作为其上下文项。如果求值结果产生一个空节点集,该函数返回 false,如果产生任何其他…XML 函数 › XML 谓词 › XMLEXISTS
XMLEXISTS9.15.2.3. XMLEXISTS
XMLEXISTS ( text PASSING [BY {REF|VALUE}] xml [BY {REF|VALUE}] ) → boolean
函数 xmlexists 对一个 XPath 1.0 表达式(第一个参数)求值,以传递的 XML 值作为其上下文项。如果求值结果产生一个空节点集,该函数返回 false,如果产生任何其他值,…XMLEXISTS
xmlforest表达式xmlforest使用给定名称和内容产生由元素构成的 XML 森林(序列)。
The xmlforest expression produces an XML forest (sequence) of elements using the given names and content.
xmlforest ( content [AS name] [, ...] ) → …函数 · XML 函数
xmlforest9.15.1.5. xmlforest
xmlforest ( content [ AS name ] [, ...] ) → xml
表达式 xmlforest 使用给定名称和内容产生由元素构成的 XML 森林(序列)。与 xmlelement 一样,每个 name 都必须是一个简单的标识符,而 content 表达式可以有任何数据类型。示例:SELECT xmlforest…xmlforest
更多结果
输入名称或关键词,从 PostgreSQL 手册与扩展目录中直接找到定义。
pg17: 限定版本 ex: 只搜扩展 ↑↓ 选择 ↵ 打开