Memory leaks for large objects
Maurice Gittens <mgittens@gits.nl>
From: "Maurice Gittens" <mgittens@gits.nl>
To: "PostgreSQL-development" <hackers@postgreSQL.org>
Date: 1998-02-16T15:54:05Z
Lists: pgsql-hackers
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? Thanks for any comments. Maurice