Skip to content

Commit fb1d92a

Browse files
committed
Some minor improvements to logical decoding document.
Also improve help message in pg_recvlogical.
1 parent 033dc1c commit fb1d92a

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

doc/src/sgml/logicaldecoding.sgml

+9-9
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> and delete <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 -d testdb --slot test --create
153-
# pg_recvlogical -d testdb --slot test --start -f -
152+
# pg_recvlogical -d postgres --slot test --create
153+
# pg_recvlogical -d postgres --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 -d testdb --slot test --drop
161+
# pg_recvlogical -d postgres --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_SLOT SLOT slotname LOGICAL
262-
options</literal>, <literal>DROP_REPLICATION_SLOT SLOT slotname</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

+1-1
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 value VAL, to be passed\n"
86+
" Specify option NAME with optional value VALUE, 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)