Re: recursive SQL functions - Mailing list pgsql-hackers

From Tom Lane
Subject Re: recursive SQL functions
Date
Msg-id 25414.1014487623@sss.pgh.pa.us
Whole thread Raw
In response to Re: recursive SQL functions  (Peter Eisentraut <peter_e@gmx.net>)
Responses Re: recursive SQL functions  (Peter Eisentraut <peter_e@gmx.net>)
List pgsql-hackers
Peter Eisentraut <peter_e@gmx.net> writes:
> I've prepared a patch for recursive SQL functions.  I assume these memory
> leaks "and so forth" that you speak of are just issues of quality, not
> something that should prevent the use of recursive functions altogether.

I suspect it would not work to re-use a query plan tree at multiple
recursion levels (someday, plan trees should be read-only during
execution, but they ain't now).  As long as you are making a new
plan tree for each recursive entry, it should work ...
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: IANA postgres service type-o!
Next
From: Peter Eisentraut
Date:
Subject: Re: recursive SQL functions