Re: WIP: pl/pgsql cleanup
От | Neil Conway |
---|---|
Тема | Re: WIP: pl/pgsql cleanup |
Дата | |
Msg-id | 1107820615.1286.52.camel@localhost.localdomain обсуждение исходный текст |
Ответ на | Re: WIP: pl/pgsql cleanup (Tom Lane <tgl@sss.pgh.pa.us>) |
Ответы |
Re: WIP: pl/pgsql cleanup
|
Список | pgsql-patches |
On Mon, 2005-02-07 at 10:41 -0500, Tom Lane wrote: > My recollection is that I was not nearly as worried about short-term > pallocs in the plpgsql code itself, as about leakage in various main- > backend routines that get called incidentally during parsing. > backend/parser/ is quite cavalier about this as a whole, because it > expects to be called in contexts that are not long-lived. Hmmm. What about switching the CurrentMemoryContext to the function's long-lived context when we invoke plpgsql_yyparse(), but keeping it as the short-lived context during the rest of the compilation process? This unfortunately complicates the memory management model still further, but it should significantly reduce the chance of any memory leaks. -Neil
В списке pgsql-patches по дате отправления: