Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
postgres-lambda-diff
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Huber
postgres-lambda-diff
Commits
fb1d92a9
Commit
fb1d92a9
authored
11 years ago
by
Fujii Masao
Browse files
Options
Downloads
Patches
Plain Diff
Some minor improvements to logical decoding document.
Also improve help message in pg_recvlogical.
parent
033dc1c9
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
doc/src/sgml/logicaldecoding.sgml
+9
-9
9 additions, 9 deletions
doc/src/sgml/logicaldecoding.sgml
src/bin/pg_basebackup/pg_recvlogical.c
+1
-1
1 addition, 1 deletion
src/bin/pg_basebackup/pg_recvlogical.c
with
10 additions
and
10 deletions
doc/src/sgml/logicaldecoding.sgml
+
9
−
9
View file @
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
...
...
This diff is collapsed.
Click to expand it.
src/bin/pg_basebackup/pg_recvlogical.c
+
1
−
1
View file @
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
"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment