From 3b82593e00bc74acb43ff49f84ceccee6d07129c Mon Sep 17 00:00:00 2001 From: xinger3011 <3243173011@qq.com> Date: Mon, 30 Nov 2026 07:24:45 +0800 Subject: [PATCH] docs: document pg_recvlogical two-phase option --- CN/modules/ROOT/pages/9.adoc | 6 +++++- EN/modules/ROOT/pages/9.adoc | 6 +++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/CN/modules/ROOT/pages/9.adoc b/CN/modules/ROOT/pages/9.adoc index 2432ee47..bcebefee 100644 --- a/CN/modules/ROOT/pages/9.adoc +++ b/CN/modules/ROOT/pages/9.adoc @@ -2305,7 +2305,7 @@ pg_recvlogical — 控制 IvorySQL 逻辑解码流 - `--create-slot` -为 `--dbname` 指定的数据库用 `--slot` 指定的名称创建一个新的逻辑复制槽,使用 `--plugin` 指定的输出插件。 +为 `--dbname` 指定的数据库用 `--slot` 指定的名称创建一个新的逻辑复制槽,使用 `--plugin` 指定的输出插件。 可以同时指定 `-t` 或 `--enable-two-phase`,以启用对已准备事务的解码;旧选项 `--two-phase` 已弃用,但仍作为别名保留。 - `--drop-slot` @@ -2361,6 +2361,10 @@ pg_recvlogical — 控制 IvorySQL 逻辑解码流 在 `--start` 模式中,使用名为 *`slot_name`* 的已有逻辑复制槽。在 `--create-slot` 模式中,使用这个名称 创建该槽。在 `--drop-slot` 模式中,删除这个名称指定的槽。 +- `-t` `--enable-two-phase` + +启用对已准备事务的解码。此选项只能与 `--create-slot` 一起指定。旧选项 `--two-phase` 已弃用,但仍作为别名保留。 + - `-v` `--verbose` 开启详细输出模式。 diff --git a/EN/modules/ROOT/pages/9.adoc b/EN/modules/ROOT/pages/9.adoc index d4b420c6..ad7e10b4 100644 --- a/EN/modules/ROOT/pages/9.adoc +++ b/EN/modules/ROOT/pages/9.adoc @@ -2279,7 +2279,7 @@ At least one of the following options must be specified to select an action: - `--create-slot` -Create a new logical replication slot with the name specified by `--slot`, using the output plugin specified by `--plugin`, for the database specified by `--dbname`.The `--two-phase` can be specified with `--create-slot` to enable decoding of prepared transactions. +Create a new logical replication slot with the name specified by `--slot`, using the output plugin specified by `--plugin`, for the database specified by `--dbname`. Specify `-t` or `--enable-two-phase` with `--create-slot` to enable decoding of prepared transactions. The older `--two-phase` spelling is deprecated and retained as an alias. - `--drop-slot` @@ -2333,9 +2333,9 @@ This option has the same effect as the option of the same name in http://www.pos In `--start` mode, use the existing logical replication slot named *`slot_name`*. In `--create-slot` mode, create the slot with this name. In `--drop-slot` mode, delete the slot with this name. -- `-t` `--two-phase` +- `-t` `--enable-two-phase` -Enables decoding of prepared transactions. This option may only be specified with `--create-slot` +Enables decoding of prepared transactions. This option may only be specified with `--create-slot`. The older `--two-phase` spelling is deprecated and retained as an alias. - `-v` `--verbose`