@@ -3,7 +3,7 @@ doc/src/sgml/ref/create_publication.sgml
3
3
PostgreSQL documentation
4
4
-->
5
5
6
- <refentry id="SQL-CREATEPUBLICATION ">
6
+ <refentry id="sql-createpublication ">
7
7
<!--==========================orignal english content==========================
8
8
<indexterm zone="sql-createpublication">
9
9
<primary>CREATE PUBLICATION</primary>
@@ -122,10 +122,10 @@ ____________________________________________________________________________-->
122
122
<!--==========================orignal english content==========================
123
123
<para>
124
124
Specifies a list of tables to add to the publication. If
125
- <literal>ONLY</> is specified before the table name, only
126
- that table is added to the publication. If <literal>ONLY</> is not
125
+ <literal>ONLY</literal > is specified before the table name, only
126
+ that table is added to the publication. If <literal>ONLY</literal > is not
127
127
specified, the table and all its descendant tables (if any) are added.
128
- Optionally, <literal>*</> can be specified after the table name to
128
+ Optionally, <literal>*</literal > can be specified after the table name to
129
129
explicitly indicate that descendant tables are included.
130
130
</para>
131
131
____________________________________________________________________________-->
@@ -190,10 +190,11 @@ ____________________________________________________________________________-->
190
190
This parameter determines which DML operations will be published by
191
191
the new publication to the subscribers. The value is
192
192
comma-separated list of operations. The allowed operations are
193
- <literal>insert</literal>, <literal>update</literal>, and
194
- <literal>delete</literal>. The default is to publish all actions,
193
+ <literal>insert</literal>, <literal>update</literal>,
194
+ <literal>delete</literal>, and <literal>truncate</literal>.
195
+ The default is to publish all actions,
195
196
and so the default value for this option is
196
- <literal>'insert, update, delete'</literal>.
197
+ <literal>'insert, update, delete, truncate '</literal>.
197
198
</para>
198
199
</listitem>
199
200
</varlistentry>
@@ -211,9 +212,9 @@ ____________________________________________________________________________-->
211
212
<para>
212
213
这个参数决定了哪些DML操作将由新的发布发布给订阅者。
213
214
该值是用逗号分隔的操作列表。允许的操作是<literal>insert</literal>,
214
- <literal>update</literal>和 <literal>delete</literal>。
215
+ <literal>update</literal>, <literal>delete</literal>和<literal>truncate </literal>。
215
216
默认是发布所有的动作,所以这个选项的默认值是
216
- <literal>'insert, update, delete'</literal>。
217
+ <literal>'insert, update, delete, truncate '</literal>。
217
218
</para>
218
219
</listitem>
219
220
</varlistentry>
@@ -257,7 +258,7 @@ ____________________________________________________________________________-->
257
258
<!--==========================orignal english content==========================
258
259
<para>
259
260
To create a publication, the invoking user must have the
260
- <literal>CREATE</> privilege for the current database.
261
+ <literal>CREATE</literal > privilege for the current database.
261
262
(Of course, superusers bypass this check.)
262
263
</para>
263
264
____________________________________________________________________________-->
@@ -282,7 +283,7 @@ ____________________________________________________________________________-->
282
283
<para>
283
284
The tables added to a publication that publishes <command>UPDATE</command>
284
285
and/or <command>DELETE</command> operations must have
285
- <literal>REPLICA IDENTITY</> defined. Otherwise those operations will be
286
+ <literal>REPLICA IDENTITY</literal > defined. Otherwise those operations will be
286
287
disallowed on those tables.
287
288
</para>
288
289
____________________________________________________________________________-->
@@ -294,7 +295,7 @@ ____________________________________________________________________________-->
294
295
295
296
<!--==========================orignal english content==========================
296
297
<para>
297
- For an <command>INSERT ... ON CONFLICT</> command, the publication will
298
+ For an <command>INSERT ... ON CONFLICT</command > command, the publication will
298
299
publish the operation that actually results from the command. So depending
299
300
of the outcome, it may be published as either <command>INSERT</command> or
300
301
<command>UPDATE</command>, or it may not be published at all.
@@ -318,12 +319,11 @@ ____________________________________________________________________________-->
318
319
319
320
<!--==========================orignal english content==========================
320
321
<para>
321
- <command>TRUNCATE</command> and <acronym>DDL</acronym> operations
322
- are not published.
322
+ <acronym>DDL</acronym> operations are not published.
323
323
</para>
324
324
____________________________________________________________________________-->
325
325
<para>
326
- 不发布<command>TRUNCATE</command>和< acronym>DDL</acronym>操作。
326
+ 不发布<acronym>DDL</acronym>操作。
327
327
</para>
328
328
</refsect1>
329
329
@@ -388,7 +388,7 @@ ____________________________________________________________________________-->
388
388
389
389
<!--==========================orignal english content==========================
390
390
<para>
391
- <command>CREATE PUBLICATION</command> is a <productname>PostgreSQL</>
391
+ <command>CREATE PUBLICATION</command> is a <productname>PostgreSQL</productname >
392
392
extension.
393
393
</para>
394
394
____________________________________________________________________________-->
0 commit comments