Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc3151c2

Browse files
committed
Update description of fsync option for 7.1.
1 parent57e0847 commitc3151c2

File tree

1 file changed

+20
-14
lines changed

1 file changed

+20
-14
lines changed

‎doc/src/sgml/runtime.sgml

Lines changed: 20 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$Header: /cvsroot/pgsql/doc/src/sgml/runtime.sgml,v 1.54 2001/02/16 19:43:52 momjian Exp $
2+
$Header: /cvsroot/pgsql/doc/src/sgml/runtime.sgml,v 1.55 2001/02/18 05:30:12 tgl Exp $
33
-->
44

55
<Chapter Id="runtime">
@@ -936,28 +936,26 @@ env PGOPTIONS='-c geqo=off' psql
936936
<term>FSYNC (<type>boolean</type>)</term>
937937
<listitem>
938938
<para>
939-
If thisisoption is on, the <productname>Postgres</> backend
939+
If this option is on, the <productname>Postgres</> backend
940940
will use the <function>fsync()</> system call in several
941941
places to make sure that updates are physically written to
942-
disk andwill not hang around in thewrite caches. This
942+
disk anddo not hang around in thekernel buffer cache. This
943943
increases the chance that a database installation will still
944-
be usable aftera operating system or hardwarecrashes by a
944+
be usable afteran operating system or hardwarecrash by a
945945
large amount. (Crashes of the database server itself do
946946
<emphasis>not</> affect this consideration.)
947947
</para>
948948

949949
<para>
950-
However, this operationseverelyslows down
951-
<productname>Postgres</>,because at all those points it has
950+
However, this operation slows down <productname>Postgres</>,
951+
because at all those points it has
952952
to block and wait for the operating system to flush the
953953
buffers. Without <function>fsync</>, the operating system is
954954
allowed to do its best in buffering, sorting, and delaying
955-
writes, so this can be a <emphasis>very</> big perfomance
956-
increase. However, if the system crashes, parts of the data of
957-
a transaction that has already been committed -- according to
958-
the information on disk -- will still hang around in memory.
959-
Inconsistent data (i.e., data corruption) is therefore likely
960-
to occur.
955+
writes, which can make for a considerable perfomance
956+
increase. However, if the system crashes, the results of the
957+
last few committed transactions may be lost in part or whole;
958+
in the worst case, unrecoverable data corruption may occur.
961959
</para>
962960

963961
<para>
@@ -967,8 +965,16 @@ env PGOPTIONS='-c geqo=off' psql
967965
where there is a clear restart point if something goes wrong,
968966
some leave it on just to be on the safe side. Because it is
969967
the safe side, on is also the default. If you trust your
970-
operating system, your utility company, and your hardware, you
971-
might want to disable it.
968+
operating system, your hardware, and your utility company (or
969+
better your UPS), you might want to disable fsync.
970+
</para>
971+
972+
<para>
973+
It should be noted that the performance penalty from doing
974+
fsyncs is considerably less in <productname>Postgres</> version
975+
7.1 than it was in prior releases. If you previously suppressed
976+
fsyncs because of performance problems, you may wish to reconsider
977+
your choice.
972978
</para>
973979
</listitem>
974980
</varlistentry>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp