Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitfb1d92a

Browse files
committed
Some minor improvements to logical decoding document.
Also improve help message in pg_recvlogical.
1 parent033dc1c commitfb1d92a

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

‎doc/src/sgml/logicaldecoding.sgml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
Every output plugin has access to each individual new row produced
2424
by <command>INSERT</command> and the new row version created
2525
by <command>UPDATE</command>. Availability of old row versions for
26-
<command>UPDATE</command> anddelete<command>DELETE</command> depends on
26+
<command>UPDATE</command> and <command>DELETE</command> depends on
2727
the configured
2828
<link linkend="SQL-CREATETABLE-REPLICA-IDENTITY"><literal>REPLICA
2929
IDENTITY</literal></link>.
@@ -46,7 +46,7 @@
4646
</para>
4747
<para>
4848
Before you can use logical decoding, you must set
49-
<xref linkend="guc-wal-level"> to logical and
49+
<xref linkend="guc-wal-level"> to<literal>logical</literal> and
5050
<xref linkend="guc-max-replication-slots"> to at least 1.
5151
Then, you should connect to the target database (in the example
5252
below, <literal>postgres</literal>) as a superuser.
@@ -149,16 +149,16 @@ postgres=# SELECT pg_drop_replication_slot('regression_slot');
149149
another connection.
150150
</para>
151151
<programlisting>
152-
# pg_recvlogical -dtestdb --slot test --create
153-
# pg_recvlogical -dtestdb --slot test --start -f -
152+
# pg_recvlogical -dpostgres --slot test --create
153+
# pg_recvlogical -dpostgres --slot test --start -f -
154154
CTRL-Z
155-
# psql -c "INSERT INTO data(data) VALUES('4');"
155+
# psql -d postgres -c "INSERT INTO data(data) VALUES('4');"
156156
# fg
157157
BEGIN 693
158158
table public.data: INSERT: id[integer]:4 data[text]:'4'
159159
COMMIT 693
160160
CTRL-C
161-
# pg_recvlogical -dtestdb --slot test --drop
161+
# pg_recvlogical -dpostgres --slot test --drop
162162
</programlisting>
163163
</sect1>
164164
<sect1 id="logicaldecoding-explanation">
@@ -198,7 +198,7 @@ CTRL-C
198198
in the stream).
199199
</para>
200200
<note>
201-
<para>PostgreSQL also has streaming replication slots
201+
<para><productname>PostgreSQL</productname> also has streaming replication slots
202202
(see <xref linkend="streaming-replication">), but they are used somewhat
203203
differently there.
204204
</para>
@@ -258,8 +258,8 @@ CTRL-C
258258
<sect1 id="logicaldecoding-walsender">
259259
<title>Streaming Replication Protocol Interface</title>
260260
<para>
261-
The <literal>CREATE_REPLICATION_SLOTSLOTslotname LOGICAL
262-
options</literal>, <literal>DROP_REPLICATION_SLOTSLOTslotname</literal>
261+
The <literal>CREATE_REPLICATION_SLOT slotname LOGICAL
262+
options</literal>, <literal>DROP_REPLICATION_SLOT slotname</literal>
263263
and <literal>START_REPLICATION SLOT slotname LOGICAL options</literal>
264264
commands can be used to create, drop and stream changes from a replication
265265
slot respectively. These commands are only available over a replication

‎src/bin/pg_basebackup/pg_recvlogical.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ usage(void)
8383
printf(_(" -F --fsync-interval=INTERVAL\n"
8484
" frequency of syncs to the output file (in seconds, defaults to 10)\n"));
8585
printf(_(" -o, --option=NAME[=VALUE]\n"
86-
" Specify option NAME with optional valueVAL, to be passed\n"
86+
" Specify option NAME with optional valueVALUE, to be passed\n"
8787
" to the output plugin\n"));
8888
printf(_(" -P, --plugin=PLUGIN use output plugin PLUGIN (defaults to test_decoding)\n"));
8989
printf(_(" -s, --status-interval=INTERVAL\n"

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp