File tree Expand file tree Collapse file tree 1 file changed +14
-5
lines changed Expand file tree Collapse file tree 1 file changed +14
-5
lines changed Original file line number Diff line number Diff line change @@ -163,7 +163,7 @@ CREATE PUBLICATION <replaceable class="parameter">name</replaceable>
163
163
</para>
164
164
165
165
<para>
166
- <command>TRUNCATE</command> and other <acronym>DDL</acronym> operations
166
+ <command>TRUNCATE</command> and <acronym>DDL</acronym> operations
167
167
are not published.
168
168
</para>
169
169
</refsect1>
@@ -172,16 +172,25 @@ CREATE PUBLICATION <replaceable class="parameter">name</replaceable>
172
172
<title>Examples</title>
173
173
174
174
<para>
175
- Create a simple publication that just publishes all DML for tables in it :
175
+ Create a publication that publishes all changes in two tables :
176
176
<programlisting>
177
- CREATE PUBLICATION mypublication;
177
+ CREATE PUBLICATION mypublication FOR TABLE users, departments ;
178
178
</programlisting>
179
179
</para>
180
180
181
181
<para>
182
- Create an insert-only publication:
182
+ Create a publication that publishes all changes in all tables :
183
183
<programlisting>
184
- CREATE PUBLICATION insert_only WITH (NOPUBLISH UPDATE, NOPUBLISH DELETE);
184
+ CREATE PUBLICATION alltables FOR ALL TABLES;
185
+ </programlisting>
186
+ </para>
187
+
188
+ <para>
189
+ Create a publication that only publishes <command>INSERT</command>
190
+ operations in one table:
191
+ <programlisting>
192
+ CREATE PUBLICATION insert_only FOR TABLE mydata
193
+ WITH (NOPUBLISH UPDATE, NOPUBLISH DELETE);
185
194
</programlisting>
186
195
</para>
187
196
</refsect1>
You can’t perform that action at this time.
0 commit comments