Skip to content

Commit 29cbf6c

Browse files
authored
Merge pull request #256 from chegong18/master
Update create_table.sgml, and create_publication.sgml etc
2 parents 8d2ec75 + f68fb38 commit 29cbf6c

File tree

9 files changed

+800
-376
lines changed

9 files changed

+800
-376
lines changed

postgresql/doc/src/sgml/ref/create_publication.sgml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ doc/src/sgml/ref/create_publication.sgml
33
PostgreSQL documentation
44
-->
55

6-
<refentry id="SQL-CREATEPUBLICATION">
6+
<refentry id="sql-createpublication">
77
<!--==========================orignal english content==========================
88
<indexterm zone="sql-createpublication">
99
<primary>CREATE PUBLICATION</primary>
@@ -122,10 +122,10 @@ ____________________________________________________________________________-->
122122
<!--==========================orignal english content==========================
123123
<para>
124124
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
127127
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
129129
explicitly indicate that descendant tables are included.
130130
</para>
131131
____________________________________________________________________________-->
@@ -190,10 +190,11 @@ ____________________________________________________________________________-->
190190
This parameter determines which DML operations will be published by
191191
the new publication to the subscribers. The value is
192192
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,
195196
and so the default value for this option is
196-
<literal>'insert, update, delete'</literal>.
197+
<literal>'insert, update, delete, truncate'</literal>.
197198
</para>
198199
</listitem>
199200
</varlistentry>
@@ -211,9 +212,9 @@ ____________________________________________________________________________-->
211212
<para>
212213
这个参数决定了哪些DML操作将由新的发布发布给订阅者。
213214
该值是用逗号分隔的操作列表。允许的操作是<literal>insert</literal>,
214-
<literal>update</literal><literal>delete</literal>。
215+
<literal>update</literal><literal>delete</literal>和<literal>truncate</literal>。
215216
默认是发布所有的动作,所以这个选项的默认值是
216-
<literal>'insert, update, delete'</literal>。
217+
<literal>'insert, update, delete, truncate'</literal>。
217218
</para>
218219
</listitem>
219220
</varlistentry>
@@ -257,7 +258,7 @@ ____________________________________________________________________________-->
257258
<!--==========================orignal english content==========================
258259
<para>
259260
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.
261262
(Of course, superusers bypass this check.)
262263
</para>
263264
____________________________________________________________________________-->
@@ -282,7 +283,7 @@ ____________________________________________________________________________-->
282283
<para>
283284
The tables added to a publication that publishes <command>UPDATE</command>
284285
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
286287
disallowed on those tables.
287288
</para>
288289
____________________________________________________________________________-->
@@ -294,7 +295,7 @@ ____________________________________________________________________________-->
294295

295296
<!--==========================orignal english content==========================
296297
<para>
297-
For an <command>INSERT ... ON CONFLICT</> command, the publication will
298+
For an <command>INSERT ... ON CONFLICT</command> command, the publication will
298299
publish the operation that actually results from the command. So depending
299300
of the outcome, it may be published as either <command>INSERT</command> or
300301
<command>UPDATE</command>, or it may not be published at all.
@@ -318,12 +319,11 @@ ____________________________________________________________________________-->
318319

319320
<!--==========================orignal english content==========================
320321
<para>
321-
<command>TRUNCATE</command> and <acronym>DDL</acronym> operations
322-
are not published.
322+
<acronym>DDL</acronym> operations are not published.
323323
</para>
324324
____________________________________________________________________________-->
325325
<para>
326-
不发布<command>TRUNCATE</command>和<acronym>DDL</acronym>操作。
326+
不发布<acronym>DDL</acronym>操作。
327327
</para>
328328
</refsect1>
329329

@@ -388,7 +388,7 @@ ____________________________________________________________________________-->
388388

389389
<!--==========================orignal english content==========================
390390
<para>
391-
<command>CREATE PUBLICATION</command> is a <productname>PostgreSQL</>
391+
<command>CREATE PUBLICATION</command> is a <productname>PostgreSQL</productname>
392392
extension.
393393
</para>
394394
____________________________________________________________________________-->

0 commit comments

Comments
 (0)