pg.ddx.io pgsql-committers@postgresql.org mailing list archive
help / color / mirror / Atom feedpress - pr: change contact information.
2+ messages / 2 participants
[nested] [flat]
* press - pr: change contact information.
@ 2009-06-30 11:49 User Shigehiro <shigehiro@pgfoundry.org>
0 siblings, 0 replies; 2+ messages in thread
From: shigehiro@pgfoundry.org @ 2009-06-30 11:49 UTC (permalink / raw)
To: pgsql-committers
Log Message:
-----------
change contact information.
Modified Files:
--------------
pr/releases/8.4/jp:
presskit84.html.jp (r1.4 -> r1.5)
(http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/press/pr/releases/8.4/jp/presskit84.html.jp?r1=1.4&r...)
release.translate.txt.jp (r1.4 -> r1.5)
(http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/press/pr/releases/8.4/jp/release.translate.txt.jp?r1=1.4...)
^ permalink raw reply [nested|flat] 2+ messages in thread
* pgsql: Avoid recursion in MemoryContext functions
@ 2024-03-08 11:19 Alexander Korotkov <akorotkov@postgresql.org>
0 siblings, 0 replies; 2+ messages in thread
From: Alexander Korotkov @ 2024-03-08 11:19 UTC (permalink / raw)
To: pgsql-committers@lists.postgresql.org
Avoid recursion in MemoryContext functions
You might run out of stack space with recursion, which is not nice in
functions that might be used e.g. at cleanup after transaction
abort. MemoryContext contains pointer to parent and siblings, so we
can traverse a tree of contexts iteratively, without using
stack. Refactor the functions to do that.
MemoryContextStats() still recurses, but it now has a limit to how
deep it recurses. Once the limit is reached, it prints just a summary
of the rest of the hierarchy, similar to how it summarizes contexts
with lots of children. That seems good anyway, because a context dump
with hundreds of nested contexts isn't very readable.
Report by Egor Chindyaskin and Alexander Lakhin.
Discussion: https://postgr.es/m/1672760457.940462079%40f306.i.mail.ru
Author: Heikki Linnakangas
Reviewed-by: Robert Haas, Andres Freund, Alexander Korotkov, Tom Lane
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/4c1973fcaecd9ef11de14ac55d3ec1432f6b82dc
Modified Files
--------------
src/backend/utils/mmgr/mcxt.c | 269 +++++++++++++++++++++++++++++-------------
src/include/utils/memutils.h | 3 +-
2 files changed, 190 insertions(+), 82 deletions(-)
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2024-03-08 11:19 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2009-06-30 11:49 press - pr: change contact information. User Shigehiro <shigehiro@pgfoundry.org>
2024-03-08 11:19 pgsql: Avoid recursion in MemoryContext functions Alexander Korotkov <akorotkov@postgresql.org>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox