PostgreSQL 文档检索
PG 18 · 按类别浏览,或输入名称与关键词
常用条目12316
pg_logging将 PostgreSQL 日志记录捕获到共享内存环形缓冲区,并通过 SQL 函数读取。
Captures PostgreSQL log records in a shared-memory ring buffer and exposes them through SQL functions.
logging
pg_logging
监控统计监控统计 · 扩展目录
pg_logical包含逻辑解码状态数据的子目录
PGDATA 路径
$PGDATA/pg_logical
相对路径 pg_logical存储结构 · PGDATA 路径
pg_logical_ddlPostgreSQL逻辑DDL复制实现
Experimental DDL replication implementation for PostgreSQL
pg_logical_ddl
复制与数据流复制与数据流 · 扩展目录
pg_logical_emit_message发出逻辑解码消息。
Emits a logical decoding message.
pg_logical_emit_message ( transactional boolean, prefix text, content text [, flush boolean DEFAULT false] ) → pg_lsn
pg_logical_emit_message ( tr…函数 · 系统管理函数
pg_logical_slot_get_binary_changes行为就像pg_logical_slot_get_changes()函数,不过改变会以bytea返回。
Behaves just like the pg_logical_slot_get_changes() function, except that changes are returned as bytea.
pg_logical_slot_get_binary_changes…函数 · 系统管理函数
pg_logical_slot_get_changes返回槽 slot_name 中自上次消费更改的位置起的更改。
Returns changes in the slot slot_name, starting from the point from which changes have been consumed last.
pg_logical_slot_get_changes ( slot_name name, upto_l…函数 · 系统管理函数
pg_logical_slot_peek_binary_changes行为就像pg_logical_slot_peek_changes()函数,不过改变会以bytea返回。
Behaves just like the pg_logical_slot_peek_changes() function, except that changes are returned as bytea.
pg_logical_slot_peek_binary_chan…函数 · 系统管理函数
pg_logical_slot_peek_changes行为就像pg_logical_slot_get_changes()函数,不过改变不会被消费,即在未来的调用中还会返回这些改变。
Behaves just like the pg_logical_slot_get_changes() function, except that changes are not consumed; that is, they will be retu…函数 · 系统管理函数
pg_logicalinspectF.28. pg_logicalinspect — 逻辑解码组件检查
pg_logicalinspect 模块提供 SQL 函数,允许你检查逻辑解码组件的内容。它还允许检查运行中的 PostgreSQL 数据库集簇的序列化逻辑快照,这对调试或教学用途很有帮助。默认情况下,这些函数仅允许超级用户和 pg_read_server_files 角色成员使用。超级用户可通过 GRANT…pg_logicalinspect — 逻辑解码组件检查
pg_logicalinspect — 逻辑解码组件检查F.28. pg_logicalinspect — 逻辑解码组件检查
pg_logicalinspect 模块提供 SQL 函数,允许你检查逻辑解码组件的内容。它还允许检查运行中的 PostgreSQL 数据库集簇的序列化逻辑快照,这对调试或教学用途很有帮助。默认情况下,这些函数仅允许超级用户和 pg_read_server_files 角色成员使用。超级用户可通过 GRANT…pg_logicalinspect — 逻辑解码组件检查
pg_login_guard在连续认证失败后按角色执行类似 fail2ban 的锁定。
Fail2ban-style role lockout after repeated authentication failures.
login password lockout authentication
pg_login_guard
安全安全 · 扩展目录
pg_login_stat按用户和数据库统计认证成功与失败次数。
Per-user and per-database successful and failed authentication counters.
login authentication statistics monitoring
pg_login_stat
监控统计监控统计 · 扩展目录
pg_logqueryidpg_logqueryid:统计观测类 PostgreSQL 扩展;在 auto_explain 日志中输出 pg_stat_statements queryid。
Logs pg_stat_statements query IDs alongside auto_explain output.
auto-explain performance pg-stat-statement…监控统计 · 扩展目录
pg_logtap捕获结构化 PostgreSQL 日志并投递到 Vector、HTTP、TCP 或文件。
Structured PostgreSQL log capture and delivery to Vector, HTTP, TCP, or files.
logging vector observability http
pg_logtap
监控统计监控统计 · 扩展目录
pg_ls_archive_statusdir返回服务器 WAL 归档状态目录(pg_wal/archive_status)中每个普通文件的名称、大小和最后修改时间(mtime)。
Returns the name, size, and last modification time (mtime) of each ordinary file in the server's WAL archive status direct…函数 · 系统管理函数
pg_ls_dir返回指定目录中所有文件的名称(包括目录及其他特殊文件)。
Returns the names of all files (and directories and other special files) in the specified directory.
pg_ls_dir ( dirname text [, missing_ok boolean, include_dot_…函数 · 系统管理函数
pg_ls_logdir返回服务器日志目录中每个普通文件的名称、大小和最后修改时间(mtime)。
Returns the name, size, and last modification time (mtime) of each ordinary file in the server's log directory.
pg_ls_logdir () → setof record ( name te…函数 · 系统管理函数
pg_ls_logicalmapdir返回服务器的pg_logical/mappings目录中每个普通文件的名称、大小和最后修改时间(mtime)。
Returns the name, size, and last modification time (mtime) of each ordinary file in the server's pg_logical/mappings directory.
pg_ls_…函数 · 系统管理函数
pg_ls_logicalsnapdir返回服务器的pg_logical/snapshots目录中每个普通文件的名称、大小和最后修改时间(mtime)。
Returns the name, size, and last modification time (mtime) of each ordinary file in the server's pg_logical/snapshots directory.
pg_l…函数 · 系统管理函数
pg_ls_replslotdir返回服务器的pg_replslot/slot_name目录中每个普通文件的名称、大小和最后修改时间(mtime),其中slot_name是作为函数输入提供的复制槽的名称。
Returns the name, size, and last modification time (mtime) of each ordinary file in the server's pg_repl…函数 · 系统管理函数
pg_ls_summariesdir返回服务器 WAL 摘要目录(pg_wal/summaries)中每个普通文件的名称、大小和最后修改时间(mtime)。
Returns the name, size, and last modification time (mtime) of each ordinary file in the server's WAL summaries directory (pg_wal/…函数 · 系统管理函数
pg_ls_tmpdir返回针对指定tablespace的临时文件目录中每个普通文件的名称、大小和最后修改时间(mtime)。
Returns the name, size, and last modification time (mtime) of each ordinary file in the temporary file directory for the specified tablesp…函数 · 系统管理函数
pg_ls_waldir返回服务器的预写式日志(WAL)目录中每个普通文件的名称、大小和最后修改时间(mtime)。
Returns the name, size, and last modification time (mtime) of each ordinary file in the server's write-ahead log (WAL) directory.
pg_ls_waldir …函数 · 系统管理函数
pg_lsnPostgreSQL 日志序列号
其他内置类型
pg_lsn
目录名称 pg_catalog.pg_lsn
类型 OID 3220
类型种类 基础类型
声明长度 8 字节
存储策略 plain
输入函数 pg_lsn_in
输出函数 pg_lsn_out数据类型 · 其他内置类型
pg_lsn 类型8.20. pg_lsn 类型
pg_lsn 数据类型可用于存储 LSN(日志序列号)数据。LSN 是指向 WAL 中某个位置的指针。该类型是 XLogRecPtr 的一种表示形式,也是 PostgreSQL 的内部系统类型之一。在内部,LSN 是一个 64 位整数,表示预写式日志流中的字节位置。它打印为两个最多 8 位的十六进制数,中间以斜线分隔,例如 16/B374D848…pg_lsn 类型
pg_luhn提供 Luhn 校验和、有效性验证与校验位生成功能。
Luhn checksum, validation, and check-digit generation functions.
pg_luhn
函数与聚合函数与聚合 · 扩展目录
pg_lz4面向打过自定义压缩方法补丁的 PostgreSQL 开发分支的 LZ4 压缩访问方法。
LZ4 compression access method for a patched PostgreSQL development branch.
compression lz4 toast
pg_lz4
实用工具实用工具 · 扩展目录
pg_maintain允许对所有关系执行 MAINTAIN 权限涵盖的维护操作。
关系维护
数据库维护
允许在所有关系上执行 VACUUM、 ANALYZE、 CLUSTER、 REFRESH MATERIALIZED VIEW、 REINDEX 以及 LOCK TABLE,其效果就像对这些对象拥有 MAINTAIN 权限一样,即使没有被显式授予。
本版名称 pg_maintain
手册称谓 预定…预定义角色 · 数据库维护
pg_mappg_lake 内置并依赖的 PostgreSQL Map 数据类型。
Map type for PostgreSQL, bundled as a required pg_lake component.
map type
pg_lake
分析与列存分析与列存 · 扩展目录
pg_markdownPostgreSQL 的预发布 Markdown 转 HTML 扩展。
Pre-release Markdown-to-HTML conversion extension for PostgreSQL.
datatype html markdown text
pg_markdown
实用工具实用工具 · 扩展目录
pg_maskC语言编写的简单数据遮掩工具
A tiny data mask utility written in C
pg_mask
安全安全 · 扩展目录
pg_math使用GSL库的数学统计函数
GSL statistical functions for postgresql
pg_math
函数与聚合函数与聚合 · 扩展目录
pg_matviews物化视图
The view pg_matviews provides access to useful information about each materialized view in the database.
视图pg_matviews提供了对数据库中每个物化视图的有用信息的访问。
schemaname matviewname matviewowner tablesp…系统视图 · 系统目录
pg_matviews53.14. pg_matviews
视图 pg_matviews 提供了对数据库中每个物化视图的有用信息的访问。表 53.14. pg_matviews 列 列类型 描述 schemaname name(引用 pg_namespace.nspname) 包含物化视图的模式名称 matviewname name(引用 pg_class.relname) 物化视图名称 matvi…pg_matviews
pg_mcv_list多变量最常见值列表
字符串
pg_mcv_list
目录名称 pg_catalog.pg_mcv_list
类型 OID 5017
类型种类 基础类型
声明长度 变长(varlena)
存储策略 extended
输入函数 pg_mcv_list_in
输出函数 pg_mcv_list_out
存储策略 扩展数据类型 · 字符串
pg_mcv_list_itemspg_mcv_list_items返回一组记录,描述存储在多列MCV列表中的所有项目。
pg_mcv_list_items returns a set of records describing all items stored in a multi-column MCV list.
pg_mcv_list_items ( pg_mcv_list ) → setof recor…函数 · 统计信息函数
pg_median_utilspg_median_utils:提供中位数滤波和迭代中位数滤波窗口函数。
Median filter and iterative median filter window functions for PostgreSQL
median statistics window-function
pg_median_utils
函数与聚合函数与聚合 · 扩展目录
pg_mem_counters在 PostgreSQL 共享内存中维护命名计数器的累计值与每分钟请求数。
Maintains named total and requests-per-minute counters in PostgreSQL shared memory.
monitoring
pg_mem_counters
监控统计监控统计 · 扩展目录
pg_meminfo通过 SQL 检查数据库后端的内存与进程资源使用。
Backend memory and process usage inspection from SQL.
memory backend rss monitoring
pg_meminfo
监控统计监控统计 · 扩展目录
pg_memorycontextpg_memorycontext:统计观测类 PostgreSQL 扩展;用于查看 PostgreSQL 内存上下文信息。
Examines PostgreSQL memory context information.
histogram memory memorycontext
pg_memorycontext
监控统计监控统计 · 扩展目录
更多结果
输入名称或关键词,从 PostgreSQL 手册与扩展目录中直接找到定义。
pg17: 限定版本 ex: 只搜扩展 ↑↓ 选择 ↵ 打开