Needs Suggestion

Started by Nonameover 15 years ago2 messages
#1Noname
subham@cse.iitb.ac.in

I need suggestion about how region based memory management is done in
postgres. I know the concept of region based memory management and also
know about the functions like memorycontextswitch().

But I am not understanding how Postgres uses hierarchical, region-based
memory management. That is I am not getting the inner idea or meaning of
the code.

Currently, my project topic is "Parallelizing the spatial join" using
POSIX threads, so I have to understand the inner details and meanings
of the code. I am using "ddd" to step through its code, from there I am
getting the flow of the code but not understanding the semantics of its
data-structures and its region based memory management.

Kindly, if anybody can give some Ideas or Suggestions.

Thank You,
Subham Roy,
CSE,
IIT Bombay.

#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: Noname (#1)
Re: Needs Suggestion

subham@cse.iitb.ac.in writes:

I need suggestion about how region based memory management is done in
postgres.

Have you read src/backend/utils/mmgr/README ? It's old but still
reasonably accurate.

regards, tom lane