8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 863fad1 commit 9db4ad4Copy full SHA for 9db4ad4
doc/src/sgml/ref/pg_resetxlog.sgml
@@ -27,7 +27,7 @@ PostgreSQL documentation
27
<arg choice="opt"><option>-o</option> <replaceable class="parameter">oid</replaceable></arg>
28
<arg choice="opt"><option>-x</option> <replaceable class="parameter">xid</replaceable></arg>
29
<arg choice="opt"><option>-e</option> <replaceable class="parameter">xid_epoch</replaceable></arg>
30
- <arg choice="opt"><option>-m</option> <replaceable class="parameter">mxid</replaceable></arg>
+ <arg choice="opt"><option>-m</option> <replaceable class="parameter">mxid</replaceable>,<replaceable class="parameter">mxid</replaceable></arg>
31
<arg choice="opt"><option>-O</option> <replaceable class="parameter">mxoff</replaceable></arg>
32
<arg choice="opt"><option>-l</option> <replaceable class="parameter">xlogfile</replaceable></arg>
33
<arg choice="plain"><replaceable>datadir</replaceable></arg>
@@ -81,7 +81,7 @@ PostgreSQL documentation
81
<option>-m</>, <option>-O</>,
82
and <option>-l</>
83
options allow the next OID, next transaction ID, next transaction ID's
84
- epoch, next multitransaction ID, next multitransaction offset, and WAL
+ epoch, next and oldest multitransaction ID, next multitransaction offset, and WAL
85
starting address values to be set manually. These are only needed when
86
<command>pg_resetxlog</command> is unable to determine appropriate values
87
by reading <filename>pg_control</>. Safe values can be determined as
@@ -104,12 +104,16 @@ PostgreSQL documentation
104
105
<listitem>
106
<para>
107
- A safe value for the next multitransaction ID (<option>-m</>)
+ A safe value for the next multitransaction ID (first part of <option>-m</>)
108
can be determined by looking for the numerically largest
109
file name in the directory <filename>pg_multixact/offsets</> under the
110
- data directory, adding one, and then multiplying by 65536. As above,
111
- the file names are in hexadecimal, so the easiest way to do this is to
112
- specify the option value in hexadecimal and add four zeroes.
+ data directory, adding one, and then multiplying by 65536.
+ Conversely, a safe value for the oldest multitransaction ID (second part of
+ <option>-m</>)
113
+ can be determined by looking for the numerically smallest
114
+ file name in the same directory and multiplying by 65536.
115
+ As above, the file names are in hexadecimal, so the easiest way to do
116
+ this is to specify the option value in hexadecimal and append four zeroes.
117
</para>
118
</listitem>
119
@@ -118,9 +122,9 @@ PostgreSQL documentation
122
A safe value for the next multitransaction offset (<option>-O</>)
123
120
124
file name in the directory <filename>pg_multixact/members</> under the
121
125
+ data directory, adding one, and then multiplying by 52352. As above,
126
+ the file names are in hexadecimal. There is no simple recipe such as
127
+ the ones above of appending zeroes.
128
129
130
src/bin/pg_resetxlog/pg_resetxlog.c
@@ -1036,7 +1036,7 @@ usage(void)
1036
printf(_(" -e XIDEPOCH set next transaction ID epoch\n"));
1037
printf(_(" -f force update to be done\n"));
1038
printf(_(" -l XLOGFILE force minimum WAL starting location for new transaction log\n"));
1039
- printf(_(" -m XID,OLDEST set next multitransaction ID and oldest value\n"));
+ printf(_(" -m XID,XID set next and oldest multitransaction ID\n"));
1040
printf(_(" -n no update, just show extracted control values (for testing)\n"));
1041
printf(_(" -o OID set next OID\n"));
1042
printf(_(" -O OFFSET set next multitransaction offset\n"));