Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
cbf7ed51
Commit
cbf7ed51
authored
Mar 22, 2017
by
Peter Eisentraut
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
doc: Improve CREATE PUBLICATION examples
parent
b9418911
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
5 deletions
+14
-5
doc/src/sgml/ref/create_publication.sgml
doc/src/sgml/ref/create_publication.sgml
+14
-5
No files found.
doc/src/sgml/ref/create_publication.sgml
View file @
cbf7ed51
...
...
@@ -163,7 +163,7 @@ CREATE PUBLICATION <replaceable class="parameter">name</replaceable>
</para>
<para>
<command>TRUNCATE</command> and
other
<acronym>DDL</acronym> operations
<command>TRUNCATE</command> and <acronym>DDL</acronym> operations
are not published.
</para>
</refsect1>
...
...
@@ -172,16 +172,25 @@ CREATE PUBLICATION <replaceable class="parameter">name</replaceable>
<title>Examples</title>
<para>
Create a
simple publication that just publishes all DML for tables in it
:
Create a
publication that publishes all changes in two tables
:
<programlisting>
CREATE PUBLICATION mypublication;
CREATE PUBLICATION mypublication
FOR TABLE users, departments
;
</programlisting>
</para>
<para>
Create a
n insert-only publication
:
Create a
publication that publishes all changes in all tables
:
<programlisting>
CREATE PUBLICATION insert_only WITH (NOPUBLISH UPDATE, NOPUBLISH DELETE);
CREATE PUBLICATION alltables FOR ALL TABLES;
</programlisting>
</para>
<para>
Create a publication that only publishes <command>INSERT</command>
operations in one table:
<programlisting>
CREATE PUBLICATION insert_only FOR TABLE mydata
WITH (NOPUBLISH UPDATE, NOPUBLISH DELETE);
</programlisting>
</para>
</refsect1>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment