From: | Peter T Mount <psqlhack(at)maidast(dot)demon(dot)co(dot)uk> |
---|---|
To: | Maurice Gittens <mgittens(at)gits(dot)nl> |
Cc: | PostgreSQL-development <hackers(at)postgresql(dot)org> |
Subject: | Re: [HACKERS] Memory leaks for large objects |
Date: | 1998-02-17 21:10:17 |
Message-ID: | Pine.LNX.3.95.980217210554.14185A-100000@maidast |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Mon, 16 Feb 1998, Maurice Gittens wrote:
> Ok,
>
> I think large objects are leaking memory because the large object functions
> in the backend use their own GlobalMemoryContext (called Filesystem), which
> (according to a quick grep) is never freed.
>
> Supposing this is true and I ensure that the large object subsystem always
> uses the current memory context for it's memory allocations.
>
> What might go wrong? (Or why did the designers decide to use a
> GlobalMemoryContext for large objects?).
>
> I simple don't understand why one would create a special memory context
> for large objects without some special reason.
> Or should I just try it and see is anything breaks?
I was wondering the same thing when I was looking at that part of the code
a couple of months back. It would be interesting to see if anything did
break.
--
Peter T Mount petermount(at)earthling(dot)net or pmount(at)maidast(dot)demon(dot)co(dot)uk
Main Homepage: http://www.demon.co.uk/finder
Work Homepage: http://www.maidstone.gov.uk Work EMail: peter(at)maidstone(dot)gov(dot)uk
From | Date | Subject | |
---|---|---|---|
Next Message | Oliver Elphick | 1998-02-17 22:05:38 | Snapshot downloaded 17Feb does not compile |
Previous Message | Brook Milligan | 1998-02-17 19:56:25 | Re: [HACKERS] results of regression tests: NetBSD/i386 v1.3 |