Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
08f245bf
Commit
08f245bf
authored
Aug 17, 2002
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add doc file for pg_resetxlog.
parent
33e3c9b0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
89 additions
and
0 deletions
+89
-0
doc/src/sgml/ref/pg_resetxlog.sgml
doc/src/sgml/ref/pg_resetxlog.sgml
+89
-0
No files found.
doc/src/sgml/ref/pg_resetxlog.sgml
0 → 100644
View file @
08f245bf
<!--
$Header: /cvsroot/pgsql/doc/src/sgml/ref/pg_resetxlog.sgml,v 1.1 2002/08/17 02:45:29 momjian Exp $
PostgreSQL documentation
-->
<refentry id="APP-PGRESETXLOG">
<refmeta>
<refentrytitle id="APP-PGRESETXLOG-TITLE"><application>pg_resetxlog</application></refentrytitle>
<manvolnum>1</manvolnum>
<refmiscinfo>Application</refmiscinfo>
</refmeta>
<refnamediv>
<refname>pg_resetxlog</refname>
<refpurpose>reset write-ahead log file and optionally the pg_controldata file</refpurpose>
</refnamediv>
<refsynopsisdiv>
<cmdsynopsis>
<command>pg_resetxlog</command>
<arg><replaceable choice="plain">datadir</replaceable></arg>
</cmdsynopsis>
</refsynopsisdiv>
<refsect1 id="R1-APP-PGRESETXLOG-1">
<title>Description</title>
<para>
<command>pg_resetxlog</command> clears the write-ahead log file and
optionally the <filename>pg_controldata</> file. This is
used so the server can be started after these files have become corrupted.
(In every reported case, such file corruption has been caused
by faulty hardware.) It is to be used only as a last resort,
when the server will not start due to such corruption.
</para>
<para>
After running this command, the server may contain index corruption and
partially-committed transactions. You should immediately dump your data
and reload. After reload, check for partially committed transactions
that may have been open at the time of the server crash.
</para>
<para>
<command>pg_resetxlog</command> can also fix a corrupted
<filename>pg_controldata</> file using the <literal>-f</>
flag. Use this option when <command>pg_resetxlog</> reports it can't
reconstruct valid data for pg_control.
</para>
<para>
<command>pg_resetxlog</command> has a few more options for
special purposes. Run the command with no arguments to see them.
</para>
<para>
This utility can only be run by the user who installed the server because
it requires read/write access to the <literal>datadir</>.
For safety reasons, you must specify the data directory on the command line.
It does not use the environment variable <envar>PGDATA</>.
</para>
</refsect1>
<refsect1>
<title>Notes</title>
<para>
This command can not be used when the <application>postmaster</> is
running.
</para>
</refsect1>
</refentry>
<!-- 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:nil
sgml-default-dtd-file:"../reference.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:"/usr/lib/sgml/catalog"
sgml-local-ecat-files:nil
End:
-->
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment