Neil Conway <neilc@samurai.com> writes:
> The attached patch is my first attempt at implementing table functions
> for PL/PgSQL.
Oh, one more thing: the patch also includes a minor cleanup to the
FunctionMode enum, which I discussed with Joe Conway via private
email. The "use a tuple store provided by the function" mechanism is a
bit of a hack right now, but Joe and I discussed making it more
general (adding another FunctionMode for it, and allowing it to be
specified when executing CREATE FUNCTION). That will wait for 7.4,
however.
I also removed some spi.c functions that were just wrappers over the
appropriate "regular" postgres functions (e.g. SPI_pfree), and
replaced them with macros. IMHO that communicates the intent more
clearly.
Cheers,
Neil
--
Neil Conway <neilc@samurai.com> || PGP Key ID: DB3C29FC