|
1 |
| -<!-- $PostgreSQL: pgsql/doc/src/sgml/wal.sgml,v 1.46 2007/11/28 15:42:31 petere Exp $ --> |
| 1 | +<!-- $PostgreSQL: pgsql/doc/src/sgml/wal.sgml,v 1.47 2007/12/10 14:05:05 momjian Exp $ --> |
2 | 2 |
|
3 | 3 | <chapter id="wal">
|
4 | 4 | <title>Reliability and the Write-Ahead Log</title>
|
|
58 | 58 | while some are write-back, and the
|
59 | 59 | same concerns about data loss exist for write-back drive caches as
|
60 | 60 | exist for disk controller caches. Consumer-grade IDE drives are
|
61 |
| - particularly likely to contain write-back caches that will not |
62 |
| - survive a power failure. |
| 61 | + particularly likely to have write-back caches that will not survive a |
| 62 | + power failure. To check write caching on <productname>Linux</> use |
| 63 | + <command>hdparm -I</>; it is enabled if there is a <literal>*</> next |
| 64 | + to <literal>Write cache</>. <command>hdparm -W</> can to turn off |
| 65 | + write caching. On <productname>FreeBSD</> use |
| 66 | + <application>atacontrol</>. (For SCSI disks use <ulink |
| 67 | + url="http://sg.torque.net/sg/sdparm.html"><application>sdparm</></ulink> |
| 68 | + to turn off <literal>WCE</>.) On <productname>Windows</> write caching is |
| 69 | + controlled by <literal>My Computer\Open\{select disk |
| 70 | + drive}\Properties\Hardware\Properties\Policies\Enable write caching on |
| 71 | + the disk</>. |
63 | 72 | </para>
|
64 | 73 |
|
65 | 74 | <para>
|
|