Skip to content

Commit 0b12fac

Browse files
committed
翻译PG11遗漏的sgml并重新生成注释
1 parent 3ff1662 commit 0b12fac

File tree

250 files changed

+5443
-5108
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

250 files changed

+5443
-5108
lines changed

postgresql/doc/src/sgml/advanced.sgml

+66-66
Large diffs are not rendered by default.

postgresql/doc/src/sgml/arch-dev.sgml

+40-40
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ ____________________________________________________________________________-->
1414
<!--==========================orignal english content==========================
1515
<para>
1616
This chapter originated as part of
17-
<xref linkend="SIM98">, Stefan Simkovics'
17+
<xref linkend="sim98"/>, Stefan Simkovics'
1818
Master's Thesis prepared at Vienna University of Technology under the direction
1919
of O.Univ.Prof.Dr. Georg Gottlob and Univ.Ass. Mag. Katrin Seyr.
2020
</para>
2121
____________________________________________________________________________-->
2222
<para>
23-
这一章的内容来自于<xref linkend="SIM98"/>的一部分,它是Stefan Simkovics在维也纳技术大学的硕士学位论文,指导人是 Georg Gottlob教授和Mag. Katrin Seyr。
23+
这一章的内容来自于<xref linkend="sim98"/>的一部分,它是Stefan Simkovics在维也纳技术大学的硕士学位论文,指导人是 Georg Gottlob教授和Mag. Katrin Seyr。
2424
</para>
2525
</note>
2626

