Skip to content

Commit b95193c

Browse files
committed
update 8 files(declare to pg_dump)
1 parent 6de2a17 commit b95193c

File tree

8 files changed

+392
-189
lines changed

8 files changed

+392
-189
lines changed

postgresql/doc/src/sgml/ref/declare.sgml

Lines changed: 75 additions & 71 deletions
Large diffs are not rendered by default.

postgresql/doc/src/sgml/ref/end.sgml

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,13 @@ ____________________________________________________________________________-->
6060
made by the transaction become visible to others and are guaranteed
6161
to be durable if a crash occurs. This command is a
6262
<productname>PostgreSQL</productname> extension
63-
that is equivalent to <xref linkend="sql-commit"/>.
63+
that is equivalent to <link linkend="sql-commit"><command>COMMIT</command></link>.
6464
</para>
6565
____________________________________________________________________________-->
6666
<para>
67-
<command>END</command>提交当前事务。所有该事务做的更改便得
68-
对他人可见并且被保证发生崩溃时仍然是持久的。这个命令是一种
69-
<productname>PostgreSQL</productname>扩展,它等效于
70-
<xref linkend="sql-commit"/>。
67+
<command>END</command>提交当前事务。
68+
所有该事务做的更改便得对他人可见并且被保证发生崩溃时仍然是持久的。
69+
这个命令是一种<productname>PostgreSQL</productname>扩展,它等效于<link linkend="sql-commit"><command>COMMIT</command></link>。
7170
</para>
7271
</refsect1>
7372

@@ -129,12 +128,12 @@ ____________________________________________________________________________-->
129128

130129
<!--==========================orignal english content==========================
131130
<para>
132-
Use <xref linkend="sql-rollback"/> to
131+
Use <link linkend="sql-rollback"><command>ROLLBACK</command></link> to
133132
abort a transaction.
134133
</para>
135134
____________________________________________________________________________-->
136135
<para>
137-
使用<xref linkend="sql-rollback"/>可以中止一个事务。
136+
使用<link linkend="sql-rollback"><command>ROLLBACK</command></link>可以中止一个事务。
138137
</para>
139138

140139
<!--==========================orignal english content==========================
@@ -178,15 +177,13 @@ ____________________________________________________________________________-->
178177
<!--==========================orignal english content==========================
179178
<para>
180179
<command>END</command> is a <productname>PostgreSQL</productname>
181-
extension that provides functionality equivalent to <xref
182-
linkend="sql-commit"/>, which is
180+
extension that provides functionality equivalent to <link
181+
linkend="sql-commit"><command>COMMIT</command></link>, which is
183182
specified in the SQL standard.
184183
</para>
185184
____________________________________________________________________________-->
186185
<para>
187-
<command>END</command>是一种
188-
<productname>PostgreSQL</productname>扩展,它提供和
189-
<xref linkend="sql-commit"/>等效的功能,后者在 SQL 标准中指定。
186+
<command>END</command>是一种<productname>PostgreSQL</productname>扩展,它提供和<link linkend="sql-commit"><command>COMMIT</command></link>等效的功能,后者在 SQL 标准中指定。
190187
</para>
191188
</refsect1>
192189

postgresql/doc/src/sgml/ref/explain.sgml

