Re: pl/python do not delete function arguments
От | Peter Eisentraut |
---|---|
Тема | Re: pl/python do not delete function arguments |
Дата | |
Msg-id | 1297798752.11557.4.camel@vanquo.pezone.net обсуждение исходный текст |
Ответ на | Re: pl/python do not delete function arguments (Jan Urbański <wulczer@wulczer.org>) |
Ответы |
Re: pl/python do not delete function arguments
|
Список | pgsql-hackers |
On tis, 2011-02-15 at 09:58 +0100, Jan Urbański wrote: > Because the invocation that actually recurses sets up the scene for > failure. That's what we're observing, but I can't figure out why it is. If you can, could you explain it? It actually makes sense to me that the arguments should be deleted at the end of the call. The data belongs to that call only, and PLy_procedure_delete() that would otherwise clean it up is only called rarely. Apparently, the recursive call ends up deleting the wrong arguments, but it's not clear to me why that would affect the next top-level call, because that would set up its own arguments again anyway. In any case, perhaps the right fix is to fix PLy_function_delete_args() to delete the args correctly.
В списке pgsql-hackers по дате отправления: