Re: [HACKERS] Memory leaks for large objects

Поиск
Список
Период
Сортировка
От Maurice Gittens
Тема Re: [HACKERS] Memory leaks for large objects
Дата
Msg-id 00d801bd3ca3$9711bda0$fcf3b2c2@caleb..gits.nl
обсуждение исходный текст
Ответы Re: [HACKERS] Memory leaks for large objects
Список pgsql-hackers
>
>Large object have been broken for quite some time.  I say remove the
>memory context stuff and see what breaks.  Can't be worse than earlier
>releases, and if there is a problem, it will show up for us and we can
>issue a patch.
>
>--


I insured that all memory allocations in be-fsstubs.c used the
current memorycontext for their allocations.
The system encounters errors when opening large objects which
were just created. Message like: "ERROR cannot open xinv<number>".
This happens even though all large_object operations are performed
in a transaction.

I'm now wondering wether in the approach above the files associated
with the large object will ever be freed (Or will de virtual file descriptor
stuff
handle this?).

Might it be so that because large objects and are implemented using
relations/indexes that information about these must persist until these
are properly closed by the postgres system?

How about not changing anything except adding a lo_garbage_collect function,
which frees the MemoryContext used by large objects and does any other
work needed? (Like closes indexes/relations?).

Thanks,
Maurice



В списке pgsql-hackers по дате отправления:

Предыдущее
От: The Hermit Hacker
Дата:
Сообщение: rights on pg_user (WAs: Re: [HACKERS] Open 6.3 issues (fwd))
Следующее
От: Bruce Momjian
Дата:
Сообщение: New locking code