Skip to content

Commit aad0e8a

Browse files
committed
from ref/rollback_prepared.sgml to ref/vacuumdb.sgml
1 parent 1568f9d commit aad0e8a

File tree

10 files changed

+303
-161
lines changed

10 files changed

+303
-161
lines changed

postgresql/doc/src/sgml/ref/rollback_prepared.sgml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,9 +136,9 @@ ____________________________________________________________________________-->
136136

137137
<refsect1 id="sql-rollback-prepared-examples">
138138
<!--==========================orignal english content==========================
139-
<title id="sql-rollback-prepared-examples-title">Examples</title>
139+
<title>Examples</title>
140140
____________________________________________________________________________-->
141-
<title id="sql-rollback-prepared-examples-title">例子</title>
141+
<title>例子</title>
142142
<!--==========================orignal english content==========================
143143
<para>
144144
Roll back the transaction identified by the transaction

postgresql/doc/src/sgml/ref/select.sgml

Lines changed: 99 additions & 101 deletions
Large diffs are not rendered by default.

postgresql/doc/src/sgml/ref/select_into.sgml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ SELECT [ ALL | DISTINCT [ ON ( <replaceable class="parameter">expression</replac
4747
[ FROM <replaceable class="parameter">from_item</replaceable> [, ...] ]
4848
[ WHERE <replaceable class="parameter">condition</replaceable> ]
4949
[ GROUP BY <replaceable class="parameter">expression</replaceable> [, ...] ]
50-
[ HAVING <replaceable class="parameter">condition</replaceable> [, ...] ]
50+
[ HAVING <replaceable class="parameter">condition</replaceable> ]
5151
[ WINDOW <replaceable class="parameter">window_name</replaceable> AS ( <replaceable class="parameter">window_definition</replaceable> ) [, ...] ]
5252
[ { UNION | INTERSECT | EXCEPT } [ ALL | DISTINCT ] <replaceable class="parameter">select</replaceable> ]
5353
[ ORDER BY <replaceable class="parameter">expression</replaceable> [ ASC | DESC | USING <replaceable class="parameter">operator</replaceable> ] [ NULLS { FIRST | LAST } ] [, ...] ]
@@ -65,7 +65,7 @@ SELECT [ ALL | DISTINCT [ ON ( <replaceable class="parameter">expression</replac
6565
[ FROM <replaceable class="parameter">from_item</replaceable> [, ...] ]
6666
[ WHERE <replaceable class="parameter">condition</replaceable> ]
6767
[ GROUP BY <replaceable class="parameter">expression</replaceable> [, ...] ]
68-
[ HAVING <replaceable class="parameter">condition</replaceable> [, ...] ]
68+
[ HAVING <replaceable class="parameter">condition</replaceable> ]
6969
[ WINDOW <replaceable class="parameter">window_name</replaceable> AS ( <replaceable class="parameter">window_definition</replaceable> ) [, ...] ]
7070
[ { UNION | INTERSECT | EXCEPT } [ ALL | DISTINCT ] <replaceable class="parameter">select</replaceable> ]
7171
[ ORDER BY <replaceable class="parameter">expression</replaceable> [ ASC | DESC | USING <replaceable class="parameter">operator</replaceable> ] [ NULLS { FIRST | LAST } ] [, ...] ]

postgresql/doc/src/sgml/ref/set_constraints.sgml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
<!-- doc/src/sgml/ref/set_constraints.sgml -->
1+
<!--
2+
doc/src/sgml/ref/set_constraints.sgml
3+
PostgreSQL documentation
4+
-->
5+
26
<refentry id="sql-set-constraints">
37
<!--==========================orignal english content==========================
48
<indexterm zone="sql-set-constraints">

postgresql/doc/src/sgml/ref/set_session_auth.sgml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
<!-- doc/src/sgml/ref/set_session_auth.sgml -->
1+
<!--
2+
doc/src/sgml/ref/set_session_auth.sgml
3+
PostgreSQL documentation
4+
-->
5+
26
<refentry id="sql-set-session-authorization">
37
<!--==========================orignal english content==========================
48
<indexterm zone="sql-set-session-authorization">

postgresql/doc/src/sgml/ref/set_transaction.sgml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
<!-- doc/src/sgml/ref/set_transaction.sgml -->
1+
<!--
2+
doc/src/sgml/ref/set_transaction.sgml
3+
PostgreSQL documentation
4+
-->
5+
26
<refentry id="sql-set-transaction">
37
<!--==========================orignal english content==========================
48
<indexterm zone="sql-set-transaction">

postgresql/doc/src/sgml/ref/truncate.sgml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -296,8 +296,7 @@ ____________________________________________________________________________-->
296296
When <literal>RESTART IDENTITY</literal> is specified, the implied
297297
<command>ALTER SEQUENCE RESTART</command> operations are also done
298298
transactionally; that is, they will be rolled back if the surrounding
299-
transaction does not commit. This is unlike the normal behavior of
300-
<command>ALTER SEQUENCE RESTART</command>. Be aware that if any additional
299+
transaction does not commit. Be aware that if any additional
301300
sequence operations are done on the restarted sequences before the
302301
transaction rolls back, the effects of these operations on the sequences
303302
will be rolled back, but not their effects on <function>currval()</function>;
@@ -311,8 +310,7 @@ ____________________________________________________________________________-->
311310
<para>
312311
在指定了<literal>RESTART IDENTITY</literal>时,隐含的
313312
<command>ALTER SEQUENCE RESTART</command>操作也会被事务性地完成。
314-
也就是说,如果所在事务没有提交,它们也将被回滚。这和
315-
<command>ALTER SEQUENCE RESTART</command>的通常行为不同。注意如果
313+
也就是说,如果所在事务没有提交,它们也将被回滚。注意如果
316314
事务回滚前在被重启序列上还做了额外的序列操作,这些操作在序列上的效果
317315
也将被回滚,但是它们在<function>currval()</function>上的效果不会被回滚。也就
318316
是说,在事务之后,<function>currval()</function>将继续反映在失败事务内得到的

postgresql/doc/src/sgml/ref/update.sgml

Lines changed: 26 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ UPDATE [ ONLY ] <replaceable class="parameter">table_name</replaceable> [ * ] [
4646
( <replaceable class="parameter">column_name</replaceable> [, ...] ) = [ ROW ] ( { <replaceable class="parameter">expression</replaceable> | DEFAULT } [, ...] ) |
4747
( <replaceable class="parameter">column_name</replaceable> [, ...] ) = ( <replaceable class="parameter">sub-SELECT</replaceable> )
4848
} [, ...]
49-
[ FROM <replaceable class="parameter">from_list</replaceable> ]
49+
[ FROM <replaceable class="parameter">from_item</replaceable> [, ...] ]
5050
[ WHERE <replaceable class="parameter">condition</replaceable> | WHERE CURRENT OF <replaceable class="parameter">cursor_name</replaceable> ]
5151
[ RETURNING * | <replaceable class="parameter">output_expression</replaceable> [ [ AS ] <replaceable class="parameter">output_name</replaceable> ] [, ...] ]
5252
</synopsis>
@@ -58,7 +58,7 @@ UPDATE [ ONLY ] <replaceable class="parameter">table_name</replaceable> [ * ] [
5858
( <replaceable class="parameter">column_name</replaceable> [, ...] ) = [ ROW ] ( { <replaceable class="parameter">expression</replaceable> | DEFAULT } [, ...] ) |
5959
( <replaceable class="parameter">column_name</replaceable> [, ...] ) = ( <replaceable class="parameter">sub-SELECT</replaceable> )
6060
} [, ...]
61-
[ FROM <replaceable class="parameter">from_list</replaceable> ]
61+
[ FROM <replaceable class="parameter">from_item</replaceable> [, ...] ]
6262
[ WHERE <replaceable class="parameter">condition</replaceable> | WHERE CURRENT OF <replaceable class="parameter">cursor_name</replaceable> ]
6363
[ RETURNING * | <replaceable class="parameter">output_expression</replaceable> [ [ AS ] <replaceable class="parameter">output_name</replaceable> ] [, ...] ]
6464
</synopsis>
@@ -268,13 +268,17 @@ ____________________________________________________________________________-->
268268
<listitem>
269269
<!--==========================orignal english content==========================
270270
<para>
271-
Set the column to its default value (which will be NULL if no
272-
specific default expression has been assigned to it).
271+
Set the column to its default value (which will be NULL if no specific
272+
default expression has been assigned to it). An identity column will be
273+
set to a new value generated by the associated sequence. For a
274+
generated column, specifying this is permitted but merely specifies the
275+
normal behavior of computing the column from its generation expression.
273276
</para>
274277
____________________________________________________________________________-->
275278
<para>
276279
将该列设置为它的默认值(如果没有为它指定默认值表达式,默认值
277-
将会为 NULL)。
280+
将会为 NULL)。标识列将设置为关联序列生成的新值。
281+
对于生成的列,允许指定此项,但仅指定从其生成表达式计算列的正常行为。
278282
</para>
279283
</listitem>
280284
</varlistentry>
@@ -307,29 +311,28 @@ ____________________________________________________________________________-->
307311

308312
<varlistentry>
309313
<!--==========================orignal english content==========================
310-
<term><replaceable class="parameter">from_list</replaceable></term>
314+
<term><replaceable class="parameter">from_item</replaceable></term>
311315
____________________________________________________________________________-->
312-
<term><replaceable class="parameter">from_list</replaceable></term>
316+
<term><replaceable class="parameter">from_item</replaceable></term>
313317
<listitem>
314318
<!--==========================orignal english content==========================
315319
<para>
316-
A list of table expressions, allowing columns from other tables
317-
to appear in the <literal>WHERE</literal> condition and the update
318-
expressions. This is similar to the list of tables that can be
319-
specified in the <xref linkend="sql-from"
320-
endterm="sql-from-title"/> of a <command>SELECT</command>
321-
statement. Note that the target table must not appear in the
322-
<replaceable>from_list</replaceable>, unless you intend a self-join (in which
323-
case it must appear with an alias in the <replaceable>from_list</replaceable>).
320+
A table expression allowing columns from other tables to appear in
321+
the <literal>WHERE</literal> condition and update expressions. This
322+
uses the same syntax as the <link
323+
linkend="sql-from"><literal>FROM</literal></link> clause of
324+
a <command>SELECT</command> statement;
325+
for example, an alias for the table name can be specified. Do not
326+
repeat the target table as a <replaceable>from_item</replaceable>
327+
unless you intend a self-join (in which case it must appear with
328+
an alias in the <replaceable>from_item</replaceable>).
324329
</para>
325330
____________________________________________________________________________-->
326331
<para>
327-
表表达式的列表,允许来自其他表的列出现在<literal>WHERE</literal>
328-
条件和更新表达式中。这类似于可以在
329-
<command>SELECT</command>语句的<xref linkend="sql-from"
330-
endterm="sql-from-title"/>中指定的表列表。注意目标表不能出现在
331-
<replaceable>from_list</replaceable>中,除非你想做自连接(这种情况下它必须
332-
以别名出现在<replaceable>from_list</replaceable>中)。
332+
表表达式允许来自其他表的列出现在<literal>WHERE</literal>条件和更新表达式中。这使用与
333+
<command>SELECT</command>语句的<link linkend="sql-from"><literal>FROM</literal></link>
334+
子句相同的语法;例如,可以指定表名的别名。不要将目标表作为<replaceable>from_list</replaceable>
335+
重复,除非你想做自连接(这种情况下它必须以别名出现在<replaceable>from_list</replaceable>中)。
333336
</para>
334337
</listitem>
335338
</varlistentry>
@@ -491,7 +494,7 @@ ____________________________________________________________________________-->
491494
<para>
492495
When a <literal>FROM</literal> clause is present, what essentially happens
493496
is that the target table is joined to the tables mentioned in the
494-
<replaceable>from_list</replaceable>, and each output row of the join
497+
<replaceable>from_item</replaceable> list, and each output row of the join
495498
represents an update operation for the target table. When using
496499
<literal>FROM</literal> you should ensure that the join
497500
produces at most one output row for each row to be modified. In
@@ -503,7 +506,7 @@ ____________________________________________________________________________-->
503506
____________________________________________________________________________-->
504507
<para>
505508
当存在<literal>FROM</literal>子句时,实际发生的是:目标表被连接到
506-
<replaceable>from_list</replaceable>中的表,并且该连接的每一
509+
<replaceable>from_item</replaceable>列表中的表,并且该连接的每一
507510
个输出行表示对目标表的一个更新操作。在使用<literal>FROM</literal>
508511
时,你应该确保该连接对每一个要修改的行产生至多一个输出行。换
509512
句话说,一个目标行不应该连接到来自其他表的多于一行上。如果发

0 commit comments

Comments
 (0)