Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Gpdb
提交
08f245bf
G
Gpdb
项目概览
Greenplum
/
Gpdb
通知
7
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
Gpdb
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
08f245bf
编写于
8月 17, 2002
作者:
B
Bruce Momjian
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add doc file for pg_resetxlog.
上级
33e3c9b0
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
89 addition
and
0 deletion
+89
-0
doc/src/sgml/ref/pg_resetxlog.sgml
doc/src/sgml/ref/pg_resetxlog.sgml
+89
-0
未找到文件。
doc/src/sgml/ref/pg_resetxlog.sgml
0 → 100644
浏览文件 @
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:
-->
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录