@@ -16,22 +16,30 @@ PostgreSQL documentation
16
16
17
17
<refnamediv>
18
18
<refname>pg_verify_checksums</refname>
19
- <refpurpose>verify data checksums in an offline <productname>PostgreSQL</productname> database cluster</refpurpose>
19
+ <refpurpose>verify data checksums in a <productname>PostgreSQL</productname> database cluster</refpurpose>
20
20
</refnamediv>
21
21
22
22
<refsynopsisdiv>
23
23
<cmdsynopsis>
24
24
<command>pg_verify_checksums</command>
25
- <arg choice="opt"><replaceable class="parameter">option</replaceable></arg>
26
- <arg choice="opt"><arg choice="opt"><option>-D</option></arg><arg choice="opt"><option>--pgdata</option></arg> <replaceable class="parameter">datadir</replaceable></arg>
25
+ <arg rep="repeat" choice="opt"><replaceable class="parameter">option</replaceable></arg>
26
+ <group choice="opt">
27
+ <group choice="opt">
28
+ <arg choice="plain"><option>-D</option></arg>
29
+ <arg choice="plain"><option>--pgdata</option></arg>
30
+ </group>
31
+ <replaceable class="parameter"> datadir</replaceable>
32
+ </group>
27
33
</cmdsynopsis>
28
34
</refsynopsisdiv>
29
35
30
36
<refsect1 id="r1-app-pg_verify_checksums-1">
31
37
<title>Description</title>
32
38
<para>
33
39
<command>pg_verify_checksums</command> verifies data checksums in a
34
- <productname>PostgreSQL</productname> cluster.
40
+ <productname>PostgreSQL</productname> cluster. The server must be shut
41
+ down cleanly before running <application>pg_verify_checksums</application>.
42
+ The exit status is zero if there are no checksum errors, otherwise nonzero.
35
43
</para>
36
44
</refsect1>
37
45
@@ -42,7 +50,6 @@ PostgreSQL documentation
42
50
The following command-line options are available:
43
51
44
52
<variablelist>
45
-
46
53
<varlistentry>
47
54
<term><option>-D <replaceable>directory</replaceable></option></term>
48
55
<term><option>--pgdata=<replaceable>directory</replaceable></option></term>
@@ -54,19 +61,19 @@ PostgreSQL documentation
54
61
</varlistentry>
55
62
56
63
<varlistentry>
57
- <term><option>-r <replaceable>relfilenode</replaceable> </option></term>
64
+ <term><option>-d </option></term>
58
65
<listitem>
59
66
<para>
60
- Only validate checksums in the relation with specified relfilenode .
67
+ Enable debug output. Lists all checked blocks and their checksum .
61
68
</para>
62
69
</listitem>
63
70
</varlistentry>
64
71
65
72
<varlistentry>
66
- <term><option>-d </option></term>
73
+ <term><option>-r <replaceable>relfilenode</replaceable> </option></term>
67
74
<listitem>
68
75
<para>
69
- Enable debug output. Lists all checked blocks and their checksum .
76
+ Only validate checksums in the relation with specified relfilenode .
70
77
</para>
71
78
</listitem>
72
79
</varlistentry>
@@ -76,7 +83,7 @@ PostgreSQL documentation
76
83
<term><option>--version</option></term>
77
84
<listitem>
78
85
<para>
79
- Print the <application>pg_verify_checksums</application> version and exit.
86
+ Print the <application>pg_verify_checksums</application> version and exit.
80
87
</para>
81
88
</listitem>
82
89
</varlistentry>
@@ -104,20 +111,11 @@ PostgreSQL documentation
104
111
105
112
<listitem>
106
113
<para>
107
- Specifies the directory where the database cluster is
114
+ Specifies the directory where the database cluster is
108
115
stored; can be overridden using the <option>-D</option> option.
109
116
</para>
110
117
</listitem>
111
118
</varlistentry>
112
119
</variablelist>
113
120
</refsect1>
114
-
115
- <refsect1>
116
- <title>Notes</title>
117
- <para>
118
- The cluster must be shut down cleanly before running
119
- <application>pg_verify_checksums</application>.
120
- </para>
121
- </refsect1>
122
-
123
121
</refentry>
0 commit comments