@@ -186,7 +186,7 @@ ____________________________________________________________________________-->
186186
<!--==========================orignal english content==========================
187187
<para>
188188
<productname>PostgreSQL</productname> is implemented using a
189-
simple <quote>process per user</> client/server model. In this model
189+
simple <quote>process per user</quote> client/server model. In this model
190190
there is one <firstterm>client process</firstterm> connected to
191191
exactly one <firstterm>server process</firstterm>. As we do not
192192
know ahead of time how many connections will be made, we have to
@@ -209,10 +209,10 @@ ____________________________________________________________________________-->
209209
<para>
210210
The client process can be any program that understands the
211211
<productname>PostgreSQL</productname> protocol described in
212-
<xref linkend="protocol">. Many clients are based on the
213-
C-language library <application>libpq</>, but several independent
212+
<xref linkend="protocol"/>. Many clients are based on the
213+
C-language library <application>libpq</application>, but several independent
214214
implementations of the protocol exist, such as the Java
215-
<application>JDBC</> driver.
215+
<application>JDBC</application> driver.
216216
</para>
217217
____________________________________________________________________________-->
218218
<para>
@@ -290,8 +290,8 @@ ____________________________________________________________________________-->
290290
text) for valid syntax. If the syntax is correct a
291291
<firstterm>parse tree</firstterm> is built up and handed back;
292292
otherwise an error is returned. The parser and lexer are
293-
implemented using the well-known Unix tools <application>bison</>
294-
and <application>flex</>.
293+
implemented using the well-known Unix tools <application>bison</application>
294+
and <application>flex</application>.
295295
</para>
296296
____________________________________________________________________________-->
297297
<para>
@@ -391,7 +391,7 @@ ____________________________________________________________________________-->
391391
back by the parser as input and does the semantic interpretation needed
392392
to understand which tables, functions, and operators are referenced by
393393
the query. The data structure that is built to represent this
394-
information is called the <firstterm>query tree</>.
394+
information is called the <firstterm>query tree</firstterm>.
395395
</para>
396396
____________________________________________________________________________-->
397397
<para>
@@ -404,10 +404,10 @@ ____________________________________________________________________________-->
404404
system catalog lookups can only be done within a transaction, and we
405405
do not wish to start a transaction immediately upon receiving a query
406406
string. The raw parsing stage is sufficient to identify the transaction
407-
control commands (<command>BEGIN</>, <command>ROLLBACK</>, etc), and
407+
control commands (<command>BEGIN</command>, <command>ROLLBACK</command>, etc), and
408408
these can then be correctly executed without any further analysis.
409409
Once we know that we are dealing with an actual query (such as
410-
<command>SELECT</> or <command>UPDATE</>), it is okay to
410+
<command>SELECT</command> or <command>UPDATE</command>), it is okay to
411411
start a transaction if we're not already in one. Only then can the
412412
transformation process be invoked.
413413
</para>
@@ -420,10 +420,10 @@ ____________________________________________________________________________-->
420420
<para>
421421
The query tree created by the transformation process is structurally
422422
similar to the raw parse tree in most places, but it has many differences
423-
in detail. For example, a <structname>FuncCall</> node in the
423+
in detail. For example, a <structname>FuncCall</structname> node in the
424424
parse tree represents something that looks syntactically like a function
425-
call. This might be transformed to either a <structname>FuncExpr</>
426-
or <structname>Aggref</> node depending on whether the referenced
425+
call. This might be transformed to either a <structname>FuncExpr</structname>
426+
or <structname>Aggref</structname> node depending on whether the referenced
427427
name turns out to be an ordinary function or an aggregate function.
428428
Also, information about the actual data types of columns and expression
429429
results is added to the query tree.
@@ -495,7 +495,7 @@ ____________________________________________________________________________-->
495495
<!--==========================orignal english content==========================
496496
<para>
497497
The query rewriter is discussed in some detail in
498-
<xref linkend="rules">, so there is no need to cover it here.
498+
<xref linkend="rules"/>, so there is no need to cover it here.
499499
We will only point out that both the input and the output of the
500500
rewriter are query trees, that is, there is no change in the
501501
representation or level of semantic detail in the trees. Rewriting
@@ -538,8 +538,8 @@ ____________________________________________________________________________-->
538538
involving large numbers of join operations. In order to determine
539539
a reasonable (not necessarily optimal) query plan in a reasonable amount
540540
of time, <productname>PostgreSQL</productname> uses a <firstterm>Genetic
541-
Query Optimizer</firstterm> (see <xref linkend="geqo">) when the number of joins
542-
exceeds a threshold (see <xref linkend="guc-geqo-threshold">).
541+
Query Optimizer</firstterm> (see <xref linkend="geqo"/>) when the number of joins
542+
exceeds a threshold (see <xref linkend="guc-geqo-threshold"/>).
543543
</para>
544544
____________________________________________________________________________-->
545545
<para>
@@ -550,10 +550,10 @@ ____________________________________________________________________________-->
550550
<!--==========================orignal english content==========================
551551
<para>
552552
The planner's search procedure actually works with data structures
553-
called <firstterm>paths</>, which are simply cut-down representations of
553+
called <firstterm>paths</firstterm>, which are simply cut-down representations of
554554
plans containing only as much information as the planner needs to make
555555
its decisions. After the cheapest path is determined, a full-fledged
556-
<firstterm>plan tree</> is built to pass to the executor. This represents
556+
<firstterm>plan tree</firstterm> is built to pass to the executor. This represents
557557
the desired execution plan in sufficient detail for the executor to run it.
558558
In the rest of this section we'll ignore the distinction between paths
559559
and plans.
@@ -582,12 +582,12 @@ ____________________________________________________________________________-->
582582
<literal>relation.attribute OPR constant</literal>. If
583583
<literal>relation.attribute</literal> happens to match the key of the B-tree
584584
index and <literal>OPR</literal> is one of the operators listed in
585-
the index's <firstterm>operator class</>, another plan is created using
585+
the index's <firstterm>operator class</firstterm>, another plan is created using
586586
the B-tree index to scan the relation. If there are further indexes
587587
present and the restrictions in the query happen to match a key of an
588588
index, further plans will be considered. Index scan plans are also
589589
generated for indexes that have a sort ordering that can match the
590-
query's <literal>ORDER BY</> clause (if any), or a sort ordering that
590+
query's <literal>ORDER BY</literal> clause (if any), or a sort ordering that
591591
might be useful for merge joining (see below).
592592
</para>
593593
____________________________________________________________________________-->
@@ -677,7 +677,7 @@ ____________________________________________________________________________-->
677677

678678
<!--==========================orignal english content==========================
679679
<para>
680-
If the query uses fewer than <xref linkend="guc-geqo-threshold">
680+
If the query uses fewer than <xref linkend="guc-geqo-threshold"/>
681681
relations, a near-exhaustive search is conducted to find the best
682682
join sequence. The planner preferentially considers joins between any
683683
two relations for which there exist a corresponding join clause in the
@@ -698,7 +698,7 @@ ____________________________________________________________________________-->
698698
<para>
699699
When <varname>geqo_threshold</varname> is exceeded, the join
700700
sequences considered are determined by heuristics, as described
701-
in <xref linkend="geqo">. Otherwise the process is the same.
701+
in <xref linkend="geqo"/>. Otherwise the process is the same.
702702
</para>
703703
____________________________________________________________________________-->
704704
<para>
@@ -711,9 +711,9 @@ ____________________________________________________________________________-->
711711
the base relations, plus nested-loop, merge, or hash join nodes as
712712
needed, plus any auxiliary steps needed, such as sort nodes or
713713
aggregate-function calculation nodes. Most of these plan node
714-
types have the additional ability to do <firstterm>selection</>
714+
types have the additional ability to do <firstterm>selection</firstterm>
715715
(discarding rows that do not meet a specified Boolean condition)
716-
and <firstterm>projection</> (computation of a derived column set
716+
and <firstterm>projection</firstterm> (computation of a derived column set
717717
based on given column values, that is, evaluation of scalar
718718
expressions where needed). One of the responsibilities of the
719719
planner is to attach selection conditions from the
@@ -758,7 +758,7 @@ ____________________________________________________________________________-->
758758
subplan) is, let's say, a
759759
<literal>Sort</literal> node and again recursion is needed to obtain
760760
an input row. The child node of the <literal>Sort</literal> might
761-
be a <literal>SeqScan</> node, representing actual reading of a table.
761+
be a <literal>SeqScan</literal> node, representing actual reading of a table.
762762
Execution of this node causes the executor to fetch a row from the
763763
table and return it up to the calling node. The <literal>Sort</literal>
764764
node will repeatedly call its child to obtain all the rows to be sorted.
@@ -806,24 +806,24 @@ ____________________________________________________________________________-->
806806
<!--==========================orignal english content==========================
807807
<para>
808808
The executor mechanism is used to evaluate all four basic SQL query types:
809-
<command>SELECT</>, <command>INSERT</>, <command>UPDATE</>, and
810-
<command>DELETE</>. For <command>SELECT</>, the top-level executor
809+
<command>SELECT</command>, <command>INSERT</command>, <command>UPDATE</command>, and
810+
<command>DELETE</command>. For <command>SELECT</command>, the top-level executor
811811
code only needs to send each row returned by the query plan tree off
812-
to the client. For <command>INSERT</>, each returned row is inserted
813-
into the target table specified for the <command>INSERT</>. This is
814-
done in a special top-level plan node called <literal>ModifyTable</>.
812+
to the client. For <command>INSERT</command>, each returned row is inserted
813+
into the target table specified for the <command>INSERT</command>. This is
814+
done in a special top-level plan node called <literal>ModifyTable</literal>.
815815
(A simple
816-
<command>INSERT ... VALUES</> command creates a trivial plan tree
817-
consisting of a single <literal>Result</> node, which computes just one
818-
result row, and <literal>ModifyTable</> above it to perform the insertion.
819-
But <command>INSERT ... SELECT</> can demand the full power
820-
of the executor mechanism.) For <command>UPDATE</>, the planner arranges
816+
<command>INSERT ... VALUES</command> command creates a trivial plan tree
817+
consisting of a single <literal>Result</literal> node, which computes just one
818+
result row, and <literal>ModifyTable</literal> above it to perform the insertion.
819+
But <command>INSERT ... SELECT</command> can demand the full power
820+
of the executor mechanism.) For <command>UPDATE</command>, the planner arranges
821821
that each computed row includes all the updated column values, plus
822-
the <firstterm>TID</> (tuple ID, or row ID) of the original target row;
823-
this data is fed into a <literal>ModifyTable</> node, which uses the
822+
the <firstterm>TID</firstterm> (tuple ID, or row ID) of the original target row;
823+
this data is fed into a <literal>ModifyTable</literal> node, which uses the
824824
information to create a new updated row and mark the old row deleted.
825-
For <command>DELETE</>, the only column that is actually returned by the
826-
plan is the TID, and the <literal>ModifyTable</> node simply uses the TID
825+
For <command>DELETE</command>, the only column that is actually returned by the
826+
plan is the TID, and the <literal>ModifyTable</literal> node simply uses the TID
827827
to visit each target row and mark it deleted.
828828
</para>
829829
____________________________________________________________________________-->

postgresql/doc/src/sgml/auth-delay.sgml

+3-3
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ ____________________________________________________________________________-->
3232
<!--==========================orignal english content==========================
3333
<para>
3434
In order to function, this module must be loaded via
35-
<xref linkend="guc-shared-preload-libraries"> in <filename>postgresql.conf</>.
35+
<xref linkend="guc-shared-preload-libraries"/> in <filename>postgresql.conf</filename>.
3636
</para>
3737
____________________________________________________________________________-->
3838
<para>
@@ -51,7 +51,7 @@ ____________________________________________________________________________-->
5151
<term>
5252
<varname>auth_delay.milliseconds</varname> (<type>int</type>)
5353
<indexterm>
54-
<primary><varname>auth_delay.milliseconds</> configuration parameter</primary>
54+
<primary><varname>auth_delay.milliseconds</varname> configuration parameter</primary>
5555
</indexterm>
5656
</term>
5757
____________________________________________________________________________-->
@@ -77,7 +77,7 @@ ____________________________________________________________________________-->
7777

7878
<!--==========================orignal english content==========================
7979
<para>
80-
These parameters must be set in <filename>postgresql.conf</>.
80+
These parameters must be set in <filename>postgresql.conf</filename>.
8181
Typical usage might be:
8282
</para>
8383
____________________________________________________________________________-->

0 commit comments

Comments
 (0)