Lines changed: 20 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ ____________________________________________________________________________-->
3434
<primary>游标</primary>
3535
<secondary>显示查询计划</secondary>
3636
</indexterm>
37-
37+
3838
<!--==========================orignal english content==========================
3939
<refmeta>
4040
<refentrytitle>EXPLAIN</refentrytitle>
@@ -232,12 +232,17 @@ ____________________________________________________________________________-->
232232
the output column list for each node in the plan tree, schema-qualify
233233
table and function names, always label variables in expressions with
234234
their range table alias, and always print the name of each trigger for
235-
which statistics are displayed. This parameter defaults to
236-
<literal>FALSE</literal>.
235+
which statistics are displayed. The query identifier will also be
236+
displayed if one has been computed, see <xref
237+
linkend="guc-compute-query-id"/> for more details. This parameter
238+
defaults to <literal>FALSE</literal>.
237239
</para>
238240
____________________________________________________________________________-->
239241
<para>
240-
显示关于计划的额外信息。特别是:计划树中每个结点的输出列列表、模式限定的表和函数名、总是把表达式中的变量标上它们的范围表别名,以及总是打印统计信息被显示的每个触发器的名称。这个参数默认被设置为<literal>FALSE</literal>。
242+
显示关于计划的额外信息。
243+
特别是:计划树中每个结点的输出列列表、模式限定的表和函数名、总是把表达式中的变量标上它们的范围表别名,以及总是打印统计信息被显示的每个触发器的名称。
244+
如果已经被计算,查询标识符也会被显示,详请参见<xref linkend="guc-compute-query-id"/>。
245+
这个参数默认被设置为<literal>FALSE</literal>。
241246
</para>
242247
</listitem>
243248
</varlistentry>
@@ -339,23 +344,19 @@ ____________________________________________________________________________-->
339344
<!--==========================orignal english content==========================
340345
<para>
341346
Include information on WAL record generation. Specifically, include the
342-
number of records, number of full page images (fpi) and amount of WAL
343-
bytes generated. In text format, only non-zero values are printed. This
344-
parameter may only be used when <literal>ANALYZE</literal> is also
347+
number of records, number of full page images (fpi) and the amount of WAL
348+
generated in bytes. In text format, only non-zero values are printed.
349+
This parameter may only be used when <literal>ANALYZE</literal> is also
345350
enabled. It defaults to <literal>FALSE</literal>.
346351
</para>
347352
____________________________________________________________________________-->
348353
<para>
349-
Include information on WAL record generation. Specifically, include the
350-
number of records, number of full page images (fpi) and amount of WAL
351-
bytes generated. In text format, only non-zero values are printed. This
352-
parameter may only be used when <literal>ANALYZE</literal> is also
353-
enabled. It defaults to <literal>FALSE</literal>.
354-
包括有关WAL记录生成的信息。具体来说,包括记录数、整页图像数(fpi)和生成的WAL字节数。
355-
在文本格式中,仅打印非零值。此参数只能在同时启用<literal>ANALYZE</literal>时使用。
354+
包括有关WAL记录生成的信息。
355+
具体来说,包括记录数、整页图像数(fpi)和生成的WAL字节数量。
356+
在文本格式中,仅打印非零值。
357+
此参数只能在同时启用<literal>ANALYZE</literal>时使用。
356358
它默认为<literal>FALSE</literal>。
357359
</para>
358-
359360
</listitem>
360361
</varlistentry>
361362

@@ -510,12 +511,14 @@ ____________________________________________________________________________-->
510511
the <link linkend="autovacuum">autovacuum daemon</link> will take care
511512
of that automatically. But if a table has recently had substantial
512513
changes in its contents, you might need to do a manual
513-
<xref linkend="sql-analyze"/> rather than wait for autovacuum to catch up
514+
<link linkend="sql-analyze"><command>ANALYZE</command></link> rather than wait for autovacuum to catch up
514515
with the changes.
515516
</para>
516517
____________________________________________________________________________-->
517518
<para>
518-
为了允许<productname>PostgreSQL</productname>查询计划器在优化查询时能做出合理的知情决策,查询中用到的所有表的<link linkend="catalog-pg-statistic"><structname>pg_statistic</structname></link>数据应该能保持为最新。通常这个工作会由<link linkend="autovacuum">autovacuum daemon</link>负责自动完成。但是如果一个表最近在内容上有大量的改变,我们可能需要做一次手动的<xref linkend="sql-analyze"/>而不是等待 autovacuum 捕捉这些改变。
519+
为了允许<productname>PostgreSQL</productname>查询计划器在优化查询时能做出合理的知情决策,查询中用到的所有表的<link linkend="catalog-pg-statistic"><structname>pg_statistic</structname></link>数据应该能保持为最新。
520+
通常这个工作会由<link linkend="autovacuum">autovacuum daemon</link>负责自动完成。
521+
但是如果一个表最近在内容上有大量的改变,我们可能需要做一次手动的<link linkend="sql-analyze"><command>ANALYZE</command></link>而不是等待 autovacuum 捕捉这些改变。
519522
</para>
520523

521524
<!--==========================orignal english content==========================

0 commit comments

Comments
 (0)