|
12 | 12 | <H1>Developer's Frequently Asked Questions (FAQ) for
|
13 | 13 | PostgreSQL</H1>
|
14 | 14 |
|
15 |
| -<P>Last updated:Sat Feb23 15:09:27 EST 2002</P> |
| 15 | +<P>Last updated:Mon Feb25 15:29:28 EST 2002</P> |
16 | 16 |
|
17 | 17 | <P>Current maintainer: Bruce Momjian (<Ahref=
|
18 | 18 | "mailto:pgman@candle.pha.pa.us">pgman@candle.pha.pa.us</A>)<BR>
|
@@ -777,14 +777,19 @@ <H3><A name="2.6">2.6</A>) What is elog()?</H3>
|
777 | 777 |
|
778 | 778 | <P><I>elog()</I> is used to send messages to the front-end, and
|
779 | 779 | optionally terminate the current query being processed. The first
|
780 |
| - parameter is an elog level of<I>NOTICE,</I><I>DEBUG,</I> |
781 |
| -<I>ERROR,</I> or<I>FATAL.</I><I>NOTICE</I> prints on the user's |
782 |
| - terminal and the postmaster logs.<I>DEBUG</I> prints only in the |
783 |
| - postmaster logs.<I>ERROR</I> prints in both places, and terminates |
784 |
| - the current query, never returning from the call.<I>FATAL</I> |
785 |
| - terminates the backend process. The remaining parameters of |
786 |
| -<I>elog</I> are a<I>printf</I>-style set of parameters to |
787 |
| - print.</P> |
| 780 | + parameter is an elog level of<I>DEBUG</I> (levels 1-5),<I>LOG,</I> |
| 781 | +<I>INFO,</I><I>NOTICE,</I><I>ERROR,</I><I>FATAL,</I> or |
| 782 | +<I>PANIC.</I><I>NOTICE</I> prints on the user's terminal and the |
| 783 | + postmaster logs.<I>INFO</I> prints only to the user's terminal and |
| 784 | +<I>LOG</I> prints only to the server logs. (These can be changed |
| 785 | + from<I>postgresql.conf.</I>)<I>ERROR</I> prints in both places, |
| 786 | + and terminates the current query, never returning from the call. |
| 787 | +<I>FATAL</I> terminates the backend process. The remaining |
| 788 | + parameters of<I>elog</I> are a<I>printf</I>-style set of |
| 789 | + parameters to print.</P> |
| 790 | + |
| 791 | +<P><I>elog(ERROR)</I> frees most memory and open file descriptors so |
| 792 | + you don't need to clean these up before the call.</P> |
788 | 793 |
|
789 | 794 | <H3><Aname="2.7">2.7</A>) What is CommandCounterIncrement()?</H3>
|
790 | 795 |
|
|