PostgreSQL 文档检索
PG 18 · 按类别浏览,或输入名称与关键词
常用条目12356
RELEASE SAVEPOINT释放一个先前定义的保存点
RELEASE [ SAVEPOINT ] savepoint_name
事务控制SQL 命令 · 事务控制
RELEASE SAVEPOINTRELEASE SAVEPOINT RELEASE SAVEPOINT — 释放一个先前定义的保存点大纲 RELEASE [ SAVEPOINT ] savepoint_nameRELEASE SAVEPOINT
reltime有限范围的相对时间间隔(Unix 时间差)
日期与时间
reltime
目录名称 pg_catalog.reltime
类型 OID 703
类型种类 基础类型
声明长度 4 字节
存储策略 plain
输入函数 reltimein
输出函数 reltimeout数据类型 · 日期与时间
remove_temp_files_after_crash控制后端崩溃后是否删除临时文件。
Remove temporary files after backend crash.
remove_temp_files_after_crash:控制后端崩溃后是否删除临时文件。实测在档范围为 PG14–19 Beta 4;最后在档的 PG19 Beta 4 启动默认值为 on,context 为 sighup。这是测试版快照事实,Postg…配置参数 · 开发者选项
ReorderBufferRead在重排序缓冲区管理期间等待读取。
Waiting for a read during reorder buffer management.
`WAIT_EVENT_REORDER_BUFFER_READ` 位于 `src/backend/replication/logical/reorderbuffer.c:4609`,是经 grep 核验的报告路径。公共身份/资源映射位于 `…文件 I/O · 等待事件
ReorderBufferWrite在重排序缓冲区管理期间等待写入。
Waiting for a write during reorder buffer management.
`WAIT_EVENT_REORDER_BUFFER_WRITE` 位于 `src/backend/replication/logical/reorderbuffer.c:4265`,是经 grep 核验的报告路径。公共身份/资源映射位于…文件 I/O · 等待事件
ReorderLogicalMappingRead在重排序缓冲区管理期间等待读取逻辑映射。
Waiting for a read of a logical mapping during reorder buffer management.
`WAIT_EVENT_REORDER_LOGICAL_MAPPING_READ` 位于 `src/backend/replication/logical/reorderbuffer.c:5…文件 I/O · 等待事件
rep_fdw通过 postgres_fdw 将表变更复制到另一台 PostgreSQL 服务器
Replicate table changes to another PostgreSQL server through postgres_fdw
fdw replication trigger
rep_fdw
复制与数据流复制与数据流 · 扩展目录
REPACK重写表以回收磁盘空间
REPACK [ ( option [, ...] ) ] [ table_and_columns [ USING INDEX [ index_name ] ] ]
REPACK [ ( option [, ...] ) ] USING INDEX
其中 option 可以是以下之一:
VERBOSE [ boolean ]
ANALYZE [ bo…SQL 命令 · 其它对象
RepackWorkerExport等待解码工作进程导出新的输出文件。
Waiting for decoding worker to export a new output file.
进程间
IPC
IPC/RepackWorkerExport进程间 · 等待事件
repeat按number指定的次数重复string。
Repeats string the specified number of times.
repeat ( string text, number integer ) → text
字符串函数和操作符函数 · 字符串函数和操作符
repeat比较双重实现SRF的测试仓库
A testing repo comparing an SRF that is dually implemented as ValuePerCall and Materialize
benchmark c c-language postgresql postgresql-extension sql
repeat
功能特性功能特性 · 扩展目录
repeater在远程 PostgreSQL 节点执行序列化原始查询计划的演示扩展。
Demonstration extension for executing serialized raw query plans on a remote PostgreSQL node.
distributed query-plan remote-execution
execplan
分析与列存分析与列存 · 扩展目录
replace将string中所有出现的子字符串from替换为子字符串to。
Replaces all occurrences in string of substring from with substring to.
replace ( string text, from text, to text ) → text
字符串函数和操作符函数 · 字符串函数和操作符
replace_empty_string将空字符串替换为 NULL 的 C 语言触发器函数
C trigger function that replaces empty strings with NULL
empty-string trigger
replace_empty_string
实用工具实用工具 · 扩展目录
replace_string基于 Rust/pgrx 的字面字符串替换函数
Rust/pgrx function for literal string replacement
pgrx rust string
replace_string
函数与聚合函数与聚合 · 扩展目录
replacement_sort_tuples设置使用替换选择排序的最大元组数。
Sets the maximum number of tuples to be sorted using replacement selection.
replacement_sort_tuples:设置使用替换选择排序的最大元组数。实测在档范围为 PG9.6–10;最后在档的 PG10 启动默认值为 150000,context 为 use…配置参数 · 资源消耗 / 内存
replication这个选项确定连接是否应该使用复制协议而不是正常协议。这就是PostgreSQL复制连接以及诸如 pg_basebackup 这样的工具在内部使用的方式,但也可以被第三方应用程序使用。要了解复制协议的描述,请参考 第 54.4 节 。
会话与协议
对应版本的 libpq 源码声明了关键字 replication,但“参数关键字”一节并未记载它。此处保留声明作为源码证据;这不代表…连接参数 · 会话与协议
replication_timeout设置等待 WAL 复制活动的最长时间。
Sets the maximum time to wait for WAL replication.
replication_timeout:设置等待 WAL 复制活动的最长时间。实测在档范围为 PG9.1–9.2;最后在档的 PG9.2 启动默认值为 1 min,context 为 sighup。它在 PG9.3 被移除。
replic…配置参数 · 复制 / 发送服务器
ReplicationOrigin等待创建、删除或使用复制源。
Waiting to create, drop or use a replication origin.
`pgstat_report_wait_start` 位于 `src/backend/storage/lmgr/lwlock.c:739`,是经 grep 核验的报告路径。公共身份/资源映射位于 `src/backend/replication…轻量级锁 · 等待事件
ReplicationOriginDrop等待复制源变为非活动状态,以便可以删除它。
Waiting for a replication origin to become inactive so it can be dropped.
`WAIT_EVENT_REPLICATION_ORIGIN_DROP` 位于 `src/backend/replication/logical/origin.c:408`,是经 grep…进程间 · 等待事件
ReplicationOriginState等待读取或更新一个复制源的进度。
Waiting to read or update the progress of one replication origin.
`pgstat_report_wait_start` 位于 `src/backend/storage/lmgr/lwlock.c:739`,是经 grep 核验的报告路径。公共身份/资源映射位于 `src/back…轻量级锁 · 等待事件
ReplicationSlotAllocation等待分配或释放复制槽。
Waiting to allocate or free a replication slot.
`pgstat_report_wait_start` 位于 `src/backend/storage/lmgr/lwlock.c:739`,是经 grep 核验的报告路径。公共身份/资源映射位于 `src/backend/replication/logical…轻量级锁 · 等待事件
ReplicationSlotControl等待读取或更新复制槽状态。
Waiting to read or update replication slot state.
`pgstat_report_wait_start` 位于 `src/backend/storage/lmgr/lwlock.c:739`,是经 grep 核验的报告路径。公共身份/资源映射位于 `src/backend/replication/log…轻量级锁 · 等待事件
ReplicationSlotDrop等待复制槽变为非活动状态,以便可以删除它。
Waiting for a replication slot to become inactive so it can be dropped.
`WAIT_EVENT_REPLICATION_SLOT_DROP` 位于 `src/backend/replication/slot.c:657`,是经 grep 核验的报告路径。公共身份/…进程间 · 等待事件
ReplicationSlotIO在复制槽上等待I/O。
Waiting for I/O on a replication slot.
`pgstat_report_wait_start` 位于 `src/backend/storage/lmgr/lwlock.c:739`,是经 grep 核验的报告路径。公共身份/资源映射位于 `src/backend/storage/lmgr/lwlock.c:150`。探…轻量级锁 · 等待事件
ReplicationSlotRead等待从复制槽控制文件读取。
Waiting for a read from a replication slot control file.
`WAIT_EVENT_REPLICATION_SLOT_READ` 位于 `src/backend/replication/slot.c:2540`,是经 grep 核验的报告路径。公共身份/资源映射位于 `src/backend/ut…文件 I/O · 等待事件
ReplicationSlotRestoreSync在将复制槽控制文件恢复到内存期间,等待该文件同步到持久存储。
Waiting for a replication slot control file to reach durable storage while restoring it to memory.
`WAIT_EVENT_REPLICATION_SLOT_RESTORE_SYNC` 位于 `src/backend/r…文件 I/O · 等待事件
ReplicationSlotSync等待复制槽控制文件同步到持久存储。
Waiting for a replication slot control file to reach durable storage.
`WAIT_EVENT_REPLICATION_SLOT_SYNC` 位于 `src/backend/replication/slot.c:2405`,是经 grep 核验的报告路径。公共身份/资源映射位…文件 I/O · 等待事件
ReplicationSlotsyncMain在复制槽同步的主循环中等待。
Waiting in main loop of slot synchronization.
`WAIT_EVENT_REPLICATION_SLOTSYNC_MAIN` 位于 `src/backend/replication/logical/slotsync.c:1369`,是经 grep 核验的报告路径。公共身份/资源映射位于 `src/back…空闲等待 · 等待事件
ReplicationSlotsyncShutdown等待复制槽同步工作进程关闭。
Waiting for slot sync worker to shut down.
`WAIT_EVENT_REPLICATION_SLOTSYNC_SHUTDOWN` 位于 `src/backend/replication/logical/slotsync.c:1732`,是经 grep 核验的报告路径。公共身份/资源映射位于 `src/bac…空闲等待 · 等待事件
ReplicationSlotWrite等待对复制槽控制文件的写入。
Waiting for a write to a replication slot control file.
`WAIT_EVENT_REPLICATION_SLOT_WRITE` 位于 `src/backend/replication/slot.c:2384`,是经 grep 核验的报告路径。公共身份/资源映射位于 `src/backend/u…文件 I/O · 等待事件
replisome通过逻辑解码将 PostgreSQL 行变更以 JSON 流输出,并提供 Python 消费框架。
Logical-decoding output plugin and Python consumer framework for streaming PostgreSQL row changes as JSON.
cdc json logical-decoding replica…复制与数据流 · 扩展目录
repmgrPostgreSQL复制管理组件
Replication manager for PostgreSQL
not-used
repmgr
复制与数据流复制与数据流 · 扩展目录
require_auth指定客户端要求服务器采用的认证方法。如果服务器没有使用所要求的方法来认证客户端,或者服务器没有完整完成认证握手,则连接将失败。也可以提供一个以逗号分隔的方法列表,此时服务器必须恰好使用其中一种方法,连接才会成功。默认情况下接受任意认证方法,并且服务器也可以完全跳过认证。
身份认证
require_auth
客户端库 libpq 16.15
手册定义 手册已记载
源码中的环境变…连接参数 · 身份认证
requirepeer指定服务器的操作系统用户名,例如 requirepeer=postgres。建立 Unix 域套接字连接时,如果设置了此参数,客户端会在连接开始时检查服务器进程是否以指定用户运行;不符则报错并中止连接。此参数可提供类似于 TCP/IP 连接中 SSL 证书所提供的服务器身份认证。如果 Unix 域套接字位于 /tmp 等所有人可写的位置,任何用户都可能在那里启动监听服务器;使用…连接参数 · 身份认证
requiressl此选项已弃用,应改用 sslmode。
TLS
requiressl
客户端库 libpq 10.23
手册定义 手册已记载
默认值解析与服务文件优先级
以下环境变量可用于选择连接参数的默认值,供 PQconnectdb 、 PQsetdbLogin 和 PQsetdb 在调用代码未直接指定参数值时使用。例如,这样可以避免在简单的客户端应用程序中硬编码数据库连接信息。
服务名…连接参数 · TLS
reserved_connections设置为具有 pg_use_reserved_connections 权限的角色保留的连接槽数量。
Sets the number of connection slots reserved for roles with privileges of pg_use_reserved_connections.
reserved_connections 定义为具有 pg_use_rese…配置参数 · 连接和认证 / 连接设置
RESET将一个运行时参数的值恢复为默认值
RESET configuration_parameter
RESET ALL
会话与参数SQL 命令 · 会话与参数
RESETRESET RESET — 将一个运行时参数的值恢复为默认值大纲 RESET configuration_parameter RESET ALLRESET
更多结果
输入名称或关键词,从 PostgreSQL 手册与扩展目录中直接找到定义。
pg17: 限定版本 ex: 只搜扩展 ↑↓ 选择 ↵ 打开