Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Gpdb
提交
fb1d92a9
G
Gpdb
项目概览
Greenplum
/
Gpdb
通知
7
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
Gpdb
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
fb1d92a9
编写于
3月 19, 2014
作者:
F
Fujii Masao
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Some minor improvements to logical decoding document.
Also improve help message in pg_recvlogical.
上级
033dc1c9
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
10 addition
and
10 deletion
+10
-10
doc/src/sgml/logicaldecoding.sgml
doc/src/sgml/logicaldecoding.sgml
+9
-9
src/bin/pg_basebackup/pg_recvlogical.c
src/bin/pg_basebackup/pg_recvlogical.c
+1
-1
未找到文件。
doc/src/sgml/logicaldecoding.sgml
浏览文件 @
fb1d92a9
...
...
@@ -23,7 +23,7 @@
Every output plugin has access to each individual new row produced
by <command>INSERT</command> and the new row version created
by <command>UPDATE</command>. Availability of old row versions for
<command>UPDATE</command> and
delete
<command>DELETE</command> depends on
<command>UPDATE</command> and <command>DELETE</command> depends on
the configured
<link linkend="SQL-CREATETABLE-REPLICA-IDENTITY"><literal>REPLICA
IDENTITY</literal></link>.
...
...
@@ -46,7 +46,7 @@
</para>
<para>
Before you can use logical decoding, you must set
<xref linkend="guc-wal-level"> to
logical
and
<xref linkend="guc-wal-level"> to
<literal>logical</literal>
and
<xref linkend="guc-max-replication-slots"> to at least 1.
Then, you should connect to the target database (in the example
below, <literal>postgres</literal>) as a superuser.
...
...
@@ -149,16 +149,16 @@ postgres=# SELECT pg_drop_replication_slot('regression_slot');
another connection.
</para>
<programlisting>
# pg_recvlogical -d
testdb
--slot test --create
# pg_recvlogical -d
testdb
--slot test --start -f -
# pg_recvlogical -d
postgres
--slot test --create
# pg_recvlogical -d
postgres
--slot test --start -f -
CTRL-Z
# psql -c "INSERT INTO data(data) VALUES('4');"
# psql -
d postgres -
c "INSERT INTO data(data) VALUES('4');"
# fg
BEGIN 693
table public.data: INSERT: id[integer]:4 data[text]:'4'
COMMIT 693
CTRL-C
# pg_recvlogical -d
testdb
--slot test --drop
# pg_recvlogical -d
postgres
--slot test --drop
</programlisting>
</sect1>
<sect1 id="logicaldecoding-explanation">
...
...
@@ -198,7 +198,7 @@ CTRL-C
in the stream).
</para>
<note>
<para>
PostgreSQL
also has streaming replication slots
<para>
<productname>PostgreSQL</productname>
also has streaming replication slots
(see <xref linkend="streaming-replication">), but they are used somewhat
differently there.
</para>
...
...
@@ -258,8 +258,8 @@ CTRL-C
<sect1 id="logicaldecoding-walsender">
<title>Streaming Replication Protocol Interface</title>
<para>
The <literal>CREATE_REPLICATION_SLOT
SLOT
slotname LOGICAL
options</literal>, <literal>DROP_REPLICATION_SLOT
SLOT
slotname</literal>
The <literal>CREATE_REPLICATION_SLOT slotname LOGICAL
options</literal>, <literal>DROP_REPLICATION_SLOT slotname</literal>
and <literal>START_REPLICATION SLOT slotname LOGICAL options</literal>
commands can be used to create, drop and stream changes from a replication
slot respectively. These commands are only available over a replication
...
...
src/bin/pg_basebackup/pg_recvlogical.c
浏览文件 @
fb1d92a9
...
...
@@ -83,7 +83,7 @@ usage(void)
printf
(
_
(
" -F --fsync-interval=INTERVAL
\n
"
" frequency of syncs to the output file (in seconds, defaults to 10)
\n
"
));
printf
(
_
(
" -o, --option=NAME[=VALUE]
\n
"
" Specify option NAME with optional value VAL, to be passed
\n
"
" Specify option NAME with optional value VAL
UE
, to be passed
\n
"
" to the output plugin
\n
"
));
printf
(
_
(
" -P, --plugin=PLUGIN use output plugin PLUGIN (defaults to test_decoding)
\n
"
));
printf
(
_
(
" -s, --status-interval=INTERVAL
\n
"
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录