Remove pg_resetxlog -r flag, feature has problems referenced here:

http://archives.postgresql.org/pgsql-hackers/2006-05/msg00002.php
This commit is contained in:
Bruce Momjian 2006-06-03 02:19:24 +00:00
parent a513ce2dff
commit be05b260a9
2 changed files with 101 additions and 931 deletions

View File

@ -1,5 +1,5 @@
<!-- <!--
$PostgreSQL: pgsql/doc/src/sgml/ref/pg_resetxlog.sgml,v 1.14 2006/04/26 02:17:15 momjian Exp $ $PostgreSQL: pgsql/doc/src/sgml/ref/pg_resetxlog.sgml,v 1.15 2006/06/03 02:19:24 momjian Exp $
PostgreSQL documentation PostgreSQL documentation
--> -->
@ -20,7 +20,6 @@ PostgreSQL documentation
<command>pg_resetxlog</command> <command>pg_resetxlog</command>
<arg>-f</arg> <arg>-f</arg>
<arg>-n</arg> <arg>-n</arg>
<arg>-r</arg>
<arg>-o<replaceable class="parameter">oid</replaceable> </arg> <arg>-o<replaceable class="parameter">oid</replaceable> </arg>
<arg>-x <replaceable class="parameter">xid</replaceable> </arg> <arg>-x <replaceable class="parameter">xid</replaceable> </arg>
<arg>-m <replaceable class="parameter">mxid</replaceable> </arg> <arg>-m <replaceable class="parameter">mxid</replaceable> </arg>
@ -58,22 +57,22 @@ PostgreSQL documentation
<para> <para>
If <command>pg_resetxlog</command> complains that it cannot determine If <command>pg_resetxlog</command> complains that it cannot determine
valid data for <filename>pg_control</>, you can force it to proceed valid data for <filename>pg_control</>, you can force it to proceed anyway
anyway by specifying the <literal>-f</> (force) switch. In this case by specifying the <literal>-f</> (force) switch. In this case plausible
plausible values will be substituted for the missing data. values will be substituted for the missing data. Most of the fields can be
<command>pg_resetxlog</command>'s own environment is the source for expected to match, but manual assistance may be needed for the next OID,
its guess at the locale fields; take care that <envar>LANG</> and so next transaction ID, next multitransaction ID and offset,
forth match the environment that <command>initdb</> was run in. WAL starting address, and database locale fields.
<filename>/xlog</> files are used to determine other parameters, like The first five of these can be set using the switches discussed below.
next OID, next transaction ID, next multi-transaction ID and offset, <command>pg_resetxlog</command>'s own environment is the source for its
WAL starting address, and database locale fields. Because determined guess at the locale fields; take care that <envar>LANG</> and so forth
values might be wrong, the first five of these can be set using the match the environment that <command>initdb</> was run in.
switches discussed below. If you are not able to determine correct If you are not able to determine correct values for all these fields,
values for all these fields, <literal>-f</> can still be used, but <literal>-f</> can still be used, but
the recovered database must be treated with even more suspicion than the recovered database must be treated with even more suspicion than
usual: an immediate dump and reload is imperative. <emphasis>Do usual: an immediate dump and reload is imperative. <emphasis>Do not</>
not</> execute any data-modifying operations in the database before execute any data-modifying operations in the database before you dump;
you dump; as any such action is likely to make the corruption worse. as any such action is likely to make the corruption worse.
</para> </para>
<para> <para>
@ -150,11 +149,6 @@ PostgreSQL documentation
</itemizedlist> </itemizedlist>
</para> </para>
<para>
The <literal>-r</> restores <filename>pg_control</> counters listed
above without resetting the write-ahead log.
</para>
<para> <para>
The <literal>-n</> (no operation) switch instructs The <literal>-n</> (no operation) switch instructs
<command>pg_resetxlog</command> to print the values reconstructed from <command>pg_resetxlog</command> to print the values reconstructed from

File diff suppressed because it is too large Load Diff