aboutsummaryrefslogtreecommitdiff
path: root/doc/src/sgml/recovery.sgml
blob: aa10b8cf640590cc0575108fd924d7c480a55179 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
<chapter Id="failure">
 <title>Database Failures</title>

 <para>
  Database failures (or the possibility of such) must be assumed to be
  lurking, ready to strike at some time in the future. A prudent
  database administrator will plan for the inevitability of failures
  of all possible kinds, and will have appropriate plans and
  procedures in place <emphasis>before</emphasis> the failure occurs.
 </para>

 <para>
  Database recovery is necessary in the event of hardware or software
  failure. There are several categories of failures; some of these
  require relatively minor adjustments to the database, while others
  may depend on the existence of previously prepared database dumps
  and other recovery data sets. It should be emphasized that if your
  data is important and/or difficult to regenerate, then you should
  have considered and prepared for various failure scenarios.
 </para>

 <sect1 id="failure-disk-full">
  <title>Disk Filled</title>

  <para>
   A filled data disk may result in subsequent corruption of database
   indexes, but not of the fundamental data tables. If the WAL files
   are on the same disk (as is the case for a default configuration)
   then a filled disk during database initialization may result in
   corrupted or incomplete WAL files. This failure condition is
   detected and the database will refuse to start up. You must free
   up additional space on the disk (or move the WAL area to another
   disk; see <xref linkend="wal-configuration">) and then restart the
   <application>postmaster</application> to recover from this condition.
  </para>
 </sect1>

 <sect1 id="failure-disk-failed">
  <title>Disk Failed</title>

  <para>
   Failure of any disk (or of a logical storage device such as a RAID
   subsystem) involved with an active database will require
   that the database be recovered from a previously prepared database
   dump. This dump must be prepared using
   <application>pg_dumpall</application>, and updates to the database
   occurring after the database installation was dumped will be lost. 
  </para>
 </sect1>

<!--
 <sect1>
  <title>File Corrupted</title>

  <para>
  </para>
 </sect1>

 <sect1>
  <title>Table Corrupted</title>

  <para>
  </para>
 </sect1>

 <sect1>
  <title></title>

  <para>
  </para>
 </sect1>

 <sect1>
  <title></title>

  <para>
  </para>
 </sect1>

 <sect1>
  <title></title>

  <para>
  </para>
 </sect1>
-->

</chapter>

<!-- Keep this comment at the end of the file
Local variables:
mode:sgml
sgml-omittag:nil
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
sgml-parent-document: ("postgres.sgml" "set" "book" "chapter")
sgml-default-dtd-file:"./reference.ced"
sgml-exposed-tags:nil
sgml-local-ecat-files:nil
End:
-->