Commit e6487cc4 authored by Bruce Momjian's avatar Bruce Momjian

Update FAQ.

parent 06dfff59
This diff is collapsed.
...@@ -719,16 +719,17 @@ more detailed information to be reported. The -d option takes a number ...@@ -719,16 +719,17 @@ more detailed information to be reported. The -d option takes a number
that specifies the debug level. Be warned that high debug level values that specifies the debug level. Be warned that high debug level values
generate large log files.<P> generate large log files.<P>
You can actually run the postgres backend from the command line, and If the <i>postmaster</i> is not running, you can actually run the
type your SQL statement directly. This is recommended <B>only</B> for postgres backend from the command line, and type your SQL statement
debugging purposes. Note that a newline terminates the query, not a directly. This is recommended <B>only</B> for debugging purposes. Note
semicolon. If you have compiled with debugging symbols, you can use a that a newline terminates the query, not a semicolon. If you have
debugger to see what is happening. Because the backend was not started compiled with debugging symbols, you can use a debugger to see what is
from the postmaster, it is not running in an identical environment and happening. Because the backend was not started from the postmaster, it
locking/backend interaction problems may not be duplicated.<P> is not running in an identical environment and locking/backend
interaction problems may not be duplicated.<P>
Another method is to start <I>psql</I> in one window, then find the
<small>PID</small> of the <i>postgres</i> process used by If the <i>postmaster</i> is running, start <I>psql</I> in one window,
then find the <small>PID</small> of the <i>postgres</i> process used by
<i>psql.</i> Use a debugger to attach to the <i>postgres</i> <i>psql.</i> Use a debugger to attach to the <i>postgres</i>
<small>PID.</small> You can set breakpoints in the debugger and issue <small>PID.</small> You can set breakpoints in the debugger and issue
queries from <i>psql.</i> If you are debugging <i>postgres</i> startup, queries from <i>psql.</i> If you are debugging <i>postgres</i> startup,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment