| From: | Gevik Babakhani <pgdev(at)xs4all(dot)nl> |
|---|---|
| To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
| Cc: | pgsql-hackers(at)postgresql(dot)org |
| Subject: | Re: Question about the MemoryContext |
| Date: | 2006-04-22 22:43:17 |
| Message-ID: | 1145745797.3882.0.camel@voyager.truesoftware.net |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
Thank you :)
On Sat, 2006-04-22 at 18:16 -0400, Tom Lane wrote:
> Gevik Babakhani <pgdev(at)xs4all(dot)nl> writes:
> > Could someone please explain the MemoryContext switching. For example
> > MemoryContextSwitchTo function. How does this work?
>
> src/backend/utils/mmgr/README might help. It's somewhat pointed at
> people who've already been hacking the backend, but I think it will
> give you the idea.
>
> The basic point is that palloc() allocates memory in whichever context
> was last selected as CurrentMemoryContext by MemoryContextSwitchTo.
>
> regards, tom lane
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo(at)postgresql(dot)org so that your
> message can get through to the mailing list cleanly
>
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tatsuo Ishii | 2006-04-22 23:24:47 | Re: obtaining row locking information |
| Previous Message | Tom Lane | 2006-04-22 22:16:13 | Re: Question about the MemoryContext |