Re: [HACKERS] How To free resources used by large object Relations?

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: [HACKERS] How To free resources used by large object Relations?
Дата
Msg-id 199802201604.LAA04883@candle.pha.pa.us
обсуждение исходный текст
Ответ на How To free resources used by large object Relations?  ("Maurice Gittens" <mgittens@gits.nl>)
Список pgsql-hackers
>
> Hi,
>
> I've changed the large object memory managment strategy to ensure that
> each large object has it's own memory context.
> This way I can free all memory for a large object when I lo_close
> is called for it's oid. This seems to work.

This is a good idea.

>
> I've noticed that the heap_close function used to close the heap used
> by a large object doesn't really do any thing. (It calls RelationClose
> which decrements some reference count).
>
> Somehow I have to free the relation from the cache in the following
> situations:
> 1. In a transaction I must free the stuff when the transaction is
> commited/aborted.
> 2. Otherwise it must happen when lo_close is called.
>
> Is this right?
>

Beats me.

--
Bruce Momjian
maillist@candle.pha.pa.us

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

Предыдущее
От: "D. Jay Newman"
Дата:
Сообщение: Re: [HACKERS] Who is everybody?
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: [HACKERS] Solution to the pg_user passwd problem !?? (c)