Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
5b24a98f
Commit
5b24a98f
authored
Jan 03, 2002
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update FAQ_DEV.
parent
9c00d0de
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
13 deletions
+13
-13
doc/FAQ_DEV
doc/FAQ_DEV
+6
-6
doc/src/FAQ/FAQ_DEV.html
doc/src/FAQ/FAQ_DEV.html
+7
-7
No files found.
doc/FAQ_DEV
View file @
5b24a98f
Developer's Frequently Asked Questions (FAQ) for PostgreSQL
Last updated:
Sat Dec 29 23:31:26 EST 2001
Last updated:
Thu Jan 3 03:13:44 EST 2002
Current maintainer: Bruce Momjian (pgman@candle.pha.pa.us)
...
...
@@ -632,11 +632,11 @@ List *i, *list;
2.5) Why do we use palloc() and pfree() to allocate memory?
palloc() and pfree() are used in place of malloc() and free() because
we
automatically free all memory allocated when a transaction
completes. This makes it easier to make sure we free memory that gets
allocated in one place, but only freed much later. There are several
contexts that memory can be allocated in, and this controls when th
e
a
llocated memory is automatically
freed by the backend.
we
find it easier to automatically free all memory allocated when a
query completes. This assures us that all memory that was allocated
gets freed even if we have lost track of where we allocated it. There
are special non-query contexts that memory can be allocated in. Thes
e
a
ffect when the allocated memory is
freed by the backend.
2.6) What is elog()?
...
...
doc/src/FAQ/FAQ_DEV.html
View file @
5b24a98f
...
...
@@ -12,7 +12,7 @@
<H1>
Developer's Frequently Asked Questions (FAQ) for
PostgreSQL
</H1>
<P>
Last updated:
Sat Dec 29 23:31:26 EST 2001
</P>
<P>
Last updated:
Thu Jan 3 03:13:44 EST 2002
</P>
<P>
Current maintainer: Bruce Momjian (
<A
href=
"mailto:pgman@candle.pha.pa.us"
>
pgman@candle.pha.pa.us
</A>
)
<BR>
...
...
@@ -766,12 +766,12 @@
<I>
pfree
</I>
() to allocate memory?
</H3>
<P><I>
palloc()
</I>
and
<I>
pfree()
</I>
are used in place of malloc()
and free() because we
automatically free all memory allocated when
a transaction completes. This makes it easier to make sure we free
memory that
gets allocated in one place, but only freed much later.
There are several contexts that memory can be allocated in, and
this controls when the allocated memory is automatically freed b
y
the backend.
</P>
and free() because we
find it easier to automatically free all
memory allocated when a query completes. This assures us that all
memory that
was allocated gets freed even if we have lost track of
where we allocated it. There are special non-query contexts that
memory can be allocated in. These affect when the allocated memor
y
is freed by
the backend.
</P>
<H3><A
name=
"2.6"
>
2.6
</A>
) What is elog()?
</H3>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment