Skip to content

Commit 1d7bd33

Browse files
author
Steve888888
committed
11.2版本 补充原文修改 wal.sgml
1 parent cf29b0e commit 1d7bd33

File tree

1 file changed

+13
-14
lines changed

1 file changed

+13
-14
lines changed

postgresql/doc/src/sgml/wal.sgml

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ ____________________________________________________________________________-->
2525
<!--==========================orignal english content==========================
2626
<para>
2727
Reliability is an important property of any serious database
28-
system, and <productname>PostgreSQL</> does everything possible to
28+
system, and <productname>PostgreSQL</productname> does everything possible to
2929
guarantee reliable operation. One aspect of reliable operation is
3030
that all data recorded by a committed transaction should be stored
3131
in a nonvolatile area that is safe from power loss, operating
@@ -51,8 +51,8 @@ ____________________________________________________________________________-->
5151
First, there is the operating system's buffer cache, which caches
5252
frequently requested disk blocks and combines disk writes. Fortunately,
5353
all operating systems give applications a way to force writes from
54-
the buffer cache to disk, and <productname>PostgreSQL</> uses those
55-
features. (See the <xref linkend="guc-wal-sync-method"> parameter
54+
the buffer cache to disk, and <productname>PostgreSQL</productname> uses those
55+
features. (See the <xref linkend="guc-wal-sync-method"/> parameter
5656
to adjust how this is done.)
5757
</para>
5858
____________________________________________________________________________-->
@@ -63,14 +63,14 @@ ____________________________________________________________________________-->
6363
<!--==========================orignal english content==========================
6464
<para>
6565
Next, there might be a cache in the disk drive controller; this is
66-
particularly common on <acronym>RAID</> controller cards. Some of
67-
these caches are <firstterm>write-through</>, meaning writes are sent
66+
particularly common on <acronym>RAID</acronym> controller cards. Some of
67+
these caches are <firstterm>write-through</firstterm>, meaning writes are sent
6868
to the drive as soon as they arrive. Others are
69-
<firstterm>write-back</>, meaning data is sent to the drive at
69+
<firstterm>write-back</firstterm>, meaning data is sent to the drive at
7070
some later time. Such caches can be a reliability hazard because the
7171
memory in the disk controller cache is volatile, and will lose its
7272
contents in a power failure. Better controller cards have
73-
<firstterm>battery-backup units</> (<acronym>BBU</>s), meaning
73+
<firstterm>battery-backup units</firstterm> (<acronym>BBU</acronym>s), meaning
7474
the card has a battery that
7575
maintains power to the cache in case of system power loss. After power
7676
is restored the data will be written to the disk drives.
@@ -1083,13 +1083,12 @@ ____________________________________________________________________________-->
10831083
<acronym>WAL</acronym> logs are stored in the directory
10841084
<filename>pg_wal</filename> under the data directory, as a set of
10851085
segment files, normally each 16 MB in size (but the size can be changed
1086-
by altering the <option>-&minus;with-wal-segsize</> configure option when
1087-
building the server). Each segment is divided into pages, normally
1088-
8 kB each (this size can be changed via the <option>-&minus;with-wal-blocksize</>
1089-
configure option). The log record headers are described in
1090-
<filename>access/xlogrecord.h</filename>; the record content is dependent
1091-
on the type of event that is being logged. Segment files are given
1092-
ever-increasing numbers as names, starting at
1086+
by altering the <option>-&minus;with-wal-segsize</> initdb option). Each segment is
1087+
divided into pages, normally 8 kB each (this size can be changed via the
1088+
<option>-&minus;with-wal-blocksize</> configure option). The log record headers
1089+
are described in <filename>access/xlogrecord.h</filename>; the record
1090+
content is dependent on the type of event that is being logged. Segment
1091+
files are given ever-increasing numbers as names, starting at
10931092
<filename>000000010000000000000000</filename>. The numbers do not wrap,
10941093
but it will take a very, very long time to exhaust the
10951094
available stock of numbers.

0 commit comments

Comments
 (0)