Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
postgres-lambda-diff
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Huber
postgres-lambda-diff
Commits
60b198a7
Commit
60b198a7
authored
21 years ago
by
Bruce Momjian
Browse files
Options
Downloads
Patches
Plain Diff
Update FAQ_DEV: elog => ereport.
parent
d46f9cd3
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
doc/FAQ_DEV
+15
-14
15 additions, 14 deletions
doc/FAQ_DEV
doc/src/FAQ/FAQ_DEV.html
+7
-7
7 additions, 7 deletions
doc/src/FAQ/FAQ_DEV.html
with
22 additions
and
21 deletions
doc/FAQ_DEV
+
15
−
14
View file @
60b198a7
Developer's Frequently Asked Questions (FAQ) for PostgreSQL
Last updated:
Mon Jun 2 00:34:39
E
D
T 2003
Last updated:
Wed Oct 29 21:40:18
E
S
T 2003
Current maintainer: Bruce Momjian (pgman@candle.pha.pa.us)
...
...
@@ -34,7 +34,7 @@
2.3) Why do we use Node and List to make data structures?
2.4) I just added a field to a structure. What else should I do?
2.5) Why do we use palloc() and pfree() to allocate memory?
2.6) What is e
log
()?
2.6) What is e
report
()?
2.7) What is CommandCounterIncrement()?
_________________________________________________________________
...
...
@@ -687,20 +687,21 @@ List *i, *list;
are special non-query contexts that memory can be allocated in. These
affect when the allocated memory is freed by the backend.
2.6) What is e
log
()?
2.6) What is e
report
()?
e
log
() is used to send messages to the front-end, and optionally
e
report
() is used to send messages to the front-end, and optionally
terminate the current query being processed. The first parameter is an
elog level of DEBUG (levels 1-5), LOG, INFO, NOTICE, ERROR, FATAL, or
PANIC. NOTICE prints on the user's terminal and the postmaster logs.
INFO prints only to the user's terminal and LOG prints only to the
server logs. (These can be changed from postgresql.conf.) ERROR prints
in both places, and terminates the current query, never returning from
the call. FATAL terminates the backend process. The remaining
parameters of elog are a printf-style set of parameters to print.
elog(ERROR) frees most memory and open file descriptors so you don't
need to clean these up before the call.
ereport level of DEBUG (levels 1-5), LOG, INFO, NOTICE, ERROR, FATAL,
or PANIC. NOTICE prints on the user's terminal and the postmaster
logs. INFO prints only to the user's terminal and LOG prints only to
the server logs. (These can be changed from postgresql.conf.) ERROR
prints in both places, and terminates the current query, never
returning from the call. FATAL terminates the backend process. The
remaining parameters of ereport are a printf-style set of parameters
to print.
ereport(ERROR) frees most memory and open file descriptors so you
don't need to clean these up before the call.
2.7) What is CommandCounterIncrement()?
...
...
This diff is collapsed.
Click to expand it.
doc/src/FAQ/FAQ_DEV.html
+
7
−
7
View file @
60b198a7
...
...
@@ -12,7 +12,7 @@
<H1>
Developer's Frequently Asked Questions (FAQ) for
PostgreSQL
</H1>
<P>
Last updated:
Mon Jun 2 00:34:39
E
D
T 2003
</P>
<P>
Last updated:
Wed Oct 29 21:40:18
E
S
T 2003
</P>
<P>
Current maintainer: Bruce Momjian (
<A
href=
"mailto:pgman@candle.pha.pa.us"
>
pgman@candle.pha.pa.us
</A>
)
<BR>
...
...
@@ -61,7 +61,7 @@
should I do?
<BR>
<A
href=
"#2.5"
>
2.5
</A>
) Why do we use
<I>
palloc
</I>
() and
<I>
pfree
</I>
() to allocate memory?
<BR>
<A
href=
"#2.6"
>
2.6
</A>
) What is e
log
()?
<BR>
<A
href=
"#2.6"
>
2.6
</A>
) What is e
report
()?
<BR>
<A
href=
"#2.7"
>
2.7
</A>
) What is CommandCounterIncrement()?
<BR>
<BR>
...
...
@@ -833,11 +833,11 @@
memory can be allocated in. These affect when the allocated memory
is freed by the backend.
</P>
<H3><A
name=
"2.6"
>
2.6
</A>
) What is e
log
()?
</H3>
<H3><A
name=
"2.6"
>
2.6
</A>
) What is e
report
()?
</H3>
<P><I>
e
log
()
</I>
is used to send messages to the front-end, and
<P><I>
e
report
()
</I>
is used to send messages to the front-end, and
optionally terminate the current query being processed. The first
parameter is an e
log
level of
<I>
DEBUG
</I>
(levels 1-5),
<I>
LOG,
</I>
parameter is an e
report
level of
<I>
DEBUG
</I>
(levels 1-5),
<I>
LOG,
</I>
<I>
INFO,
</I>
<I>
NOTICE,
</I>
<I>
ERROR,
</I>
<I>
FATAL,
</I>
or
<I>
PANIC.
</I>
<I>
NOTICE
</I>
prints on the user's terminal and the
postmaster logs.
<I>
INFO
</I>
prints only to the user's terminal and
...
...
@@ -845,10 +845,10 @@
from
<I>
postgresql.conf.
</I>
)
<I>
ERROR
</I>
prints in both places,
and terminates the current query, never returning from the call.
<I>
FATAL
</I>
terminates the backend process. The remaining
parameters of
<I>
e
log
</I>
are a
<I>
printf
</I>
-style set of
parameters of
<I>
e
report
</I>
are a
<I>
printf
</I>
-style set of
parameters to print.
</P>
<P><I>
e
log
(ERROR)
</I>
frees most memory and open file descriptors so
<P><I>
e
report
(ERROR)
</I>
frees most memory and open file descriptors so
you don't need to clean these up before the call.
</P>
<H3><A
name=
"2.7"
>
2.7
</A>
) What is CommandCounterIncrement()?
</H3>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment