Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit60b198a

Browse files
committed
Update FAQ_DEV: elog => ereport.
1 parentd46f9cd commit60b198a

File tree

2 files changed

+22
-21
lines changed

2 files changed

+22
-21
lines changed

‎doc/FAQ_DEV

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
Developer's Frequently Asked Questions (FAQ) for PostgreSQL
33

4-
Last updated:Mon Jun 2 00:34:39 EDT 2003
4+
Last updated:Wed Oct 29 21:40:18 EST 2003
55

66
Current maintainer: Bruce Momjian (pgman@candle.pha.pa.us)
77

@@ -34,7 +34,7 @@
3434
2.3) Why do we use Node and List to make data structures?
3535
2.4) I just added a field to a structure. What else should I do?
3636
2.5) Why do we use palloc() and pfree() to allocate memory?
37-
2.6) What iselog()?
37+
2.6) What isereport()?
3838
2.7) What is CommandCounterIncrement()?
3939
_________________________________________________________________
4040

@@ -687,20 +687,21 @@ List *i, *list;
687687
are special non-query contexts that memory can be allocated in. These
688688
affect when the allocated memory is freed by the backend.
689689

690-
2.6) What iselog()?
690+
2.6) What isereport()?
691691

692-
elog() is used to send messages to the front-end, and optionally
692+
ereport() is used to send messages to the front-end, and optionally
693693
terminate the current query being processed. The first parameter is an
694-
elog level of DEBUG (levels 1-5), LOG, INFO, NOTICE, ERROR, FATAL, or
695-
PANIC. NOTICE prints on the user's terminal and the postmaster logs.
696-
INFO prints only to the user's terminal and LOG prints only to the
697-
server logs. (These can be changed from postgresql.conf.) ERROR prints
698-
in both places, and terminates the current query, never returning from
699-
the call. FATAL terminates the backend process. The remaining
700-
parameters of elog are a printf-style set of parameters to print.
701-
702-
elog(ERROR) frees most memory and open file descriptors so you don't
703-
need to clean these up before the call.
694+
ereport level of DEBUG (levels 1-5), LOG, INFO, NOTICE, ERROR, FATAL,
695+
or PANIC. NOTICE prints on the user's terminal and the postmaster
696+
logs. INFO prints only to the user's terminal and LOG prints only to
697+
the server logs. (These can be changed from postgresql.conf.) ERROR
698+
prints in both places, and terminates the current query, never
699+
returning from the call. FATAL terminates the backend process. The
700+
remaining parameters of ereport are a printf-style set of parameters
701+
to print.
702+
703+
ereport(ERROR) frees most memory and open file descriptors so you
704+
don't need to clean these up before the call.
704705

705706
2.7) What is CommandCounterIncrement()?
706707

‎doc/src/FAQ/FAQ_DEV.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<H1>Developer's Frequently Asked Questions (FAQ) for
1313
PostgreSQL</H1>
1414

15-
<P>Last updated:Mon Jun 2 00:34:39 EDT 2003</P>
15+
<P>Last updated:Wed Oct 29 21:40:18 EST 2003</P>
1616

1717
<P>Current maintainer: Bruce Momjian (<Ahref=
1818
"mailto:pgman@candle.pha.pa.us">pgman@candle.pha.pa.us</A>)<BR>
@@ -61,7 +61,7 @@ <H2>Technical Questions</H2>
6161
should I do?<BR>
6262
<Ahref="#2.5">2.5</A>) Why do we use<I>palloc</I>() and
6363
<I>pfree</I>() to allocate memory?<BR>
64-
<Ahref="#2.6">2.6</A>) What iselog()?<BR>
64+
<Ahref="#2.6">2.6</A>) What isereport()?<BR>
6565
<Ahref="#2.7">2.7</A>) What is CommandCounterIncrement()?<BR>
6666
<BR>
6767

@@ -833,22 +833,22 @@ <H3><A name="2.5">2.5</A>) Why do we use <I>palloc</I>() and
833833
memory can be allocated in. These affect when the allocated memory
834834
is freed by the backend.</P>
835835

836-
<H3><Aname="2.6">2.6</A>) What iselog()?</H3>
836+
<H3><Aname="2.6">2.6</A>) What isereport()?</H3>
837837

838-
<P><I>elog()</I> is used to send messages to the front-end, and
838+
<P><I>ereport()</I> is used to send messages to the front-end, and
839839
optionally terminate the current query being processed. The first
840-
parameter is anelog level of<I>DEBUG</I> (levels 1-5),<I>LOG,</I>
840+
parameter is anereport level of<I>DEBUG</I> (levels 1-5),<I>LOG,</I>
841841
<I>INFO,</I><I>NOTICE,</I><I>ERROR,</I><I>FATAL,</I> or
842842
<I>PANIC.</I><I>NOTICE</I> prints on the user's terminal and the
843843
postmaster logs.<I>INFO</I> prints only to the user's terminal and
844844
<I>LOG</I> prints only to the server logs. (These can be changed
845845
from<I>postgresql.conf.</I>)<I>ERROR</I> prints in both places,
846846
and terminates the current query, never returning from the call.
847847
<I>FATAL</I> terminates the backend process. The remaining
848-
parameters of<I>elog</I> are a<I>printf</I>-style set of
848+
parameters of<I>ereport</I> are a<I>printf</I>-style set of
849849
parameters to print.</P>
850850

851-
<P><I>elog(ERROR)</I> frees most memory and open file descriptors so
851+
<P><I>ereport(ERROR)</I> frees most memory and open file descriptors so
852852
you don't need to clean these up before the call.</P>
853853

854854
<H3><Aname="2.7">2.7</A>) What is CommandCounterIncrement()?</H3>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp