synchronous_commit
确定何时报告成功提交的系统参数
synchronous_commit 是一个 配置参数,它决定了 PostgreSQL 在何种程度上向客户端报告提交处理成功。
synchronous_commit 在 PostgreSQL 8.3 中引入。
默认值
synchronous_commit 的默认值为:on。
按 PostgreSQL 版本详细信息
synchronous_commit (PostgreSQL 19)
| 设置 |
开启 |
| 单位 |
|
| 类别 |
Write-Ahead Log / 设置 |
| 简短描述 |
设置当前事务的同步级别。 |
| 扩展描述 |
|
| 上下文 |
user |
| 变量类型 |
enum |
| 来源 |
默认 |
| 最小值 |
|
| 最大值 |
|
| 枚举值 |
local, remote_write, remote_apply, on, off |
| 启动值 |
开启 |
| 重置值 |
开启 |
| 源文件 |
|
| 源行 |
|
| 需要重启 |
false |
文档: synchronous_commit
synchronous_commit (PostgreSQL 18)
| 设置 |
开启 |
| 单位 |
|
| 类别 |
Write-Ahead Log / 设置 |
| 简短描述 |
设置当前事务的同步级别。 |
| 扩展描述 |
|
| 上下文 |
user |
| 变量类型 |
enum |
| 来源 |
默认 |
| 最小值 |
|
| 最大值 |
|
| 枚举值 |
local, remote_write, remote_apply, on, off |
| 启动值 |
开启 |
| 重置值 |
开启 |
| 源文件 |
|
| 源行 |
|
| 需要重启 |
false |
文档: synchronous_commit
synchronous_commit (PostgreSQL 17)
| 设置 |
开启 |
| 单位 |
|
| 类别 |
Write-Ahead Log / 设置 |
| 简短描述 |
设置当前事务的同步级别。 |
| 扩展描述 |
|
| 上下文 |
user |
| 变量类型 |
enum |
| 来源 |
默认 |
| 最小值 |
|
| 最大值 |
|
| 枚举值 |
local, remote_write, remote_apply, on, off |
| 启动值 |
开启 |
| 重置值 |
开启 |
| 源文件 |
|
| 源行 |
|
| 需要重启 |
false |
文档: synchronous_commit
synchronous_commit (PostgreSQL 16)
| 设置 |
开启 |
| 单位 |
|
| 类别 |
Write-Ahead Log / 设置 |
| 简短描述 |
设置当前事务的同步级别。 |
| 扩展描述 |
|
| 上下文 |
user |
| 变量类型 |
enum |
| 来源 |
默认 |
| 最小值 |
|
| 最大值 |
|
| 枚举值 |
local, remote_write, remote_apply, on, off |
| 启动值 |
开启 |
| 重置值 |
开启 |
| 源文件 |
|
| 源行 |
|
| 需要重启 |
false |
文档: synchronous_commit
synchronous_commit (PostgreSQL 15)
| 设置 |
开启 |
| 单位 |
|
| 类别 |
Write-Ahead Log / 设置 |
| 简短描述 |
设置当前事务的同步级别。 |
| 扩展描述 |
|
| 上下文 |
user |
| 变量类型 |
enum |
| 来源 |
默认 |
| 最小值 |
|
| 最大值 |
|
| 枚举值 |
local, remote_write, remote_apply, on, off |
| 启动值 |
开启 |
| 重置值 |
开启 |
| 源文件 |
|
| 源行 |
|
| 需要重启 |
false |
文档: synchronous_commit
synchronous_commit (PostgreSQL 14)
| 设置 |
开启 |
| 单位 |
|
| 类别 |
Write-Ahead Log / 设置 |
| 简短描述 |
设置当前事务的同步级别。 |
| 扩展描述 |
|
| 上下文 |
user |
| 变量类型 |
enum |
| 来源 |
默认 |
| 最小值 |
|
| 最大值 |
|
| 枚举值 |
local, remote_write, remote_apply, on, off |
| 启动值 |
开启 |
| 重置值 |
开启 |
| 源文件 |
|
| 源行 |
|
| 需要重启 |
false |
文档: synchronous_commit
synchronous_commit (PostgreSQL 13)
| 设置 |
开启 |
| 单位 |
|
| 类别 |
Write-Ahead Log / 设置 |
| 简短描述 |
设置当前事务的同步级别。 |
| 扩展描述 |
|
| 上下文 |
user |
| 变量类型 |
enum |
| 来源 |
默认 |
| 最小值 |
|
| 最大值 |
|
| 枚举值 |
local, remote_write, remote_apply, on, off |
| 启动值 |
开启 |
| 重置值 |
开启 |
| 源文件 |
|
| 源行 |
|
| 需要重启 |
false |
文档: synchronous_commit
synchronous_commit (PostgreSQL 12)
| 设置 |
开启 |
| 单位 |
|
| 类别 |
Write-Ahead Log / 设置 |
| 简短描述 |
设置当前事务的同步级别。 |
| 扩展描述 |
|
| 上下文 |
user |
| 变量类型 |
enum |
| 来源 |
默认 |
| 最小值 |
|
| 最大值 |
|
| 枚举值 |
local, remote_write, remote_apply, on, off |
| 启动值 |
开启 |
| 重置值 |
开启 |
| 源文件 |
|
| 源行 |
|
| 需要重启 |
false |
文档: synchronous_commit
synchronous_commit (PostgreSQL 11)
| 设置 |
开启 |
| 单位 |
|
| 类别 |
Write-Ahead Log / 设置 |
| 简短描述 |
设置当前事务的同步级别。 |
| 扩展描述 |
|
| 上下文 |
user |
| 变量类型 |
enum |
| 来源 |
默认 |
| 最小值 |
|
| 最大值 |
|
| 枚举值 |
local, remote_write, remote_apply, on, off |
| 启动值 |
开启 |
| 重置值 |
开启 |
| 源文件 |
|
| 源行 |
|
| 需要重启 |
false |
文档: synchronous_commit
synchronous_commit (PostgreSQL 10)
| 设置 |
开启 |
| 单位 |
|
| 类别 |
Write-Ahead Log / 设置 |
| 简短描述 |
设置当前事务的同步级别。 |
| 扩展描述 |
|
| 上下文 |
user |
| 变量类型 |
enum |
| 来源 |
默认 |
| 最小值 |
|
| 最大值 |
|
| 枚举值 |
local, remote_write, remote_apply, on, off |
| 启动值 |
开启 |
| 重置值 |
开启 |
| 源文件 |
|
| 源行 |
|
| 需要重启 |
false |
文档: synchronous_commit
synchronous_commit (PostgreSQL 9.6)
| 设置 |
开启 |
| 单位 |
|
| 类别 |
Write-Ahead Log / 设置 |
| 简短描述 |
设置当前事务的同步级别。 |
| 扩展描述 |
|
| 上下文 |
user |
| 变量类型 |
enum |
| 来源 |
默认 |
| 最小值 |
|
| 最大值 |
|
| 枚举值 |
local, remote_write, remote_apply, on, off |
| 启动值 |
开启 |
| 重置值 |
开启 |
| 源文件 |
|
| 源行 |
|
| 需要重启 |
false |
文档: synchronous_commit
synchronous_commit (PostgreSQL 9.5)
| 设置 |
开启 |
| 单位 |
|
| 类别 |
Write-Ahead Log / 设置 |
| 简短描述 |
设置当前事务的同步级别。 |
| 扩展描述 |
|
| 上下文 |
user |
| 变量类型 |
enum |
| 来源 |
默认 |
| 最小值 |
|
| 最大值 |
|
| 枚举值 |
local, remote_write, on, off |
| 启动值 |
开启 |
| 重置值 |
开启 |
| 源文件 |
|
| 源行 |
|
| 需要重启 |
false |
文档: synchronous_commit
synchronous_commit (PostgreSQL 9.4)
| 设置 |
开启 |
| 单位 |
|
| 类别 |
Write-Ahead Log / 设置 |
| 简短描述 |
设置当前事务的同步级别。 |
| 扩展描述 |
|
| 上下文 |
user |
| 变量类型 |
enum |
| 来源 |
默认 |
| 最小值 |
|
| 最大值 |
|
| 枚举值 |
local, remote_write, on, off |
| 启动值 |
开启 |
| 重置值 |
开启 |
| 源文件 |
|
| 源行 |
|
文档: synchronous_commit
synchronous_commit (PostgreSQL 9.3)
| 设置 |
开启 |
| 单位 |
|
| 类别 |
Write-Ahead Log / 设置 |
| 简短描述 |
设置当前事务的同步级别。 |
| 扩展描述 |
|
| 上下文 |
user |
| 变量类型 |
enum |
| 来源 |
默认 |
| 最小值 |
|
| 最大值 |
|
| 枚举值 |
local, remote_write, on, off |
| 启动值 |
开启 |
| 重置值 |
开启 |
| 源文件 |
|
| 源行 |
|
文档: synchronous_commit
synchronous_commit (PostgreSQL 9.2)
| 设置 |
开启 |
| 单位 |
|
| 类别 |
Write-Ahead Log / 设置 |
| 简短描述 |
设置当前事务的同步级别。 |
| 扩展描述 |
|
| 上下文 |
user |
| 变量类型 |
enum |
| 来源 |
默认 |
| 最小值 |
|
| 最大值 |
|
| 枚举值 |
local, remote_write, on, off |
| 启动值 |
开启 |
| 重置值 |
开启 |
| 源文件 |
|
| 源行 |
|
文档: synchronous_commit
synchronous_commit (PostgreSQL 9.1)
| 设置 |
开启 |
| 单位 |
|
| 类别 |
Write-Ahead Log / 设置 |
| 简短描述 |
设置当前事务的同步级别。 |
| 扩展描述 |
|
| 上下文 |
user |
| 变量类型 |
enum |
| 来源 |
默认 |
| 最小值 |
|
| 最大值 |
|
| 枚举值 |
local, on, off |
| 启动值 |
开启 |
| 重置值 |
开启 |
| 源文件 |
|
| 源行 |
|
文档: synchronous_commit
synchronous_commit (PostgreSQL 9.0)
| 设置 |
开启 |
| 单位 |
|
| 类别 |
Write-Ahead Log / 设置 |
| 简短描述 |
设置提交时的立即fsync。 |
| 扩展描述 |
|
| 上下文 |
user |
| 变量类型 |
bool |
| 来源 |
默认 |
| 最小值 |
|
| 最大值 |
|
| 枚举值 |
|
| 启动值 |
开启 |
| 重置值 |
开启 |
| 源文件 |
|
| 源行 |
|
文档: synchronous_commit
synchronous_commit (PostgreSQL 8.4)
| 设置 |
开启 |
| 单位 |
|
| 类别 |
Write-Ahead Log / 设置 |
| 简短描述 |
设置提交时的立即fsync。 |
| 扩展描述 |
|
| 上下文 |
user |
| 变量类型 |
bool |
| 来源 |
默认 |
| 最小值 |
|
| 最大值 |
|
| 枚举值 |
|
| 启动值 |
开启 |
| 重置值 |
开启 |
| 源文件 |
|
| 源行 |
|
文档: synchronous_commit
synchronous_commit (PostgreSQL 8.3)
| 设置 |
|
| 单位 |
|
| 类别 |
Write-Ahead Log / 设置 |
| 简短描述 |
设置提交时的立即fsync。 |
| 扩展描述 |
|
| 上下文 |
user |
| 变量类型 |
bool |
| 来源 |
默认 |
| 最小值 |
|
| 最大值 |
|
文档: synchronous_commit
变更历史
反馈
提交关于“
synchronous_commit”的任何评论、建议或更正,请在此处
提交。