Re: first cut at PL/PgSQL table functions - Mailing list pgsql-patches

From Neil Conway
Subject Re: first cut at PL/PgSQL table functions
Date
Msg-id 87y9b2zjrt.fsf@mailbox.samurai.com
Whole thread Raw
In response to first cut at PL/PgSQL table functions  (Neil Conway <neilc@samurai.com>)
List pgsql-patches
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

pgsql-patches by date:

Previous
From: Neil Conway
Date:
Subject: first cut at PL/PgSQL table functions
Next
From: Tom Lane
Date:
Subject: Re: first cut at PL/PgSQL table functions