Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Gpdb
提交
d96398d1
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,发现更多精彩内容 >>
提交
d96398d1
编写于
1月 31, 2005
作者:
B
Bruce Momjian
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Restructure debug FAQ entry.
上级
1f7aa643
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
27 addition
and
45 deletion
+27
-45
doc/FAQ
doc/FAQ
+13
-21
doc/src/FAQ/FAQ.html
doc/src/FAQ/FAQ.html
+14
-24
未找到文件。
doc/FAQ
浏览文件 @
d96398d1
Frequently Asked Questions (FAQ) for PostgreSQL
Last updated: Mon Jan 31 1
5:40:24
EST 2005
Last updated: Mon Jan 31 1
7:57:02
EST 2005
Current maintainer: Bruce Momjian (pgman@candle.pha.pa.us)
...
...
@@ -383,24 +383,20 @@
3.4) What debugging features are available?
PostgreSQL has several features that report status information that
can be valuable for debugging purposes.
There are many log_* server configuration variables that enable
printing of query and process statistics which can be very useful for
debugging and performance measurements.
First, by running configure with the --enable-cassert option, many
assert()s monitor the progress of the backend and halt the program
when something unexpected occurs.
The following detailed debug instructions are to be used to provide
more detailed information for server developers debugging a problem
Both postmaster and postgres have several debug options available.
First, whenever you start postmaster, make sure you send the standard
output and error to a log file, like:
cd /usr/local/pgsql
./bin/postmaster >server.log 2>&1 &
This will put a server.log file in the top-level PostgreSQL directory.
This file contains useful information about problems or errors
encountered by the server. Postmaster has a -d option that allows even
more detailed information to be reported. The -d option takes a number
that specifies the debug level. Be warned that high debug level values
It is also possible to debug the server if it isn't operating
properly. First, by running configure with the --enable-cassert
option, many assert()s monitor the progress of the backend and halt
the program when something unexpected occurs.
The postmaster has a -d option that allows even more detailed
information to be reported. The -d option takes a number that
specifies the debug level. Be warned that high debug level values
generate large log files.
If postmaster is not running, you can actually run the postgres
...
...
@@ -421,10 +417,6 @@
process with the debugger, set any breakpoints, and continue through
the startup sequence.
There are several log_* server configuration variables that enable
printing of process statistics which can be very useful for debugging
and performance measurements.
You can also compile with profiling to see what functions are taking
execution time. The backend profile files will be deposited in the
pgsql/data/base/dbname directory. The client profile file will be put
...
...
doc/src/FAQ/FAQ.html
浏览文件 @
d96398d1
...
...
@@ -10,7 +10,7 @@
alink=
"#0000ff"
>
<H1>
Frequently Asked Questions (FAQ) for PostgreSQL
</H1>
<P>
Last updated: Mon Jan 31 1
5:40:24
EST 2005
</P>
<P>
Last updated: Mon Jan 31 1
7:57:02
EST 2005
</P>
<P>
Current maintainer: Bruce Momjian (
<A
href=
"mailto:pgman@candle.pha.pa.us"
>
pgman@candle.pha.pa.us
</A>
)
...
...
@@ -519,29 +519,23 @@
<H4><A
name=
"3.4"
>
3.4
</A>
) What debugging features are
available?
</H4>
<P>
PostgreSQL has several features that report status information
that can be valuable for debugging purposes.
</P>
<P>
There are many
<CODE>
log_*
</CODE>
server configuration variables
that enable printing of query and process statistics which can be
very useful for debugging and performance measurements.
</P>
<P>
First, by running
<I>
configure
</I>
with the --enable-cassert
<P><B>
The following detailed debug instructions are to be used to
provide more detailed information for server developers debugging a
problem
<B></P>
<P>
It is also possible to debug the server if it isn't operating
properly. First, by running
<I>
configure
</I>
with the --enable-cassert
option, many
<I>
assert()
</I>
s monitor the progress of the backend
and halt the program when something unexpected occurs.
</P>
<P>
Both
<I>
postmaster
</I>
and
<I>
postgres
</I>
have several debug
options available. First, whenever you start
<I>
postmaster
</I>
,
make sure you send the standard output and error to a log file,
like:
</P>
<PRE>
cd /usr/local/pgsql
./bin/postmaster
>
server.log 2
>&
1
&
</PRE>
<P>
This will put a server.log file in the top-level PostgreSQL
directory. This file contains useful information about problems or
errors encountered by the server.
<I>
Postmaster
</I>
has a
<I>
-d
</I>
option that allows even more detailed information to be reported.
The
<I>
-d
</I>
option takes a number that specifies the debug level.
Be warned that high debug level values generate large log
files.
</P>
The
<I>
postmaster
</I>
has a
<I>
-d
</I>
option that allows even more
detailed information to be reported. The
<I>
-d
</I>
option takes a
number that specifies the debug level. Be warned that high debug
level values generate large log files.
</P>
<P>
If
<I>
postmaster
</I>
is not running, you can actually run the
<I>
postgres
</I>
backend from the command line, and type your
...
...
@@ -565,10 +559,6 @@
the debugger, set any breakpoints, and continue through the startup
sequence.
</P>
<P>
There are several
<CODE>
log_*
</CODE>
server configuration variables
that enable printing of process statistics which can be very useful
for debugging and performance measurements.
</P>
<P>
You can also compile with profiling to see what functions are
taking execution time. The backend profile files will be deposited
in the
<I>
pgsql/data/base/dbname
</I>
directory. The client profile
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录